Crates.io | aoer-plotty-rs |
lib.rs | aoer-plotty-rs |
version | 0.2.2 |
source | src |
created_at | 2022-05-29 20:37:29.872921 |
updated_at | 2022-09-26 05:13:41.970292 |
description | A variety of utilities for creating pen-plotter based artwork. |
homepage | https://github.com/armyofevilrobots/aoer-plotty-rs |
repository | https://github.com/armyofevilrobots/aoer-plotty-rs |
max_upload_size | |
id | 596657 |
size | 2,228,223 |
This library contains a variety of tools used to make pen-plotter based art.
While it focuses on a combination of nannou and geo/geo_types for now, it
will likely expand into other areas as I find the need for my own creations.
Based (extremely roughly) on shapely
for Python for the geographic
functions, with a splash of VSK
.
CAUTION: This isn't even Alpha quality yet, and I am poking away at it on my days off. May spontaneously explode, might take your plotter with it.
elements::CarlsonSmithTruchet
], which provides tileable
and scalable truchets which make for some very interesting patterns.
Think of them as the "goto 10" tiles on steroids.
Also added a to_geos trait which makes it easy to convert
back and forth from geo_types without fancy and unpredictable
From/Into magic.
Also added a [geo_types::shapes
] module which provides some
additional primitives (arc, polygons, circles).
Added the [geo_types::boolean::BooleanOp
] trait to allow for
boolean operations directly against geo_types.context::Context
] so that you can merge all your
pen strokes that live on the same layer. Good for merging
overlapping polygons. Layer is defined as "exact same color, pen,
and fill configuration"geo_types::Geometry
] variant and only areas under the mask
will actually render. Also changed some performance and accuracy
related optimizations so that clipped items look clean.
Also added the final Generative Artistry examples. I'll miss
implementing those :(geo_types::buffer::Buffer
] trait to offset polygonsgeo_types::clip::LineClip
] trait to Clip geometry with
OTHER geometry.geo_types::svg::Arrangement
] trait has been extended to
better support arbitrary transformations.geo_types::svg::Arrangement
] trait has also added a margin
option to fit geometry on a page with predefined margins.geo_types::hatch::OutlineStroke
] is a utility Trait which
takes a LineString/MultiLineString and applies a stroke, returning
a MultiLineString containing lines which outline the stroked linegeo_types::hatch::OutlineFillStroke
] is the same as [geo_types::hatch::OutlineStroke
]
except it also fills the stroke with the given HatchPattern. Great for turning
drawings made of thick lines into nicely filled polygons.Generative Artistry tutorials
geo_types::hatch::Hatch
]ing submodule.License: MIT