answersLogoWhite

0

/*this code is developed in dev-c++*/

#include <cstdlib>

#include <iostream>

#include<graphics.h>

#include<cmath>

#define pi 3.1415

using namespace std;

int x=300,y=250;

void rotate()

{

//setcolor(BLACK);

setfillstyle(SOLID_FILL,COLOR(255,165,0));

rectangle(100,100,500,200);

putpixel(150,150,RED);

floodfill(150,150, getmaxcolor());

setfillstyle(SOLID_FILL,WHITE);

rectangle(100,200,500,300);

floodfill(250,250, getmaxcolor());

setfillstyle(SOLID_FILL,GREEN);

rectangle(100,300,500,400);

floodfill(350,350, getmaxcolor());

int a=0;

for(int i=0;i<360;i+=15)

{

setcolor(BLACK);

circle(x,y,45);

double in=2*pi*(a+i)/360;

int xc=x+45*cos(in);

int yc=y+45*sin(in);

line(x,y,xc,yc);

}

setfillstyle(SOLID_FILL,BLACK);

}

int main(int argc, char *argv[])

{

initwindow(600,500, " flag");

rotate();

system("PAUSE");

return EXIT_SUCCESS;

}

User Avatar

Wiki User

14y ago

What else can I help you with?

Continue Learning about Visual Arts

How to flag photos in Lightroom?

To flag photos in Lightroom, simply select the photo you want to flag and press the &quot;P&quot; key on your keyboard to pick it, or press the &quot;X&quot; key to reject it. You can also use the flag icons in the toolbar at the bottom of the screen to flag photos.


How to flag a photo in Lightroom?

To flag a photo in Lightroom, simply select the photo you want to flag and press the &quot;P&quot; key on your keyboard to pick it, or press the &quot;X&quot; key to reject it. You can also use the flag icons in the toolbar at the bottom of the screen to flag or unflag a photo.


What artist painted the American flag to represent a prison cell?

The artist who painted the American flag to represent a prison cell is Jasper Johns. His work often explores themes of identity and symbolism, and in pieces like &quot;Flag,&quot; he uses the iconic image of the flag to challenge perceptions of patriotism and confinement. This interpretation reflects broader societal issues, including the relationship between freedom and imprisonment.


How did Jasper Johns create flag?

Jasper Johns created his iconic &quot;Flag&quot; artwork in 1954-1955 by using a technique called encaustic, which involves mixing pigment with hot wax. He painted the American flag on a canvas, incorporating a collage of newspaper and other materials to add texture and depth. This piece challenges the viewer's perception of symbols and the concept of patriotism, inviting deeper reflection on the meaning of national identity. Johns' work blurred the lines between painting and sculpture, emphasizing the flag as both an object and an image.


Where can one find images of the Dutch flag?

Images of the Dutch flag are available from Flags Net, Shutter Stock, I Stock Photo, 123RF, Corbis Stock Photography, Getty Images, Foto Search, and Stock Free Images.