Skip to content

Commit

Permalink
*[°+><+°]*
Browse files Browse the repository at this point in the history
  • Loading branch information
bbaudry committed Oct 19, 2024
1 parent e3c3d79 commit 5474157
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions p5-experiments/plottable/phoenix002.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ function draw() {
stroke(0, 0, 100)
rect(leftmargin, topmargin, actualwidth, actualheight)
initgrid()
showgrid()
//showgrid()
xinc = 0.5
for(var i=0;i<11;i++){
for(var i=0;i<42;i++){
cactus()
}
noLoop()
Expand Down Expand Up @@ -65,8 +65,14 @@ function cactus() {
grille[p4].x,grille[p4].y,)
}
else{
line(grille[p1].x,grille[p1].y,
if(random()<0.42){
line(grille[p1].x,grille[p1].y,
grille[p3].x,grille[p3].y)
}
else{
line(grille[p2].x,grille[p2].y,
grille[p4].x,grille[p4].y)
}
}
}
}
Expand Down

0 comments on commit 5474157

Please sign in to comment.