Haig Armen Educational Archive


Exercise 14

by Haig. Average Reading Time: less than a minute.

Making Rainbows


void setup() {
  size(300, 300);
  background(#04B1CE);
  noFill();
}

void draw() {
  strokeWeight(random(3, 10));
  stroke(random(255), random(255), random(255));
  float rainbow_size = random(200, 270);
  ellipse(150, 350, rainbow_size, rainbow_size);
}

No comments on ‘Exercise 14’

Leave a Reply