HP Forums

Full Version: Colors in RECT_P(RRGGBB); [Red Green Blue]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
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.
Many thanks to Damien.

I was in decimal.

I feel like such a dunce.
Reference URL's