HP Forums
Colors in RECT_P(RRGGBB); [Red Green Blue] - Printable Version

+- HP Forums (https://www.hpmuseum.org/forum)
+-- Forum: HP Calculators (and very old HP Computers) (/forum-3.html)
+--- Forum: HP Prime (/forum-5.html)
+--- Thread: Colors in RECT_P(RRGGBB); [Red Green Blue] (/thread-684.html)



Colors in RECT_P(RRGGBB); [Red Green Blue] - veeblefester - 02-15-2014 10:59 AM

What is described on pages 541 and 542 of the User's Guide works fine on the emulated Prime.

That is, you can program RECT_P(FF0000); [page 542] and get a bright red rectangle displayed on the emulated Prime.

The same line on the real Prime gives you a syntax error because of the 'FF' [RR].

Does anyone know the way to specify the color on the real Prime?

If so, where is this documented?

Thanks in advance for any help.


RE: Colors in RECT_P(RRGGBB); [Red Green Blue] - Damien - 02-15-2014 11:38 AM

Hi,
Are you in HEXADECIMAL on your Prime ? (look at your home settings)
You have to enter the color like that (for HEXA): RECT_P(#RRGGBBh),
with RR,GG,RR from 00h to FFh.
# is a prefix which tells that you are using a binary integer.
h is the suffix of the base used for the binary integer (h for hexadecimal, d for decimal, b for binary, o for octal).

Regards,

Damien.


RE: Colors in RECT_P(RRGGBB); [Red Green Blue] - veeblefester - 02-15-2014 10:11 PM

Many thanks to Damien.

I was in decimal.

I feel like such a dunce.