Label HTML color code

Thanks :grinning:

The conversion does not look like fun !!

This is how to convert red from 64 bit to 32 bit to match that chart.
Don't know why the chart called it 32 bit when the numbers were 24 bit.

I am probably clipping the hex wrong.

2 Likes

Oeps.... that looks very dull and difficult indeed. Is your formula ABG usefull for every case you think? I'am going to try it...

Why is 32 bit still used in appinventor? Because is from older days for RGB?

I probably got lucky with the coding of the Red color.

Probably. Backwards compatibility is important for the impoverished target audience of MIT AI2.

It looks very good. I'm going to try it and let it know

Seems to work very well :smiley:

(Draggable - click on image first to get full size before dragging)

Usage Example:

:bow: @ABG

How about posting a link to it?

I'm not sure that sample tests correspondence with the color chart posted earlier.
The test does not check for scrambled or ignored color components.
Maybe feed it explicit triples from the chart, and compare the resulting color with the chart?

You are already a step forward. Its looks very good..... :ok_hand:

Yes right. I have to learn more how to use the links. Thanks

Tested on a range of set colours all seem to work as expected

1 Like

And it is really good. I tested it and compared it with the the use of tekstcolor. Every time is the same color.
Thanks all with this. Especially ABG. I can now make reports as I wanted.

That's 64, not 62.

Yes you are right. I saw it. Nevertheless it works like 64 :face_with_hand_over_mouth:

In code, how it reads can be just as influential as how it works, once it spreads.

Your right. Here is the good one

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.