Creative Coding 習作 2024/6/1 - たくさんのものの生成
code:ruby
def setup
createCanvas(400, 400)
background(35, 27, 107)
noStroke
end
def draw
fill(238, 120, 138, 250)
ellipse(random(0, width), random(0, height), 15, 15)
filter(BLUR, 1)
end
https://scrapbox.io/files/665a65aa90d527001d7453d4.png
code:ruby
def setup
createCanvas(400, 400)
background(35, 27, 107)
noStroke
end
def draw
fill(238, 120, 138, 250)
x = random(0, width)
y = random(0, height)
if (dist(x, y, width/2, height/2) < 150)
ellipse(x, y, 15, 15)
end
filter(BLUR, 1)
end
https://scrapbox.io/files/665a66d1a4ba38001d958ced.png