# data[].attributes.body
void setup(){

size(400,400);

background(255,0,0);

stroke(0);

}

void draw() {

ellipse(mouseX, mouseY, 40, 40);

}

# data[].attributes.body
void setup(){

size(300,300);

background(173,216,230);

}

void draw() {

if (mousePressed && (mouseButton == LEFT)) {

stroke(0,255,0);

} else if (mousePressed && (mouseButton == RIGHT)) {

stroke(0,0,255);

} else {

stroke(255,0,0);

}

line(mouseX, mouseY, mouseX+20, mouseY+20);

}

# data[].attributes.body
int i =0;

size(296,296);

background(255,0,0);

while(i<255){

strokeWeight(20);

stroke(0,i,0);

line(20,20+i,276,20+i);

i=i+20;

}

# data[].attributes.body
int i =0;

size(296,296);

background(255,0,0);

while(i<255){

strokeWeight(20);

stroke(0,0,i);

line(20+i,20,20+i,280);

i=i+20;

}

# data[].attributes.body
size(200,200);

background(200);

fill(0,255,0);

ellipse(width/2,height/2,80,80);

fill(255,0,0);

ellipse(width/2,height/2,60,60);

fill(0,0,255);

ellipse(width/2,height/2,40,40);

fill(0);

ellipse(width/2,height/2,20,20);

# data[].attributes.body
void setup()

{

size(80,80);//lienzo de 800 pixeles de ancho y alto

background(200);

for(int x=20; x<=80; x+=20)

{

noFill();

ellipse(width/2,height/2,x,x);

}

}void draw()

{

}

# data[].attributes.body
void setup(){

size(300, 300);

background (255,255,0);

stroke(255,0,128);

}

void draw(){

for (int y = 0; y < 300; y += 30) {

for (int x = 0; x < 300; x += 30) {

if(x<=100){

rect(x,y,20,20);}

else if(x <= 200){

ellipse(x+10, y+10, 20, 20);}

else {triangle(x, y, x+20, y,x,y+20);}

}

}

}

# data[].attributes.headline
OPCION C CAMBIAR A LÍNEAS Y PONER LA VARIABLE CON RGB SIN TRANSPARENCIA Y DELAY

# data[].attributes.subject
OPCION C CAMBIAR A LÍNEAS Y PONER LA VARIABLE CON RGB SIN TRANSPARENCIA Y DELAY

# data[].attributes.body
int x=0;

void setup(){

size(300,300);

background (125);

}

void draw()

{

for(int c=0;c<255;c+=10){

stroke(c,0,0);

strokeWeight(2);

line(x,0,x,height);

x++;

delay(50);

}

}

# data[].attributes.body
int x=0;

void setup(){

size(300,300);

background (255,255,255);

}

void draw()

{

noStroke();

for(int i=0; i<=300;i+=20){

fill(255,0,0,i);

rect(x,10,20,height);

x+=20;

}

}

# data[].attributes.body
int x=0;

void setup(){

size(300,300);

background (125);

}

void draw()

{

noStroke();

for(int i=0; i<=300;i+=20){

fill(255,0,0,i);

rect(x,10,20,height);

x+=20;

}

}

# data[].attributes.body
color red= color(255, 0, 0, 10);

color green= color(0, 255, 0, 10);

color blue= color(0, 0, 255, 10);

void setup(){

size(300, 300);

background (255,255,0);

noStroke();

}

void draw(){

for (int y = 0; y < 300; y += 30) {

for (int x = 0; x < 300; x += 30) {

if(x<=100){

rect(x,y,20,20);}

else if(x <= 200){

ellipse(x+10, y+10, 20, 20);}

else {triangle(x, y, x+20, y,x,y+20);}

if(y<100){

fill(red);}

else if(y < 200){

fill(green);}

else {fill(blue);}

}

}

}

# data[].attributes.body
int i = 0;

void setup () {

size (200,200);

stroke (255,0,0);

}

void draw () {

if (i>75)

stroke (0,255,0);

rect(i,i,50,50);

i++;

}

# data[].attributes.body
size(250, 250);

strokeWeight(2);

for(int i = 0; i < 250; i += 10) {

line(0, i, width/2, height/2);

line(width/2, height/2, width, i);

}

# data[].attributes.body
int esquina = 0;

int ladodisminuye = 3;

void setup () {

size(300, 300);

background(100,100,100);

rectMode(CORNER);}

void draw () {

while ( ladodisminuye < 8 ) {

while ( esquina < 300 ){

rect(esquina, esquina, width/ladodisminuye, height/ladodisminuye);

ladodisminuye++;

esquina = esquina+50;

}

}

}

# data[].attributes.body
size(300, 300);

