Premier commit, répartition des points concentrée sur le centre du

canevas à corriger.
master
Yohann Dedy 2018-08-29 18:41:35 +02:00
commit 85b0332970
2 changed files with 22 additions and 0 deletions

20
dotsWithinCircle.pyde Normal file
View File

@ -0,0 +1,20 @@
# 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')

2
sketch.properties Normal file
View File

@ -0,0 +1,2 @@
mode=Python
mode.id=jycessing.mode.PythonMode