Práctica de Processing III
Las siguientes prácticas consistieron en utilizar la función bucle para repetir en el lienzo distintas figuras:
Rejilla:
Rejilla:
float x;
void setup()
{
size(500, 500);
background(49,119,255);
}
void draw()
{
for (int x=20; x<=380; x=x+20)
{
.
.
}
}
void setup()
{
size(500, 500);
background(49,119,255);
}
void draw()
{
for (int x=20; x<=380; x=x+20)
{
.
.
}
}
- Puntos:
void setup()
{
background(0, 0, 0);
size(500, 500);
for (int x=20; x<=380; x=x+20)
{
for (int y=20; y<=380; y=y+20)
{
.
.
.
}
}
}
{
background(0, 0, 0);
size(500, 500);
for (int x=20; x<=380; x=x+20)
{
for (int y=20; y<=380; y=y+20)
{
.
.
.
}
}
}


Comentarios
Publicar un comentario