Kevin Lee 11 months ago
parent
commit
a9bc46f6e2
2 changed files with 4 additions and 4 deletions
  1. 1 1
      src/config/pen.rs
  2. 3 3
      src/ezcad/types.rs

+ 1 - 1
src/config/pen.rs

@@ -122,7 +122,7 @@ impl ClonePen {
             self.from,
             self.to,
             match self.inclusive {
-                Some(true) => format!("(inclusive)"),
+                Some(true) => format!(" (inclusive)"),
                 _ => format!(""),
             }
         );

+ 3 - 3
src/ezcad/types.rs

@@ -118,9 +118,9 @@ impl From<(u8, u8, u8)> for Rgba {
 impl Rgba {
     pub fn random() -> Self {
         Self {
-            red: thread_rng().gen_range(0..=255),
-            green: thread_rng().gen_range(0..=255),
-            blue: thread_rng().gen_range(0..=255),
+            red: thread_rng().gen(),
+            green: thread_rng().gen(),
+            blue: thread_rng().gen(),
             alpha: 0,
         }
     }