Skip to content

Commit

Permalink
+*{+><+}*+
Browse files Browse the repository at this point in the history
  • Loading branch information
bbaudry committed Jun 22, 2024
1 parent 6ba92d3 commit b097618
Showing 1 changed file with 23 additions and 3 deletions.
26 changes: 23 additions & 3 deletions p5-experiments/plottable/trottoir002.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ function preload() {
function draw() {
background(0, 0, 100)
stroke(0, 0, 0)
inc = random(1,2)
inc = random(0.42,1.42)
//initgrid()
//drawgrid()
test2()
Expand Down Expand Up @@ -89,13 +89,33 @@ function test(){

function test2(){
translate(leftmargin+actualwidth*0.5,topmargin+actualheight*0.5)
var a=0
var a,b
a=0
for(i=0;i<actualwidth*0.5;i+=Math.exp(a)){
var b=0
b=0
for(j=0;j<actualheight*0.5;j+=Math.exp(b)){
ellipse(i,j,3,3)
b+=inc
}
b=0
for(j=0;j>-actualheight*0.5;j-=Math.exp(b)){
ellipse(i,j,3,3)
b+=inc
}
a+=inc
}
a=0
for(i=0;i>-actualwidth*0.5;i-=Math.exp(a)){
b=0
for(j=0;j<actualheight*0.5;j+=Math.exp(b)){
ellipse(i,j,3,3)
b+=inc
}
b=0
for(j=0;j>-actualheight*0.5;j-=Math.exp(b)){
ellipse(i,j,3,3)
b+=inc
}
a+=inc
}
}
Expand Down

0 comments on commit b097618

Please sign in to comment.