Home /  Sketchbook /  p5.js - Gradient Shader
  • Info

Overview

A p5.js sketch which uses a shader to draw a basic gradient and in doing so, visualizes the transformation performed in the vertex shader to move the origin to the top-left corner.

Controls

(No interactivity implemented yet).

References:

Links:

  • Live View
  • Source on Github

Screenshot:

screenshot