Changelog
Source:NEWS.md
dee 0.1.1
Initial features
-
dee()creates “dee” class objects.- Can be plotted with
plot.dee()if suggested packages omsvg and nanosvgr are installed. - Can be converted to an omsvg “svg” class object with
as_omsvg()if suggested package omsvg is installed.
- Can be plotted with
dee_options()returns a list of (current or default) dee package option values.-
Absolute coordinate svg d path command helpers:
-
Relative coordinate svg d path command helpers:
-
aa(),az()are the elliptical arc curve commands. -
cc(),cz(),ss(),sz()are the cubic Bézier curve commands. -
ll(),lz(),hh(),hz(),vv(),vz()are the “lineto” commands. -
mm(),mz()are the “moveto” commands. -
qq(),qz(),tt(),tz()are the quadratic Bézier curve commands. -
zz()is the “closepath” command.
-
-
svg d path convenience wrappers:
d_aabb()is a wrapper aroundd_rect()to create an axis-aligned bounding box.d_arc1()d_arc2(),d_arc3(),d_arc4(),d_arc12(),d_arc23(),d_arc34(),d_arc41(),d_arc123(),d_arc234(),d_arc341(), andd_arc412()are wrappers to create elliptical arc paths.d_fslash()andd_bslash()are wrappers aroundMZ()to build forward/backward slash paths.-
d_ellipse()is a wrapper aroundM()andAZ()to build ellipse paths.-
d_circle()is a wrapper aroundd_ellipse()to build circle paths.
-
-
d_polygon()is a wrapper aroundMZ()to build polygon paths. If its argumentoffsetis nonzero will compute an offset region.-
d_isotoxal_2ngon()is a wrapper aroundd_polygon()to create isotoxal2n-gon polygons.d_star()is an alias. -
d_regular_ngon()is a wrapper aroundd_polygon()to create regular polygons.
-
d_rect()is a wrapper aroundd_polygon()to build rectangle paths.
-
Miscellaneous helper functions:
-
height_slash_left(),height_slash_right(),width_slash_left(), andwidth_slash_right()return the height or width of the left or right end of ad_fslash()ord_bslash()shape. -
x_ellipse_left(),x_ellipse_right(),y_ellipse_top(), andy_ellipse_bottom()return the leftmost/rightmost x-coordinate or topmost/bottommost y-coordinate on a (possibly rotated) ellipse at a given y or x value.
-