Mathematica > Visualization and Graphics > Symbolic Graphics Language > Graphics Objects >

Rectangle

Updated In 7 Graphic
Rectangle[{xmin, ymin}, {xmax, ymax}]
is a two-dimensional graphics primitive that represents a filled rectangle, oriented parallel to the axes.
Rectangle[{xmin, ymin}]
corresponds to a unit square with its bottom-left corner at {xmin, ymin}.
  • Rectangle[{xmin, ymin}, {xmax, ymax}] is equivalent to a suitable Polygon with four corners.
  • FaceForm and EdgeForm can be used to specify separately how the interiors and boundaries of rectangles should be drawn. The default is that no explicit edge is drawn.  »
  • The option RoundingRadius->r can be used to specify rounded corners rendered using circles of radius r.
  • Coordinates and lists of coordinates in rectangles can be Dynamic objects.
New in 1 | Last modified in 7
Ask a question about this page  |  Suggest an improvement  |  Leave a message for the team