Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <conio.h>
- #include <graphics.h>
- #define F 1
- void startgraphics(){
- int gd = DETECT, gm;
- initgraph(&gd, &gm, "");
- cleardevice();
- }
- void main(){
- int x = 300, y = 200, r = 40*F, r2=30*F; //Change F to scale
- startgraphics();
- setcolor(RED); //middle circle
- circle(x, y, r);
- setfillstyle(HATCH_FILL, YELLOW);
- floodfill(x, y, RED);
- setcolor(GREEN); //petals
- arc(x+r, y, 250, 110, r2);
- arc(x-r, y, 65, 295 , r2);
- arc(x, y-r, 340, 200, r2);
- arc(x, y+r, 155, 25, r2);
- setcolor(BROWN); //stem
- line(x, y+r+r2, x, y+2*(r+r2));
- getch();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement