# PEmbroider Examples This is an index of some, but not all, of the goodies in our Examples directory. --- ## Hello_PEmbroider A simple "Hello World!" program that renders a smily face. [![](Hello_PEmbroider/Hello_PEmbroider_photo.png)](Hello_PEmbroider/) ## PEmbroider_shapes Basic filled shapes: circle, square, rectangle, rounded rectangle, triangle, quad, ellipse, arc pie, arc chord. Shapes created with user-defined vertices, including: non-convex shapes; shapes with compound contours (i.e. holes); shapes combinining linear and curvilinear segments. All shapes are filled and unstroked. [![](PEmbroider_shapes/PEmbroider_shapes_photo.png)](PEmbroider_shapes/) ## PEmbroider_strokes_1 Shapes with and without stroke and/or fills. Varying thicknesses of shapes' strokes. Varying the stroke spacing (spacing of stitch runs within strokes). Strokes with tangent versus parallel stitches. [![](PEmbroider_strokes_1/documentation/PEmbroider_strokes_1_photo.png)](PEmbroider_strokes_1/) ## PEmbroider_strokes_2 Demonstration of how the *orientation of stitches*, relative to design strokes, can be precisely controlled. [![](PEmbroider_strokes_2/documentation/PEmbroider_strokes_2_photo.png)](PEmbroider_strokes_2/)
[![](PEmbroider_strokes_2/documentation/PEmbroider_strokes_2.png)](PEmbroider_strokes_2/) ## PEmbroider_stroke_outlines_1 Interactively choose how much your strokes overlap the interior of their shapes. [![](PEmbroider_stroke_outlines_1/documentation/PEmbroider_stroke_outlines_1_photo.png)](PEmbroider_stroke_outlines_1/) ## PEmbroider_stroke_outlines_2 Make a single outline around a group of shapes. [![](PEmbroider_stroke_outlines_2/documentation/PEmbroider_stroke_outlines_2_photo.png)](PEmbroider_stroke_outlines_2/) ## PEmbroider_lines_1 Lines with varying stroke weight. Lines with varying stroke spacing. Lines with varying stitch lengths. Lines with tangent versus parallel stitches. [![](PEmbroider_lines_1/documentation/PEmbroider_lines_1_photo.png)](PEmbroider_lines_1/) ## PEmbroider_lines_2 Simple curves and line segments. [![](PEmbroider_lines_2/documentation/PEmbroider_lines_2_photo.png)](PEmbroider_lines_2/) ## PEmbroider_ruler Test your units. [![](PEmbroider_ruler/PEmbroider_ruler_photo.png)](PEmbroider_ruler/) ## PEmbroider_shape_hatching_1 Different styles of hatching: parallel, concentric, and spiral. Varying hatch spacing. [![](PEmbroider_shape_hatching_1/PEmbroider_shape_hatching_1_photo.png)](PEmbroider_shape_hatching_1/) ## PEmbroider_shape_hatching_2 Exotic, experimental, and/or advanced hatching methods: Perlin noise field; cross-hatching; user-defined vector fields. [![](PEmbroider_shape_hatching_2/PEmbroider_shape_hatching_2_photo.png)](PEmbroider_shape_hatching_2/) ## PEmbroider_shape_hatching_3 Varying stitch offsets in parallel hatching for filled shapes. Varying the amount of noise added to stitch lengths in parallel hatching. [![](PEmbroider_shape_hatching_3/PEmbroider_shape_hatching_3_photo.png)](PEmbroider_shape_hatching_3/) ## PEmbroider_shape_hatching_experimental Some hatching modes that are still in active development: "spine" hatching mode, and SPIRAL mode. [![](PEmbroider_shape_hatching_experimental/documentation/PEmbroider_shape_hatching_experimental_photo.png)](PEmbroider_shape_hatching_experimental/) ## PEmbroider_hatchAngle_auto Sketch which demonstrates a feature that automatically sets the hatch angle of a shape, depending on the shape's overall orientation. [![](PEmbroider_hatchAngle_auto/documentation/PEmbroider_hatchAngle_auto.gif)](PEmbroider_hatchAngle_auto/) ## PEmbroider_shape_culling Methods for overlapping shapes, including the ability to cull overlapped stitches (if desired). [![](PEmbroider_shape_culling/PEmbroider_shape_culling_photo.png)](PEmbroider_shape_culling/) ## PEmbroider_shape_merging Using raster rendering to create complex compound shapes. [![](PEmbroider_shape_merging/PEmbroider_shape_merging.png)](PEmbroider_shape_merging/) ## PEmbroider_bitmap_image_1 Embroidering shapes in bitmap images. Shapes must be white blobs on a black background. The hatchSpine method (stitches perpendicular to contour, in the upper right) is still experimental. [![](PEmbroider_bitmap_image_1/PEmbroider_bitmap_image_1.png)](PEmbroider_bitmap_image_1/) ## PEmbroider_bitmap_image_2 The Processing logo. Combining stroke and fill in a filled shape taken from a bitmap image. Stroke-over-fill or fill-over-stroke. [![](PEmbroider_bitmap_image_2/PEmbroider_bitmap_image_2_photo.png)](PEmbroider_bitmap_image_2/) ## PEmbroider_png_image_multicolor Using multiple PNG images to create a multicolor embroidery design. ![](PEmbroider_png_image_multicolor/documentation/PEmbroider_png_image_multicolor_photo.png) ## PEmbroider_bitmap_animation Frames of the classic Muybridge horse, rendered as embroidered graphics. [![](PEmbroider_bitmap_animation/PEmbroider_bitmap_animation.png)](PEmbroider_bitmap_animation/) [![](PEmbroider_bitmap_animation/PEmbroider_bitmap_animation_photo.png)](PEmbroider_bitmap_animation/) [![](PEmbroider_bitmap_animation/gifs/muybridge_composite.gif)](PEmbroider_bitmap_animation/) ## PEmbroider_axidraw_plotter_svg This example is intended for people who would like to use PEmbroider's SVG-generation features with pen plotters, such as the EMSL AxiDraw. The example includes certain plotter-specific optimizations, such as the elimination of jump-stitches (lines connecting shapes). [![](PEmbroider_axidraw_plotter_svg/PEmbroider_axidraw_plotter_svg_output.png)](PEmbroider_axidraw_plotter_svg/) ## PEmbroider_svg_image Embroidering shapes loaded from simple SVG files. [![](PEmbroider_svg_image/PEmbroider_svg_image_photo.png)](PEmbroider_svg_image/) ## PEmbroider_text_1 High-quality stroked and/or filled letterforms, from TrueType fonts. [![](PEmbroider_text_1/PEmbroider_text_1_photo.png)](PEmbroider_text_1/) ## PEmbroider_text_2 Options for high-quality type alignment (baseline, ascent, descent; left, center, right). [![](PEmbroider_text_2/PEmbroider_text_2.png)](PEmbroider_text_2/) [![](PEmbroider_text_2/PEmbroider_text_2_photo.png)](PEmbroider_text_2/) ## PEmbroider_text_3 Built-in implmentations of [Hershey fonts](https://en.wikipedia.org/wiki/Hershey_fonts) (single-stroke vector fonts) for quick embroidered typography without font rasterization. [![](PEmbroider_text_3/PEmbroider_text_3_photo.png)](PEmbroider_text_3/) ## PEmbroider_optimize_per_char Demonstration of an optional feature which optimizes the embroidery of filled text on a per-character basis. [![](PEmbroider_optimize_per_char/documentation/PEmbroider_optimize_per_char.png)](PEmbroider_optimize_per_char/) ## PEmbroider_interactive_demo_1 Demonstration of how an embroidery file can be generated and exported *during live interaction*. [![](PEmbroider_interactive_demo_1/documentation/PEmbroider_interactive_demo_1_1.png)](PEmbroider_interactive_demo_1/) ## PEmbroider_interactive_demo_2 Multi-stroke doodle recorder. [![](PEmbroider_interactive_demo_2/documentation/PEmbroider_interactive_demo_2a_photo.jpg)](PEmbroider_interactive_demo_2/) [![](PEmbroider_interactive_demo_2/documentation/interactive_demo_2e_photo.png)](PEmbroider_interactive_demo_2/) ## PEmbroider_trace_skeleton Trace thin lines in a scanned drawing to produce a single-stroke vectorized version suitable for embroidery. [![Challenging polygons](PEmbroider_trace_skeleton/documentation/PEmbroider_trace_skeleton.png)](PEmbroider_trace_skeleton/) ## Pembroider_polygon_gauntlet An obstacle course of challenging polygons to test the PEmbroider hatching algorithms. [![](Pembroider_polygon_gauntlet/documentation/Pembroider_polygon_gauntlet.png)](Pembroider_polygon_gauntlet/) ## And Last But Not Least, The Editor An experimental GUI editor that requires no coding, great for kids. [![](PEmbroider_Editor/PEmbroider_Editor.png)](PEmbroider_Editor/)