dotsWithinCircle/dotsWithinCircle.pyde

21 lines
433 B
Python

# palette https://coolors.co/c0caad-9da9a0-654c4f-b26e63-cec075
cerDiam = 580
size(600, 600)
background('#cec075')
noStroke()
fill('#b26e63')
ellipse(width/2,height/2,cerDiam,cerDiam)
for i in range(0,500):
fill('#9da9a0')
stroke('#654c4f')
strokeWeight(1)
dist = random(cerDiam/2)
diam = random(5,20)
pos = PVector.random2D()
ellipse(pos.x*dist+width/2,pos.y*dist+height/2,diam,diam)
print('ok')