Skip to content

reproducing the 10Print Pattern with JS and HTML Canvas

Notifications You must be signed in to change notification settings

markusphil/10PrintJSCanvas

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

10Print

The iconic 10 Print algorithm is probably not only the simplest, but the most influential, algorithm form random pattern generation.

This small project is an attempt to not only replicate 10 Print patterns on HTML canvas, but also to add some animation and other sugar to it.

How does it work?

Pretty simple: iterate over the canvas in rows and cols and randomly draw a line from top-left to bottom-right or top-right to bottom-left of that cell.

You can find a basic implentation in the 10Print.js file.

About

reproducing the 10Print Pattern with JS and HTML Canvas

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published