Skip to content

Commit

Permalink
++}[><]{++
Browse files Browse the repository at this point in the history
  • Loading branch information
bbaudry committed Oct 9, 2024
1 parent 51a2430 commit 5b60db5
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions p5-experiments/plottable/phoenix001.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ function draw() {
stroke(0,0,100)
rect(leftmargin,topmargin,actualwidth,actualheight)
grid()
drawgrid()
drawgrid()
drawgrid()
drawgrid()
drawgrid(0)
drawgrid(1)
drawgrid(2)
drawgrid(3)
noLoop()
}

Expand All @@ -46,17 +46,17 @@ function grid(){
}
}

function drawgrid(){
function drawgrid(off){
var x1,y1,x2,y2,x3,y3,x4,y4
var i1,i2,i3,i4,j1,j2,j3,j4
var rad=17
j1=Math.floor(random(steps-2))
i1=0
i1=off
x1=grille[i1+j1*steps].x
y1=grille[i1+j1*steps].y
//fill(0,100,100);ellipse(x1,y1,rad,rad)
j2=Math.floor(random(j1+1,steps-1))
i2=0
i2=off
x2=grille[i2+j2*steps].x
y2=grille[i2+j2*steps].y
//fill(50,100,100);ellipse(x2,y2,rad,rad)
Expand Down

0 comments on commit 5b60db5

Please sign in to comment.