Post Reply 
Advanced form of LINE_P
01-04-2024, 08:40 AM
Post: #3
RE: Advanced form of LINE_P
(01-03-2024 09:50 PM)Didier Lachieze Wrote:  The following program draws two lines:
[...]
Code:
#pragma mode( separator(.,;) integer(h32) )
EXPORT Demo_LINE_P()
BEGIN

//// LINE_P - Advanced form to render multiple lines
RECT();  // Clear screen
LINE_P({{80,60},{160,120},{100,180}},{{1,2},{2,3}},{-1}); // draw two lines
WAIT();

END;

My mistake was that I focused too much on the format of the definition of points and lines and didn't notice that "-1" should be used as a list element, whereas I was entering it as a direct parameter. Now everything is working correctly.
Thanks.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Advanced form of LINE_P - komame - 01-03-2024, 07:25 PM
RE: Advanced form of LINE_P - komame - 01-04-2024 08:40 AM



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