summaryrefslogtreecommitdiff
path: root/src/geom/paint.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2022-11-03 11:44:53 +0100
committerLaurenz <laurmaedje@gmail.com>2022-11-03 13:35:39 +0100
commit37a7afddfaffd44cb9bc013c9506599267e08983 (patch)
tree20e7d62d3c5418baff01a21d0406b91bf3096214 /src/geom/paint.rs
parent56342bd972a13ffe21beaf2b87ab7eb1597704b4 (diff)
Split crates
Diffstat (limited to 'src/geom/paint.rs')
-rw-r--r--src/geom/paint.rs18
1 files changed, 0 insertions, 18 deletions
diff --git a/src/geom/paint.rs b/src/geom/paint.rs
index c5bbefa4..b07f09af 100644
--- a/src/geom/paint.rs
+++ b/src/geom/paint.rs
@@ -388,24 +388,6 @@ impl From<CmykColor> for Color {
}
}
-/// A stroke of a geometric shape.
-#[derive(Debug, Copy, Clone, Eq, PartialEq, Hash)]
-pub struct Stroke {
- /// The stroke's paint.
- pub paint: Paint,
- /// The stroke's thickness.
- pub thickness: Abs,
-}
-
-impl Default for Stroke {
- fn default() -> Self {
- Self {
- paint: Paint::Solid(Color::BLACK.into()),
- thickness: Abs::pt(1.0),
- }
- }
-}
-
/// Convert to the closest u8.
fn round_u8(value: f64) -> u8 {
value.round() as u8