What it does
draw.drawLine draws Line on a draw object. It takes x1, y1, x2, y2, r, g and b.
The API says: 0..255 colors
Signature
draw.drawLine(x1, y1, x2, y2, r, g, b)Arguments
x1y1x2y2rgb
Example · generated
function start() { draw.drawLine(100, 120, 100, 120, 1, 0.8, 0.4);}draw.drawLine is called with values of the shape its signature asks for. The code sits in start(), which the engine calls once, when the entity spawns.