Color Block Secret revealed

Hi to everybody who likes colors,

the colour with … block does not handle exact RGB. Instead it uses percentages.

For example:

The iOS standard blue “007AFF” is RGB 0,122,255.

In Thunkable blocks you have to use 100/255*x

So
R =100/255 * 0 = 0
G=100/255 * 122= 48
B=100/255 * 255=100

I hope this helps everybody who is facing the same problem and does not want to waste time :wink:

2 Likes