Post Reply 
Advanced form of LINE_P
01-03-2024, 09:50 PM
Post: #2
RE: Advanced form of LINE_P
The following program draws two lines:
  • first line between the points p1 (x1=80, y1=60) and p2 (x2=160, y2=120)
  • second line between the points p2 (x2=160, y2=120) and p3 (x3=100, y3=180)

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;
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 - Didier Lachieze - 01-03-2024 09:50 PM
RE: Advanced form of LINE_P - komame - 01-04-2024, 08:40 AM



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