LINE, LINE_P ?
05-19-2015, 08:34 AM
Post: #1
 Digitaldreams Junior Member Posts: 24 Joined: May 2015
LINE, LINE_P ?
I've noticed many commands that output to the screen have two variants, either with or without '_P'. What is the difference ?, the manual shows both but tends to use the _P variant as an example.

Sorry for such simple questions

Regards
05-19-2015, 08:54 AM
Post: #2
 Didier Lachieze Senior Member Posts: 1,152 Joined: Dec 2013
RE: LINE, LINE_P ?
See the details under "Drawing" on page 531. In summary "_P" commands use pixel coordinates to address the screen, while non "_P" commands use Cartesian coordinates where the screen is mapped to a plane defined by Xmin, Xmax, Ymin, and Ymax.
05-19-2015, 09:44 AM (This post was last modified: 05-19-2015 09:54 AM by Digitaldreams.)
Post: #3
 Digitaldreams Junior Member Posts: 24 Joined: May 2015
RE: LINE, LINE_P ?
Thanks Didier...not got much time to read through the manual...

Regards
05-19-2015, 10:10 AM
Post: #4
 DrD Senior Member Posts: 1,101 Joined: Feb 2014
RE: LINE, LINE_P ?
Here's a little skeleton program that shows a way to use colors by name:

Code:
 EXPORT test() BEGIN   local red:=rgb(255,0,0),          green:=rgb(0,255,0),          blue:=rgb(0,0,255),          yellow:=rgb(255,255,0);   rect();                                        // clear graphic screen     rect_p(75,1,265,16,blue);                      // present blue rectangle      textout_p("Digitaldreams",G0,130,4,2,yellow);  // put your name in the marquee    wait (-1);  // admire your name for awhile END;

-Dale-
05-19-2015, 11:38 AM
Post: #5
 Digitaldreams Junior Member Posts: 24 Joined: May 2015
RE: LINE, LINE_P ?
Thanks Dale, noticed the RGB command.....Gee the Prime draws circles fast !
 « Next Oldest | Next Newest »

User(s) browsing this thread: 1 Guest(s)