PixelDisplay.line

From MiniScript Wiki
Revision as of 00:03, 29 April 2020 by ZachStrout (talk | contribs) (Created page with "<c>PixelDisplay.line</c> draws a line on the pixel display. === Arguments === {| class="wikitable" |- ! Parameter Name !! Type !! Default Value !! Meaning |- | ''x1'' ||...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

PixelDisplay.line draws a line on the pixel display.

Arguments

Parameter Name Type Default Value Meaning
x1 number 0 horizontal position of one end of the line
y1 number 0 vertical position of one end of the line
x2 number 960 horizontal position of other end of the line
y2 number 640 vertical position of other end of the line
color color self.color color to draw
penSize number 640 width of line to draw

Example

gfx.line 100,200, 500,200