Use custom # code for Color
-
Hello,
I want to use a custom color code. How do i remake this code so it works?
#FFFF5800
if (obj.selected && obj.columnIndex != 2) { g.setColour(Colours.withAlpha(obj.itemColour, 0.5)); g.fillEllipse([a[0] + 5, a[1] + a[3] / 2 - 6 / 2, 6, 6]);
-
@tiesvdam instead of obj.itemColour, use 0xFFFF5800
-
-
And for this one?
g.setColour(Colours.withAlpha(Colours.orangered, opacity));i that it would be:
g.setColour(Colours.withAlpha(Colours.0xFFFF5800, opacity));But that did not work :(
-
@tiesvdam said in Use custom # code for Color:
And for this one?
g.setColour(Colours.withAlpha(Colours.orangered, opacity));i that it would be:
g.setColour(Colours.withAlpha(Colours.0xFFFF5800, opacity));But that did not work :(
Just remove the “Colours.” So you’re left with just “0xFFFF5800”