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
| Name | Description | Type |
|---|---|---|
| x1 | X coordinate of the start point | number |
| y1 | Y coordinate of the start point | number |
| x2 | X coordinate of the end point | number |
| y2 | Y coordinate of the end point | number |
| r | Red color component (0 to 255) | number |
| g | Green color component (0 to 255) | number |
| b | Blue color component (0 to 255) | number |
| a | Alpha (opacity) component (0 to 255) | number |