Issue
Method toRgba
for Color returns unexpected alpha in range 0-255 instead of 0-1 as in CSS.
Steps to reproduce
- Get
fill
from absolute white node - Run next code:
const rgbaVal = new Color(fill).toRgba();
console.log(rgbaVal);
Expected Behavior
a
value from logged object should be in range 0-1: { r: 255, g: 255, b: 255, a: 1 }
Actual Behavior
a
value from logged object in range 0-255: { r: 255, g: 255, b: 255, a: 255 }