Post Reply 
Rotate text?
01-27-2015, 07:22 AM (This post was last modified: 01-29-2015 08:08 PM by Damien.)
Post: #3
RE: Rotate text?
Something like that may help you ?
(angles are in radian)
Code:

EXPORT ROT()
BEGIN 
 LOCAL sa,ca,a,x,y;
 DIMGROB(G1,40,40);
 RECT_P(99,79,140,120,0,RGB(255,255,255));
 FOR a:=0 to 2*π STEP π/15 DO
  RECT_P(G1);
  sa:=-SIN(a); ca:=COS(a);
  FOR x=-20 TO 20 DO
   FOR y=-20 TO 20 DO
    PIXON_P(G1,x+20,y+20,GETPIX_P(G0,x*ca-y*sa+20,x*sa+y*ca+20);
   END;
  END;
  BLIT_P(G0,100,80,140,120,G1,0,0,40,40);
 END;
 WAIT(1);
END;

I hope it will work, i haven't got the prime with me to verify.

Regards,

Damien
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Rotate text? - DrD - 01-26-2015, 03:28 PM
RE: Rotate text? - cyrille de brébisson - 01-27-2015, 06:57 AM
RE: Rotate text? - Damien - 01-27-2015 07:22 AM
RE: Rotate text? - cyrille de brébisson - 01-27-2015, 09:11 AM
RE: Rotate text? - DrD - 01-27-2015, 11:20 AM
RE: Rotate text? - Thomas_Sch - 01-27-2015, 12:05 PM
RE: Rotate text? - DrD - 01-27-2015, 01:27 PM
RE: Rotate text? - Thomas_Sch - 01-27-2015, 08:27 PM
RE: Rotate text? - DrD - 02-03-2015, 03:34 PM
RE: Rotate text? - cyrille de brébisson - 02-04-2015, 07:41 AM
RE: Rotate text? - DrD - 02-04-2015, 01:25 PM
RE: Rotate text? - Han - 02-04-2015, 01:18 PM
RE: Rotate text? - DrD - 02-04-2015, 01:50 PM



User(s) browsing this thread: 1 Guest(s)