DRAWMENU
Syntax: DRAWMENU({string1, string2, …, string6})
Draws a six-button menu at the bottom of the display, with labels string1, string2, …, string6.
Example:
DRAWMENU("ABC", "", "DEF") creates a menu with the rst and third buttons labelled ABC and DEF,
respectively. The other four menu keys are blank.
FREEZE
Syntax: FREEZE
Pauses program execution until a key is pressed. This prevents the screen from being redrawn after the end
of the program execution, leaving the modied display on the screen for the user to see.
PX→C
Converts from screen coordinates to Cartesian coordinates.
RGB
Syntax: RGB(R, G, B, [A])
Returns an integer number that can be used as the color parameter for a drawing function, based on Red-,
Green-, and Blue-component values (each 0 to 255).
If Alpha is greater than 128, returns the color agged as transparent. There is no alpha channel blending on
Prime.
Examples:
RGB(255,0,128) returns 16711808.
RECT(RGB(0,0,255)) makes a blue screen
LINE(0,0,8,8,RGB(0,255,0)) draws a green line
Pixels and Cartesian
ARC_P, ARC
Syntax; ARC(G, x, y, r [ , a1, a2, c])
Syntax; ARC_P(G, x, y, r [ , a1, a2, c])
Draws an arc or circle on G, centered on point x,y, with radius r and color c starting at angle a1 and ending on
angle a2.
G can be any of the graphics variables and is optional. The default is G0
r is given in pixels.
c is optional and if not specied black is used. It should be specied in this way: #RRGGBB (in the same way as
a color is specied in HTML).
a1 and a2 follow the current angle mode and are optional. The default is a full circle.
Example:
Program commands 593
Komentarze do niniejszej Instrukcji