-SOLVED-
i am traying to set color orange to turtle
this is my error code:
B4X:
Dim Naranja As Int
Naranja = fx.Colors.From32Bit(HextoInt("FFFF7700"))
Turtle.SetPenColor(Naranja ) 'Color naranja
Sub HextoInt(Hex As String) As Int
Dim intValue As Int
intValue = Bit.ParseInt(Hex,16)
Return intValue
End Sub
but the compiler return me this error:
java.lang.NumberFormatException: For input string: "FFFF7700"