Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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];


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




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: