Sfairadora

  • Reference Guide

draw_rectangle

var_bmp <- draw_rectangle(x, y, dx, dy, fill)
var_bmp <- draw_rectangle(x, y, dx, dy, fill, outline)
The var_bmp parameter is an l-value referring to a variable of the type Bitmap. The function draws a rectangle to the bitmap.

Parameters

var_bmp
An l-value of the type Bitmap to which the function draws.
x, y
The coordinates of the left top corner of the rectangle.
dx
The rectangle width. Positive values extend the rectangle to the right, negative to the left.
dy
The rectangle height. Positive values extend the rectangle down, negative up.
fill
The fill of the rectangle.
outline
The line style of the rectangle.

Return Value

The return value is an l-value referring to the modified bitmap.