-SOLVED-
i am traying to set color orange to turtle
this is my error code:
but the compiler return me this error:
java.lang.NumberFormatException: For input string: "FFFF7700"
are try this too:
but i get the same error.
SOLUTION (EASY):
NARANJA = 0xFFFF6A00
DO IT!!!
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"
are try this too:
B4X:
Turtle.SetPenColor ( fx.Colors.From32Bit(0xFFFF6A00))
SOLUTION (EASY):
NARANJA = 0xFFFF6A00
DO IT!!!
Last edited: