int R=400;
float angulo=0;
void setup(){
fullScreen();
background(0);
smooth();
}
void draw(){
noStroke();
fill(0,20);
rect(0,0,width,height);
ellipseMode(CENTER);
stroke(255);
strokeWeight(2);
fill(255,20);
ellipse(width/2,height/2,900,900);
strokeWeight(10);
stroke(25,83,198);
point(width/2,height/2);
strokeWeight(5);
line(width/2,height/2,width/2+R*cos(angulo),height/2+R*sin(angulo));
angulo=angulo+0.005;
}
martes, 14 de enero de 2020
lunes, 13 de enero de 2020
2. Rejilla de puntos
int i,j;
fullScreen();
background(0);
for(j=5;j<height;j=j+20){
for(i=5;i<width;i=i+20){//puntos linea horizontal
strokeWeight(10);
stroke(229,20,02);
point(i,j);
}
}
fullScreen();
background(0);
for(j=5;j<height;j=j+20){
for(i=5;i<width;i=i+20){//puntos linea horizontal
strokeWeight(10);
stroke(229,20,02);
point(i,j);
}
}
miércoles, 8 de enero de 2020
Suscribirse a:
Entradas (Atom)