Home › Forums › Other › Chrome: Rendering RGBA Colors? › Reply To: Chrome: Rendering RGBA Colors?
July 4, 2015 at 8:27 am
#204571
Participant
Note: I figured out why this occurs. Basically, Chrome apparently doesn’t like it when you provide the semi-colon in the string following the RGBA, For example:
Chrome will have issues rendering this:
this.color =
'rgba('
+ getRandomInteger(1, 255) + ', '
+ getRandomInteger(1, 255) + ', '
+ getRandomInteger(1, 255) + ', '
+ getRandomValue(0.1, 1) + ')<strong>;</strong>';
But, not this…
this.color =
'rgba('
+ getRandomInteger(1, 255) + ', '
+ getRandomInteger(1, 255) + ', '
+ getRandomInteger(1, 255) + ', '
+ getRandomValue(0.1, 1) + ')';