RenderLine

From OxeyeWiki

(Difference between revisions)
Jump to: navigation, search
Jeb (Talk | contribs)
(Created page with '{{VideoMethod | 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 t...')

Latest revision as of 12:33, 5 March 2009

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.

Daisymoon Video Lib

Example

   video.renderLine(0, 0, 10, 0, 255, 255, 255, 255)
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox