This is part of my Sand Table Build
Built with p5.js
The great news is that this doesn't need to be compiled or installed to run, simply open it in your browser here!
That said, everyone likes to tweak things, so if you'd like to do that, go ahead and clone or Download from Github and then open the index.html file in your favorite browser.
In order to build a new pattern a few things must be done:
assets/js/patterns
folderindex.html
Patterns
config in the main sketch file (sand_table_pattern_maker.js
).
This object must have a key that matches the class's this.key
value and the object value
must be a Class instantiation.Pattern classes are made up of at least 4 methods:
this.key
- Used for identifying the class's properties in the main sketch filethis.name
- Used for referencing the pattern in the UI.this.config
- This is an object that defines the pattern's input configuration options.this.path
- Initializes the pattern's output path coordinatescalc
method.Once you've completed your design, submit a Pull Request and if it works, I'll merge it in. Thanks in advance!
This work is licensed under a Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0) License.
This work makes use of p5.js, which carries a GNU Lesser General Public License.