This is an App Inventor Extension to convert color models.It has 3 method,more details below.
Input an App Inventor color block(either default color block or
makecolorblock),and it will return a Hex value.
red block,then it will return
It is a six-digits hex string,without
# in the front,all letters are lower case letters,pay attention to the digit,it has only 6 digits,not 8 or 3.
Usually when you use a hex color value(usually by the web client),you may need to add an
# in the front.
Input a Hex color value.It must be a six-digits hex string,without
# in the front,all letters must be lower case letters,pay attention to the digit,it has only 6 digits,not 8 or 3.
Then it will return a negative integer,you can just place it after some blocks like
set Button1.BackgroundColor to .Actually,App Inventor color value is just a negative number,more details here"App Inventor Color Chart".
Input r(red),g(green),b(blue) value(integers between 0 and 255),it will return an six-digits hex string,without
# in the front.All letters are capital letter.See the example below:
Example:Input rgb value(255,246,123),return
Its result is different from the hex value of the first method or the second one.So pay attention to this point.Remember the capital letter.