Formatting

This commit is contained in:
Brendan Zabarauskas 2012-12-04 11:41:23 +10:00
parent 60f17d846e
commit 492fdc3b2b

View file

@ -112,7 +112,7 @@ pub pure fn to_rgb<T:Copy Float Sign>(color: &HSV<T>) -> RGB<T> {
else if h_ < Number::from(4f) { RGB::new( _0, x, chr) } else if h_ < Number::from(4f) { RGB::new( _0, x, chr) }
else if h_ < Number::from(5f) { RGB::new( x, _0, chr) } else if h_ < Number::from(5f) { RGB::new( x, _0, chr) }
else if h_ < Number::from(6f) { RGB::new(chr, _0, x) } else if h_ < Number::from(6f) { RGB::new(chr, _0, x) }
else { RGB::new( _0, _0, _0) }; else { RGB::new( _0, _0, _0) };
// match the value by adding the same amount to each component // match the value by adding the same amount to each component
let mn = color.v - chr; let mn = color.v - chr;