Paint.Rectangle (gb.web.gui)

Static Sub Rectangle ( X As Float, Y As Float, Width As Float, Height As Float )

Adds a closed sub-path rectangle to the current path.

  • X : the X coordinate of the top left corner of the rectangle.

  • Y : the Y coordinate to the top left corner of the rectangle.

  • Width : the width of the rectangle.

  • Height : the height of the rectangle.

This function is logically equivalent to:

Paint.MoveTo(X, Y)
Paint.LineTo(X + Width, Y)
Paint.LineTo(X + Width, Y + Height)
Paint.LineTo(X, Y + Height)
Paint.ClosePath()