Referring to this post by @Erel: https://www.b4x.com/android/forum/threads/bccolorpicker-nice-color-picker.114368/
In the example given, after downloading the BCColorPicker.b4xlib, placing it in the additional libraries folder and loading it in the IDE
to my surprise, the 'Panel' color is neither changed nor the event is invoked (by logging ColorValue)
What is going on?
I could figure it out, converting an Int Color value to javafx.scene.paint.Paint:
B4X:
Sub GetARGB(Color As Int) As Object
Private res(4) As Int
res(0) = Bit.UnsignedShiftRight(Bit.And(Color, 0xff000000), 24)
res(1) = Bit.UnsignedShiftRight(Bit.And(Color, 0xff0000), 16)
res(2) = Bit.UnsignedShiftRight(Bit.And(Color, 0xff00), 8)
res(3) = Bit.And(Color, 0xff)
Dim paint As Object= fx.Colors.ARGB(res(0),res(1),res(2),res(3))
Return paint
End Sub