Module Mlpost.Shapes
Rectangles, Circles, etc.
val round_rect : Num.t -> Num.t -> Num.t -> Num.t -> Path.t
round_rect w h rx ry
returns a rectangle of widthw
and heighth
with rounded corners. The rounded corners are arcs of an ellipse of radiirx
andry
.rx
(resp.ry
) should be positive and smaller thanw/2
(resp.h/2
).
val ellipse : Num.t -> Num.t -> Path.t
ellipse rx ry
returns an ellipse of great axisrx
and small axisry
. The ellipse is centered on the origin and aligned with the x axis.- parameter fill
the color with which to fill the ellipse ; if no color is provided, it is not filled.
- parameter stroke
the color with which the ellipse's outline shall be drawn ; default is black.
- parameter thickness
the thickness of the pen used to draw the outline ; 1. is default
val patatoid2 : Num.t -> Num.t -> Path.t
See
Box.patatoid2
.