RenderLine
From OxeyeWiki
video.renderLine(x1, y1, x2, y2, a, r, g, b) | ||
Draws a line from point (x1, y1) to (x2, y2) using an ARGB color on the screen. The points are inclusive, meaning that if you draw from (0, 0) to (10, 0), the pixel at position (10, 0) will be filled and the total length of the line will be 11 pixels. | ||
Parameter | Expected Type | Description |
x1 | An integer | The starting x coordinate. |
y1 | An integer | The starting y coordinate. |
x2 | An integer | The ending x coordinate. |
y2 | An integer | The ending y coordinate. |
a | An integer | The color's alpha value, from 0 (transparent) to 255 (opaque). |
r | An integer | The color's red pigment value, from 0 to 255. |
g | An integer | The color's green pigment value, from 0 to 255. |
b | An integer | The color's blue pigment value, from 0 to 255. |
Returns | ||
Returns nothing. |
Example
video.renderLine(0, 0, 10, 0, 255, 255, 255, 255)