module Command:sig..end
Basic drawing commands
General Commands to build figures
type t
The abstract commands type
val draw : ?brush:Brush.t ->
?color:Color.t ->
?pen:Pen.t ->
?dashed:Dash.t -> Path.t -> tDraw a path
color : the color of the path; default is blackpen : the pen used to draw the path; default is
Brush.Pen.defaultdashed : if given, the path is drawn using that dash_style.val fill : ?color:Color.t -> Path.t -> tFill a contour given by a closed path
color : the color used to fill the area; default is blackval draw_pic : Picture.t -> tdraws a picture
val externalimage : string ->
[ `Exact of Num.t * Num.t
| `Height of Num.t
| `Inside of Num.t * Num.t
| `None
| `Width of Num.t ] -> tinsert an image given its filename - *EXPERIMENTAL*
val nop : tA command that has no effect
val append : t -> t -> tAppend two commands to form a compound command
val (++) : t -> t -> tAbbreviation for append
val seq : t list -> tGroup a list of commands to a single command
val iter : int -> int -> (int -> t) -> titer m n f builds a command that corresponds to the sequence
of commands f m; f (m+1); ... ; f(n)
val iterl : ('a -> t) -> 'a list -> titerl f l builds a command that corresponds to the sequence
of commands f x1; f x2; ... ; f xn for l = [x1;x2;...;xn]
typehposition =[ `Center | `East | `Left | `Right | `West ]
typevposition =[ `Bot | `Bottom | `Center | `North | `South | `Top ]
typeposition =[ `Bot
| `Bottom
| `Bottomleft
| `Bottomright
| `Center
| `East
| `Left
| `Lowerleft
| `Lowerright
| `Lowleft
| `Lowright
| `North
| `Northeast
| `Northwest
| `Right
| `South
| `Southeast
| `Southwest
| `Top
| `Topleft
| `Topright
| `Upleft
| `Upperleft
| `Upperright
| `Upright
| `West ]
Positions - they are used at many places in Mlpost to indicate a direction or position.
val label : ?pos:position ->
Picture.t -> Point.t -> tlabel ~pos:`West pic p puts picture pic at the left of the
point p
val dotlabel : ?pos:position ->
Picture.t -> Point.t -> tWorks like label, but puts a dot at point p as well