Is there anything wrong with using decimal values for the colors in an RGBA color string?
I am using canvas in Javascript and I have some code that looks like this at the moment: const color = [ 0.3, 0.25, 0.12 ]; // in the actual code this is returned from a function const r = Math.floor(color[0] * 255); const g = Math.floor(color[1] * 255); const b = Math.floor(color[2] * 255);… Read More Is there anything wrong with using decimal values for the colors in an RGBA color string?