Skip to content

Commit

Permalink
Implement Debug for the colors
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris00 committed May 4, 2024
1 parent bab198b commit dea6af1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/colors/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ impl Color for f64 {
/// Remark: The colors green, cyan, magenta, and yellow do not
/// coincide with X11/CSS4 colors. Their particular shades were chosen
/// for better visibility of colored lines against typical backgrounds.
#[derive(Clone, Copy)]
#[derive(Clone, Copy, Debug)]
pub enum Base {
/// Blue
B,
Expand Down Expand Up @@ -102,7 +102,7 @@ impl Color for Base {
}

/// The [Tableau Palette](https://matplotlib.org/stable/gallery/color/named_colors.html#tableau-palette).
#[derive(Clone, Copy)]
#[derive(Clone, Copy, Debug)]
pub enum Tab {
Blue,
Orange,
Expand Down Expand Up @@ -134,7 +134,7 @@ impl Color for Tab {
}
}

#[derive(Clone, Copy)]
#[derive(Clone, Copy, Debug)]
pub enum CSS4 {
AcidGreen,
Adobe,
Expand Down Expand Up @@ -2049,7 +2049,7 @@ impl Color for CSS4 {
/// It is a collection of the 954 most common RGB monitor colors, as
/// defined by several hundred thousand participants in the xkcd color
/// name survey.
#[derive(Clone, Copy)]
#[derive(Clone, Copy, Debug)]
pub enum Xkcd {
AcidGreen,
Adobe,
Expand Down

0 comments on commit dea6af1

Please sign in to comment.