Skip to content

Commit

Permalink
Note trait should be removed (minor)
Browse files Browse the repository at this point in the history
  • Loading branch information
aschampion committed Dec 4, 2019
1 parent 3fa6d77 commit 7697e2b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/color.rs
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,8 @@ impl<A: Copy> FromColor<A> for A {
}

/// Copy-based conversions to target pixel types using `FromColor`.
// FIXME: this trait should be removed and replaced with real color space models
// rather than assuming sRGB.
pub(crate) trait IntoColor<Other> {
/// Constructs a pixel of the target type and converts this pixel into it.
fn into_color(&self) -> Other;
Expand Down

0 comments on commit 7697e2b

Please sign in to comment.