soggy.Documentation Back to Soggy ↗

renderer.line

Draws a anti-aliased line on the screen.

renderer.line(x1: number, y1: number, x2: number, y2: number, r: number, g: number, b: number, a: number)

Arguments

NameDescriptionType
x1X coordinate of the start pointnumber
y1Y coordinate of the start pointnumber
x2X coordinate of the end pointnumber
y2Y coordinate of the end pointnumber
rRed color component (0 to 255)number
gGreen color component (0 to 255)number
bBlue color component (0 to 255)number
aAlpha (opacity) component (0 to 255)number

Type to search guides, functions and events.