Join Nostr
2026-08-14 22:13:12 UTC
in reply to

gloriouscow on Nostr: It's trivial to port this mess to Rust. The palette was just generated by using a ...

It's trivial to port this mess to Rust.

The palette was just generated by using a different trig function for R, G and B.<code> for ( count = 0 ; count &lt; num_colors ; count ++ ) {<br><br> bmi-&gt;bmiColors[count].rgbBlue = cos(RAD(count))*256;<br> bmi-&gt;bmiColors[count].rgbGreen = sin(RAD(count))*256;<br> bmi-&gt;bmiColors[count].rgbRed = sinh(RAD(count))*256;<br> bmi-&gt;bmiColors[count].rgbReserved = 0;<br> }<br></code>