Post Reply 
LINE, LINE_P ?
05-19-2015, 08:34 AM
Post: #1
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 Smile

Regards
Find all posts by this user
Quote this message in a reply
05-19-2015, 08:54 AM
Post: #2
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.
Find all posts by this user
Quote this message in a reply
05-19-2015, 09:44 AM (This post was last modified: 05-19-2015 09:54 AM by Digitaldreams.)
Post: #3
RE: LINE, LINE_P ?
Thanks Didier...not got much time to read through the manual...

Regards
Find all posts by this user
Quote this message in a reply
05-19-2015, 10:10 AM
Post: #4
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-
Find all posts by this user
Quote this message in a reply
05-19-2015, 11:38 AM
Post: #5
RE: LINE, LINE_P ?
Thanks Dale, noticed the RGB command.....Gee the Prime draws circles fast !
Find all posts by this user
Quote this message in a reply
Post Reply 




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