fix syntax

This commit is contained in:
2026-02-17 09:15:15 -06:00
parent f310c18b84
commit 4e1b63fd0e
52 changed files with 2169 additions and 1754 deletions

View File

@@ -52,10 +52,14 @@ function hsl_to_rgb(h, s, l) {
var bunny_count = 20
for (var i = 0; i < bunny_count; i++) {
var pct = i/bunny_count
var hue = 270 * i / bunny_count
var sp = sprite.create(bunny, {
var i = 0;
var pct = 0;
var hue = 0;
var sp = null;
for (i = 0; i < bunny_count; i++) {
pct = i/bunny_count
hue = 270 * i / bunny_count
sp = sprite.create(bunny, {
pos: [random.random()*dim.x*pct, random.random()*dim.y*pct],
center,
color: hsl_to_rgb(hue, 0.5, 0.5)