nimp5 documentation
-
Get started: This program creates a canvas that is 400 pixels wide and 400 pixels high, and then starts drawing white circles at the position of the mouse. When a mouse button is pressed, the circle color changes to black.
-
Flashing canvas: A canvas that flashes random colors (shows how to change frameRate)
-
Easing: Move the mouse across the screen and the symbol will follow.
-
Keyboard: Click on the image to give it focus and press the letter keys to create forms in time and space. Each key has a unique identifying number. These numbers can be used to position shapes in space.
-
Polygons: What is your favorite? Pentagon? Hexagon? Heptagon? No? What about the icosagon? The polygon() function created for this example is capable of drawing any regular polygon. Also shows possible inputs for colors.
-
Okazz 220919a: Art by Okazz, original at openprocessing.org/sketch/1653811.
-
Okazz 221026a: Art by Okazz, original at openprocessing.org/sketch/1653811.
-
Sine Wave: Render a simple sine wave. Original by Daniel Shiffman https://p5js.org/examples/math-sine-wave.html
-
Instance mode: This program creates a canvas in a local p5 instance using instance mode.
-
Doorbell: How to load and play a sound (using p5sound). Adapted from p5.SoundFile reference.