Post Reply 
Drawing a filled circle
10-09-2015, 04:29 PM (This post was last modified: 10-09-2015 04:30 PM by Tyann.)
Post: #3
RE: Drawing a filled circle
Bonjour
En attendant, je vous propose :
Meanwhile, I propose:
Code:

EXPORT ARCF_P(g,cx,cy,r,c)
BEGIN
 LOCAL i,j,p,x,y;
 j:=IFTE(HAngle,180,π);
 p:=IFTE(HAngle,0.5,0.075);
 FOR i FROM 0 TO j STEP p DO
  x:=SIN(i)*r;y:=cy+COS(i)*r;
  LINE_P(g,cx-x,y,cx+x,y,c);
 END;
END;
g=G0...G9,cx=Centre x, cy=Centre y, r=rayon, c=couleur
g=G0...G9,cx=Center x, cy=Center y, r=ray, c=color

Sorry for my english
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Drawing a filled circle - Powersoft - 10-09-2015, 11:43 AM
RE: Drawing a filled circle - Tim Wessman - 10-09-2015, 01:51 PM
RE: Drawing a filled circle - Tyann - 10-09-2015 04:29 PM



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