From OxeyeWiki

Revision as of 12:33, 5 March 2009 by Jeb (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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 nothing.

Daisymoon Video Lib


   video.renderLine(0, 0, 10, 0, 255, 255, 255, 255)
Personal tools