I’m getting the rgb values in float
format when I use :
console.log(node.fillsl0].color)
this is the object
which is returned :
{
r: 0.09583333134651184,
g: 0.09583333134651184,
b: 0.09583333134651184,
}
I’m trying to use the selected node’s hex or rgba color in the plugin’s UI.
But I have no idea how to use these values as this is the first time I’ve seen rgb values which are not “0-255” (I really hope I’m making sense).
Can this be converted in more “traditional” RGB format (each color values ranging between 0-255)? or is there any other way of getting the accurate HEX color of a rectangle node?