rp-rs / rp-hal-boards

Board Support Packages for RP2040 based PCBs
215 stars 90 forks source link

rp2040 zero rainbow using palette #82

Open ChocolateLoverRaj opened 3 months ago

ChocolateLoverRaj commented 3 months ago

Rather than do math with rgb numbers directly, it's much simpler to just use HSL and a color conversion library to convert HSL into RGB. Imo this makes the code simpler and easier to understand.