Draw.Rect (gb.sdl2)

Static Sub Rect ( X As Integer, Y As Integer, Width As Integer, Height As Integer [ , Color As Integer ] )

Draw a rectangle on the current drawing device with the specified color.

  • X, Y : the position of the top-left corner of the rectangle.

  • Width : the rectangle width.

  • Height : the rectangle height.

  • Color : the color of the rectangle. If it is not specified, the Rect color is used.