Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void draw_circle(int x0,int y0){
- double r,x,y;
- r=1;
- x=x0;
- y=y0;
- float step= pi/6;
- for (float f=0; f<=2*pi; f+=step){
- draw_line(x,y,cos(f)*r,sin(f)*r);
- x=cos(f)*r;
- y=sin(f)*r;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement