Hex to Kodular / RGB converter [Python]

Color Converter ~ Convert hex colors to Kodular / App Inventor Integer Color or RGB color.
(enter hex color without “#FF”)
Screenshot_2

Python Requirements:

  • pillow
  • pyqt5
  • pyperclip

I wanted to do this while learning Python. Maybe it will be of use to you. I am using for dynamic schema program (yusuf cihan’s extension)
I’m using for me as I don’t want to use color converters as blocks.

Without Download:
http://color.kodsuzyazilim.tk/

Download :
ColorConverter.zip (6.4 KB)

1 Like

Maybe explain what this does?

I think it refers to the “templates” using Schema from Dynamic Components :thinking:

1 Like

Nice idea but something isn’t quite right, see the difference in using your color converter and using Kodular’s color utilities

please remove “#FF

Screenshot_1

I mentioned that I use this program for dynamic schema.
dynamic schema is a json file. It’s easier this way.
The dynamic scheme python program prepared for the Dynamic components extension cannot convert the colors correctly.

2 Likes

And what if we use alpha opacity value ?

1 Like

not possible

1 Like

Hi @OmerGundogar,

Please check out this script which also supports alpha channels for Hex code conversion:

This python script outputs App inventor color integer for any valid Android color Hex code.