I am trying to apply an alpha for color, but I can’t figure out how do it. I want to do something like:
node.strokes = [{ type: 'SOLID', color: {r: 0, g: 0, b: 0, a:1} }]
But this gets an error: Error: in set_strokes: Expected “strokes.[0].color” to have type {r: number, g: number, b: number} but got additional property “a”.
Right now I’m using opacity, but this controls the layer opacity not the color’s alpha channel.