Hacker News new | ask | show | jobs
by whilenot-dev 901 days ago
Very nice blog post, thank you for sharing!

I spotted a small error in the Finally, Colors. section:

  const color = floor(random() * palette.length);
...should probably be

  const paletteIdx = floor(random() * palette.length);
  const color = palette[paletteIdx];
1 comments

ah, of course! thanks for reading and noticing. It's been updated.