2014-12-08 12:43:20 +13:00
< html >
< head >
< title > Blitz3D Docs< / title >
< link rel = stylesheet href = ../css/commands.css type = text/css >
< / head >
< body >
< h1 > Rect x, y, width, height, solid< / h1 >
< h1 > Parameters< / h1 >
< table >
< tr >
< td >
x = x coordinate to begin drawing the rectangle
< br / >
y = y coordinate to begin drawing the rectangle
< br / >
width = how wide to make the rectangle in pixels
< br / >
height = how tall to make the rectangle in pixels
< br / >
solid = 0 or False for unfilled and 1 or True for filled
< / td >
< / tr >
< / table >
< h1 > Description< / h1 >
< table >
< tr >
< td >
This command will draw a rectangle in the current drawing Color starting at the location specified. The last parameter determines if the rectangle is filled or just a 'box'.
< / td >
< / tr >
< / table >
< h1 > < a href = ../2d_examples/Rect.bb > Example< / a > < / h1 >
< table >
< tr >
< td >
; Flip/Backbuffer()/Rect Example
< br / >
< br / >
; Set Graphics Mode
< br / >
Graphics 640,480
< br / >
< br / >
; Go double buffering
< br / >
SetBuffer BackBuffer()
< br / >
< br / >
; Setup initial locations for the box
< br / >
box_x = -20 ; negative so it will start OFF screen
2014-02-26 16:08:39 +13:00
< br / >
2014-12-08 12:43:20 +13:00
box_y = 100
2014-02-26 16:08:39 +13:00
< br / >
2014-12-08 12:43:20 +13:00
2014-02-26 16:08:39 +13:00
< br / >