node-gtk
node-gtk copied to clipboard
Passing array of boxed objects not working
const rect = new Gsk.RoundedRect()
const size = Graphene.Size.create(0, 0)
rect.init(
Graphene.Rect.create(0, 0, this.getAllocatedWidth(), this.getAllocatedHeight()),
size,
size,
size,
size
)
snapshot.appendBorder(
rect,
[1, 1, 1, 1],
[RED, RED, RED, RED]
)
The border create by the above code doesn't receive the red color.