1
1
Fork 0
mirror of https://github.com/boxgaming/qbjs.git synced 2024-05-12 08:00:12 +00:00
1 G2D.InvertRect
boxgaming edited this page 2024-01-20 05:56:04 -06:00

Inverts the colors of a specified rectangle.
Calling the method again in the same position will restore the image to its original color.

Syntax

G2D.InvertRect x&, y&, width&, height&[, fill~&]

Parameters

  • The rectangle will be drawn with its top left corner at the position specified by the x& and y& parameters.
  • The size of the rectangle is defined by the width& and height& parameters.
  • The optional fill& parameter indicates whether a filled rectangle should be drawn. If not specified only the outline of the rectangle will be displayed.