p5.js · 2 / 6

Dashboard
Creative coding · p5.js

Rectangles, ellipses & lines

Use rect(), ellipse(), and line() with pixel coordinates from the top-left. Toggle fill / stroke to separate outline from interior — corner radius on rects reads naturally on cards and UI mocks.