Color Converter ~ Convert hex colors to Kodular / App Inventor Integer Color or RGB color. 
(enter hex color without “#FF ”) 
Python Requirements:
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.
  
  
      Dynamic Components Extension that supports every component in your AI2 distribution, instead of having pre-defined components.
I thought about making a full method to create all dynamic components without creating different blocks for every component because it would be useless. So I was trying to find a proper solution for a long time. And here it is! 
The minimum required API version for this extension is  1 . 
It basically uses Java’s Reflection feature, so this allows you to create …
   
 
Without Download: 
http://color.kodsuzyazilim.tk/ 
Download : 
ColorConverter.zip  (6.4 KB)
             
            
               
               
              1 Like 
            
           
          
            
              
                Peter  
                (Moderator)
               
              
                  
                    December 7, 2021,  1:39pm
                   
                   
              2 
               
             
            
              
Maybe explain what this does?
             
            
               
               
               
            
           
          
            
            
              
 Peter:
 
explain
 
 
I think it refers to the “templates” using Schema from Dynamic Components 
             
            
               
               
              1 Like 
            
           
          
            
              
                dora_paz  
                (Dora)
               
                 
              
                  
                    December 7, 2021,  2:13pm
                   
                   
              4 
               
             
            
              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 ”
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 
            
           
          
            
              
                dora_paz  
                (Dora)
               
              
                  
                    December 7, 2021,  3:01pm
                   
                   
              6 
               
             
            
              And what if we use alpha opacity value ?
             
            
               
               
              1 Like 
            
           
          
            
            
              Hi @OmerGundogar ,
Please check out this script which also supports alpha channels for Hex code conversion:
  
  
    This Python script provides a simple GUI to convert hexadecimal color codes to the integer color format used by App Inventor. The script is built using Tkinter for the graphical user interface, and also utilizes the pyperclip library to copy the result to the clipboard. 
 Required Python Libraries
This script relies on the following Python libraries: 
Tkinter: A standard Python library for creating lightweight and simple GUIs. This is included with most Python installations, but if it’s not pre…
   
 
This python script outputs App inventor color integer for any valid Android color Hex code.