Calculator Community > HP Prime

[HP Prime] Tunnel update! (now running at 90 FPS!)

(1/6) > >>

DJ Omnimaga:
I saw a mandelbrot program a while ago somewhere that is from an HP Prime BASIC program, which left the impression that we could use colors inside programs. However, I haven't figured out how to do it because the manual doesn't explain how, other than the four shades of gray

TEXTOUT_P(text [ ,G], x, y [ ,font, c1, width, c2])

c1 is basically the text color. However, no matter the colors I choose, the text and background stays black and to not have a backgroud I have to not specify c2. Am I doing something wrong or is it a newly introduced bug that wasn't in the version used for the mandelbrot program? ???

P.S: An HP forum section would be nice.

bb010g:
You can give a RGB[A] value to drawing functions. For example, you can do this for a colored hello world:

--- Code: ---EXPORT hello_world()
BEGIN
RECT();
TEXTOUT_P("Hello World!",50,50,0,RGB(0,136,204));
FREEZE;
END;

--- End code ---
The commands have changed. Look through the help while in the editor. It's amazing.

Eiyeron:
bb010g wrap tour code with [ code][ /code] ;)


--- Code: ---EXPORT hello_world()
BEGIN
RECT();
TEXTOUT_P("Hello World!",50,50,0,RGB(0,136,204));
FREEZE;
END;

--- End code ---

DJ Omnimaga:
Wait do you mean there's on-calc help? O.O I was actually checking the PDF file at C:\Program Files (x86)\Hewlett-Packard\HP Prime Virtual Calculator\User_Guide_EN.pdf lol. Thanks btw. :)

I guess it might be a good idea to notify HP about the misleading HP Prime manual in the emulator folder, in case they release it as it is when the calc comes out and some people decide to use it. Maybe they just replaced 39gII screenshots with Prime ones without bothering about changing the rest. The scary part is that this is supposedly the official emulator release, so I hope that the calc won't come with that version of the PDF.

Anyway that works now, thanks :D (changed the code a little bit)

TIfanx1999:
Cool! Nice to see color text working. :)

Navigation

[0] Message Index

[#] Next page

Go to full version