Basic

This is the smallest "real" browser setup in the examples: a fullscreen canvas created with createFullscreenCanvas and kept in sync with the viewport by autosize. Resize the window, move the pointer around, and click to see how the shader responds to canvas size changes and live input without any surrounding app code.

The shader uses several built-in inputs such as u_time, u_resolution, u_cursor, and u_click, plus a custom color uniform.

View source