DrawRectangle (Harvest)

From OxeyeWiki

Revision as of 18:45, 13 March 2009 by Feone (Talk | contribs)
Jump to: navigation, search

drawRectangle(x, y, width, height[, r, g, b[, a]])

Draws a filled rectangle at (x, y) with the specified size.

Parameter Expected Type Description
x An integer The starting x coordinate.
y An integer The starting y coordinate.
width An integer The width of the rectangle.
height An integer The height of the rectangle.
a An integer The rectangle color's alpha component, 0 is min and 255 is max.
r An integer The rectangle color's red component, 0 is min and 255 is max.
g An integer The rectangle color's green component, 0 is min and 255 is max.
b An integer The rectangle color's blue component, 0 is min and 255 is max.
Returns

Returns nothing.

Harvest Library

Example

   harvest.drawRectangle(100, 100, 200, 115, 0, 0, 0, 128)
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox