commit 85b033297070540fa210fa1520ffa099cae20e41 Author: Yohann Dedy Date: Wed Aug 29 18:41:35 2018 +0200 Premier commit, répartition des points concentrée sur le centre du canevas à corriger. diff --git a/dotsWithinCircle.pyde b/dotsWithinCircle.pyde new file mode 100644 index 0000000..8f55a8c --- /dev/null +++ b/dotsWithinCircle.pyde @@ -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') diff --git a/sketch.properties b/sketch.properties new file mode 100644 index 0000000..2456b0a --- /dev/null +++ b/sketch.properties @@ -0,0 +1,2 @@ +mode=Python +mode.id=jycessing.mode.PythonMode