Lines Matching refs:p
5 export default ProcessingWrap<{}>(`'In and out' from openprocessing.org`, (p) => {
6 p.setup = () => {
7 p.strokeWeight(7);
17 const nx = p.cos(p.PI / 3) * vx - p.sin(p.PI / 3) * vy;
18 const ny = p.sin(p.PI / 3) * vx + p.cos(p.PI / 3) * vy;
21 p.line(ax, ay, bx, by);
22 p.line(ax, ay, cx, cy);
23 p.line(cx, cy, bx, by);
35 p.draw = () => {
36 p.background(240);
38 p.width - 142,
39 p.height - 142,
41 p.height - 142,
43 (p.sin((0.0005 * Date.now()) % (2 * p.PI)) + 1) / 2