2D or not to 2D is a project about geometry, motion and perspective. It began as a simple idea where a rectangule is partitioned into several slices, which in turn are vertically offset by using the same partitioning function.
Later I added offsets, fake 2D shadows and other elements to convey a sense of dimensionality, where the blocks now occupy a space between 2D and 3D.
Params: - Number of Slices - Controls the number of individual slices. Sometimes two adjacent slices are merged. - Slant Randomness - Controls the slantedness of the slices. - Vertical Randomness - Controls the difference in height between the slices. - Space Between - Controls the size of the gap between slices. - Motion - The type of motion that the slices follow. - Color Combo - The stroke and background colors of the token. - Invert Colors - Flips the background and stroke color. You can still flip the colors later.
Controls: - Press S to save an animated GIF of the token - this can take a bit of time, just wait until the indicator says that it's complete. - Press F to invert the current colors. - Press the spacebar to cycle between 5 different modes that control the rotation of the blocks: 1. Rotating in tandem 2. Rotating in a wave pattern 3. Flat 4. Rotated 5. Interactive based on mouse coordinates
Shoutouts: - To Tom aka pumaparded for suggesting the awesome title - To Jesús Rascón for his amazing work on p5's saveGif function - P5JS for being such a cool library