Turtle. How set color orange to Turtle

dalonieto

New Member
-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"

are try this too:
B4X:
    Turtle.SetPenColor ( fx.Colors.From32Bit(0xFFFF6A00))
but i get the same error.


SOLUTION (EASY):
NARANJA = 0xFFFF6A00
DO IT!!!
 
Last edited:
Top