comp • gb.gui.base • paint • drawrect

Paint.DrawRect (gb.gui.base)

Static Sub DrawRect ( X As Float, Y As Float, Width As Float, Height As Float, Color As Integer [ , Size As Float ] )

Draw a rectangle frame

  • X, Y, Width and Height define the position and size of the rectangle.

  • Color is the color used for painting the rectangle.

  • Size is the width of the rectangle border. It's 1 pixel by default. If negative, then the frame will be painted outside of the rectangle, otherwise inside.