How to use the vpype.generator function in vpype

To help you get started, we’ve selected a few vpype examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github abey79 / hatched / hatched / vpype_plugin.py View on Github external
@generator
def hatched_gen(
    filename: str,
    levels,
    scale: float,
    interpolation: str,
    blur: int,
    pitch: int,
    invert: bool,
    circular: bool,
    show_plot: bool,
):
    """
    Generate hatched pattern from an image.

    The hatches generated are in the coordinate of the input image. For example, a 100x100px
    image with generate hatches whose bounding box coordinates are (0, 0, 100, 100). The

vpype

The Swiss Army knife of vector graphics for pen plotters

MIT
Latest version published 12 months ago

Package Health Score

66 / 100
Full package analysis