background(100,100,100);

rectMode(CORNER);

fill(255,255,255);

for (int esquina = 0; esquina <= 300; esquina += 50) {

for (int disminuye = 3; disminuye <= 6; disminuye++) {

rect(esquina, esquina, width/disminuye, height/disminuye);

}

}

# data[].attributes.body
for (int i=10;i<200;i+= 10){

line (i,20,i,180);

line (20,i,180,i);

}

void setup()

{

size (200,200);

for (int x=10;x<200;x+= 10)

for (int y=10;y<200;y+= 10){

line (x,20,x,180);

line (20,y,180,y);

}}

# data[].attributes.body
size (200,200);

background (205,205,205);

int i = 0;

while (i<200)

{

line (20,i,180,i);

i=i+10;

line (i,20,i,180);

i=i+10;

}

# data[].attributes.body
int a = 20;

int b = 42;

int c = a-b;

print (c);

# data[].attributes.body
float a = 4;

float b = 10;

float c = a/b;

print (c);

# data[].attributes.body
int a = 4;

int b = 10;

int c = a*b;

print (c);

# data[].attributes.body
int a = 4;

a ++;

print (a);

# data[].attributes.body
int a = 4;

a --;

print (a);

# data[].attributes.body
int i=0;

void setup() {

size (400,400);

background(255,0,0);

stroke(0,255,0);

}

void draw(){

delay(50) ;

line(20,380-i,380,380-i);

i++;

}

# data[].attributes.body
int Radio = 25;

float Longitud = 0;

float Area = 0;

int GRIS_CLARO = 150;

String Respuesta = " La longitud y el área de la circunferencia son: ";

size (200, 200);

background (GRIS_CLARO);

Longitud = 2* PI * Radio;

Area = PI* Radio * Radio;

textSize(10);

print (Respuesta);

println (Longitud);

print (Area);

text (Respuesta, 10, 50);

text (Longitud, 10, 70);

text (Area, 10, 90);

# data[].attributes.body
int GRIS_CLARO = 150;
size (200, 200);
background (GRIS_CLARO);
String ENUNCIADO = "Calcula el area del cuadrado";
String RES = "EL AREA DEL CUADRADO ES";
int MEDIDA = 20;
int RESULTADO = MEDIDA * MEDIDA;
textSize(10);
print (ENUNCIADO);
print (RESULTADO);
text (RESULTADO, 10, height/2);
text (RES, 10, MEDIDA);

# data[].attributes.body
size(500,500);
background(255, 255, 255);
fill(200,200,200);
arc(50,50,50,50,-QUARTER_PI, QUARTER_PI);
fill(200,200,200);
arc( 150,150,50,50,radians(0), radians(270));
fill(255,0,128);
stroke(255,0,0);
arc(100,50,100,50,-QUARTER_PI, QUARTER_PI);
fill(255,0,128);
arc( 300,150,50,7,radians(50), radians(270));

# data[].attributes.body
void setup() {

size(300, 300);

}

void draw() {

line(0 ,0, width, height);

}

# data[].attributes.body
void setup() {

size(300,300);

}

void draw() {

line(0, 0, mouseX, mouseY);

}

# data[].attributes.body
void setup() {

size(300,300);

}

void draw() {

background(255);

line(0, 0, mouseX, mouseY);

}

# data[].attributes.body
size(500, 500);
background(255, 255, 255);
noFill();
rect(10,10,40,30);
line(10,10,50,40);
line(10,40,50,10);
noFill();
triangle(30, 0, 50, 10,
10, 10);
noFill();
triangle(100, 10, 170, 60,
60, 60);
ellipse(250, 250, 40, 80);
noFill();
ellipse(250, 250, 80, 40);
noFill();
quad(200, 10, 220, 30, 180,
30, 200, 50);

# data[].attributes.body
size(500, 500);
background(255, 255, 255);
stroke (255, 0, 255);
line(0, 500, 500, 0);
stroke (255, 0, 255);
line(0, 0, 500, 500);
stroke (255, 0, 255);
fill (255, 0, 0);
quad(300, 50, 200, 50, 200,
150, 300, 150);
stroke (255, 0, 255);
fill (255, 255, 0);
triangle(125, 200, 175, 287, 75, 287);
stroke (255, 0, 255);
fill (0,255,0);
ellipse(375, 244, 100, 50);
fill (0,0,255);
bezier(150, 400, 150, 300,
350, 500, 350, 400);

# data[].attributes.body
void setup()

{

size(300, 300);

background(128,64,0);

fill(0,255,0);

for (int x = 25; x <= 275; x += 50) {

for (int y = 25; y <= 275; y += 75) {

ellipse(x, y, 25, 25);

}

}

}