Grayscale Bytes – A Tiny Generative Code Study

This is a study in generative abstract tiny code. I started with this dweet which uses an interesting algorithm to fill in the shapes.

r=r=>Math.random()*r|0
X=r(4e3)-2e3
Y=r(4e3)-2e3
v=r(w=r(h=r(500)))
x.rotate(t*w?0:X)
for(i=w*h;i--;)x.fillRect(X+i%w,Y+i/w,S(t),S(i%v)/t/t)

From there I added more refinements and polish for release on fxhash. I made a tool that will allow you to browse seeds and save HD images.

See the Pen Grayscale Bytes – Tiny code monochrome composition study by Frank Force (@KilledByAPixel) on CodePen.

This entry was posted in Generative and tagged , , . Bookmark the permalink.

Leave A Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.