1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-08-26 09:44:32 +02:00

graphics-api docs

This commit is contained in:
Pomax
2020-09-19 12:29:43 -07:00
parent 7bf5a223bf
commit 7c530fee56
31 changed files with 420 additions and 103 deletions

View File

@@ -33,7 +33,7 @@ drawSlices(w, h, a, n) {
let area = 0;
let step = w/n;
for(let i=0, f=TAU/w, c, y; i<w; i += step) {
c = `rgba(150,150,255,${0.4 + 0.3 * random()}`;
c = `rgba(150,150,255,${random(0.4, 0.7)}`;
if (n > 50) setStroke(c);
setFill(c);
y = sin((i+step/2) * f) * a;