sobre que te gustaría que se enfocara más este blog

algo que no entiendas? :)

jueves, 7 de diciembre de 2017

cuadrado

float r = 0;
float backR;
float backG;
float backB;

void setup() {
  size(500,500);
  backR = random(0,100);
  backG = random(0,100);
  backB = random(0,100);
 
  background(random(0,255),random(255),random(255));
  rectMode(CENTER);

 noStroke();
 smooth();
}

void draw() {
  fill(backR, backG, 162,50);

  rect(width/2, height/2, width, height);
 
  fill(255);
  translate(mouseX,mouseY);
  rotate(r);
  rect(0, 0, 100, 100);
 
  r= r + (1.5);
}

Lineas centro

void setup() {
  background(0,255,0,255);
  size(700,7000);
}
void draw() {
  fill(0);
 
  stroke(random(0,255),random(255),random(255));
  line(350,350,mouseX,mouseY);
}

martes, 5 de diciembre de 2017

cuadrado

size(500,500);
background(13,40,34);
stroke(255,255,255);
line(50,50,50,450);
stroke(255,0,0);
line(450,450,450,50);
stroke(0,0,255);
line(50,450,450,450);
stroke(0,128,128);
line(450,50,50,50);