-
Notifications
You must be signed in to change notification settings - Fork 10
ClassRect
Jim Pivarski edited this page Mar 15, 2015
·
1 revision
- summary Draw a rectangle connecting two points
- labels Reference,Version1
_(This page applies only to the 1.x branch of SVGFig.)_
Rect draws a rectangle connecting two points, but the sides are mutable by coordinate transformations. If the coordinates curve, the sides will curve.
- Rect(x1, y1, x2, y2, attribute=value)*
x1, y1 | _*required*_ | the starting point | ||||
x2, y2 | _*required*_ | the ending point | ||||
attribute=value pairs | _keyword list_ | SVG attributes |
Rect has an *SVG* method, as described in [GeneralPrimitive General features for all primitives].
Rect has a *Path* method, as described in [GeneralPrimitive General features for all primitives].
Rect has the same defaults as [ClassCurve Curve]. Defaults are described in [GeneralPrimitive General features for all primitives].
random_sampling | True | if False, bisect with a point exactly halfway between pairs of points; if True, randomly choose a point between 30% and 70% | ||||
recursion_limit | 15 | number of subdivisions before giving up; if 15, sampling algorithm can visit _at most_ 2^15^ points | ||||
linearity_limit | 0.05 | maximum deviation (in SVG units) from a straight line | ||||
discontinuity_limit | 5 | minimum deviation (in SVG units) between points that is considered continuous |