ScreenPainter.drawRectangle

Draws a rectangle using the current pen/outline color for the border and brush/fill color for the insides The outer lines, inclusive of x = 0, y = 0, x = width - 1, and y = height - 1 are drawn with the outlineColor The rest of the pixels are drawn with the fillColor. If fillColor is transparent, those pixels are not drawn.

  1. void drawRectangle(Point upperLeft, int width, int height)
    struct ScreenPainter
    @scriptable
    void
    drawRectangle
  2. void drawRectangle(Point upperLeft, Size size)
  3. void drawRectangle(Point upperLeft, Point lowerRightInclusive)
  4. void drawRectangle(Rectangle rect)

Meta