User Tools

Site Tools


en:line

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:line [2016/08/13 14:12]
admin
en:line [2020/02/28 10:46]
Line 1: Line 1:
-===== Line (Statement) ===== 
-==== Format ==== 
-**line** [[integerexpressions|x1_position]], [[integerexpressions|y1_position]], [[integerexpressions|x2_position]], [[integerexpressions|y2_position]]\\ 
-**line** ( [[integerexpressions|x1_position]], [[integerexpressions|y1_position]], [[integerexpressions|y2_position]], [[integerexpressions|y2_position]] ) 
  
-==== Description ==== 
-Draws a line from the point ([[integerexpressions|x1_position]], [[integerexpressions|y1_position]]) to the point ([[integerexpressions|x2_position]], [[integerexpressions|y2_position]]) with the current pen [[color|color]].  The width of the line may be adjusted using the [[PenWidth|PenWidth]] statement. 
- 
-==== Example ==== 
- 
-<code> 
-clg 
- 
-color black 
- 
-line 50,50,200,200 
- 
-penwidth 5 
-line 100,200,200,200 
- 
-penwidth 10 
-line 100,200,50,50 
-</code> 
-draws\\ 
-{{:line.png|Line}} 
- 
-==== See Also ==== 
-{{page>en:start#Graphics - Drawing&noheader}} 
- 
-==== History ====  
-||| 
en/line.txt ยท Last modified: 2020/02/28 10:46 (external edit)