markroland / sand-table-pattern-maker

A tool for creating G-code commands to draw patterns
37 stars 9 forks source link

Sand Table Pattern Maker

Sand Table

Launch Pattern Maker

This is part of my Sand Table Build

Built with p5.js

Installation

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.

Controls

How to Build a New Pattern

In order to build a new pattern a few things must be done:

  1. Create a Pattern Class and save it to the assets/js/patterns folder
  2. Link to Pattern Class file in index.html
  3. Add the Pattern Class to the 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:

Once you've completed your design, submit a Pull Request and if it works, I'll merge it in. Thanks in advance!

Patterns

License

Attribution-NonCommercial-ShareAlike 4.0 International (CC BY-NC-SA 4.0)

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.