Skip to content

Instantly share code, notes, and snippets.

@paulinalinaa
Created November 18, 2016 10:41
Show Gist options
  • Select an option

  • Save paulinalinaa/e5da9b51fadc459a9811c8c90619adab to your computer and use it in GitHub Desktop.

Select an option

Save paulinalinaa/e5da9b51fadc459a9811c8c90619adab to your computer and use it in GitHub Desktop.
design a word
function setup() {
createCanvas(500,500);
colorMode(HSB,360,200,100,100);
background(255);
}
var x = 1+2*2
var y = 5
var a = 1
var b = 2-3*5
var c = 5*5/2
function draw() {
fill(random(a++),random(b++),random(c++));
ellipse(random(x++),random(y++),10,10);
rect(random(x++*4),random(y++*4),10,10);
if (x >= 500) {
saveCanvas('out','png');
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment