Skip to content

SebastianSimon/pattern-generators

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A collection of pattern generators

Old private project of mine from early 2019.

Open the web app and click Add new pattern generator, then type in the file names found in the generators directory. You can then choose these generators in the Choose a pattern … menu.

I don’t really remember why I designed it in such a way that you have to add these generators by typing them manually. I have to revisit this later.

There is a template for generators. Look at the code of the other generators to create a new one. The title field in the exported object is the tooltip of the option.

The fixValues module could probably be simplified a lot; this is probably from before I knew about valueAsNumber.

Examples

compositionNotebook.mjs

A pattern that looks like the cover of a composition notebook.

dirtyWater.mjs

Something that looks like water made dirty by randomly drawn lines.

mcEscherMosaic.mjs

A pattern based on mosaic pictures by M. C. Escher. I can see a head with horns here, akin the one of a demon.

modularMultiplication.mjs

A pattern based on modular multiplication.

radialSierpinski.mjs

A pattern resembling the Sierpinski triangle, but radial.

rotationalSymmetry.mjs

Randoml colorful tiny triangles, arranged in a rotationally symmetric way. These are reminiscent of identicons. 4 samples are shown.

uuid.mjs

Using c49ae43a-69d8-4ebc-b138-095fbb793d8a, e4ff17f2-090b-46b4-996f-1fa20fbba6ea, 43faf3b7-4c53-4e32-885d-c71440414de1, and 88b40878-2b56-48a6-8f0b-8e674231acf8.

Five pentagons and hexadecimal digits in the middle based on a UUID, which is easy to visually distinguish. 4 samples are shown.

weirdSpikyChessboard.mjs

Something that looks like a chessboard-based fractal

About

Collection of pattern generators using HTML5 Canvas and modern JavaScript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published