From 5c8e3ae20cc8132c76de031dd2409355f67eb72a Mon Sep 17 00:00:00 2001 From: Zhao Xin <7176466@qq.com> Date: Sat, 17 Dec 2022 23:43:34 +0800 Subject: [PATCH] update --- 11.风扇.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/11.风扇.html b/11.风扇.html index 1e0fc8f..4b0a98e 100644 --- a/11.风扇.html +++ b/11.风扇.html @@ -32,14 +32,14 @@ stroke("rgba(128,128,255,0.8)"); fill("rgba(128,128,255,0.8)"); beginShape(); - for (let θ = 0; θ < 180; θ++) { + for (let θ = 0; θ < 360; θ+=3) { let d = r * sin(θ * 3); vertex(cos(θ) * d, -sin(θ) * d); } endShape(CLOSE); speed = lerp(speed, speeds[gear], acceleration); angle = - (angle + anglePerFrame * (speed * random(0.95, 1.05))) % + (angle + anglePerFrame * (speed * random(0.99, 1.01))) % 360; pop(); }