int min; int max; void setup() { size(320, 180); frameRate(8); min = 0; max = 100; } void draw() { noStroke(); colorMode(RGB); fill(color(255, 255, 255, 127)); rect(0, 0, width, height); colorMode(HSB); fill(random(255), 255, 255); float diam = random(min, max); ellipse(random(width), random(height), diam, diam); }
|