|Portability||semi-portable (uses MPTC and type families)|
Support for the graphical abilities of
this is not the strongest are of
dzen, so there isn't a lot
of functionality here, but there are "bindings" for every
function they provide.
You can draw:
dzendocumentation about formats and paths).
Although it may seem that you can draw anything with the rectangle
primitive (i.e. in the worst case just use 1x1 rectangles to simulate
dzen does not allow you to control the
y part of the
shapes, only the
x part (using
absPos): they are always
These data types are used to hint the purpose of each argument, making the type signatures more clear.
rect w h draws and fills a rectangle of width
h. The rectangle is vertically centered
(that is, if
h == 1 then it is a centered line,
rect, but only draws and does not fills (i.e.
draws an outline).
circ r draws and fils a circle of radius
pos p moves the position of the next input
to the right. Note that
p may be negative, effectively
moving to the right.
absPos p moves the position of the next input to be
p pixels to the right of the initial position.
This should be used with care.