[cairo-commit] rcairo/src/lib/cairo color.rb,1.8,1.9
Kouhei Sutou
commit at pdx.freedesktop.org
Sun Jan 10 18:08:05 PST 2010
Committed by: kou
Update of /cvs/cairo/rcairo/src/lib/cairo
In directory kemper:/tmp/cvs-serv21907/src/lib/cairo
Modified Files:
color.rb
Log Message:
* src/lib/cairo/color.rb(Color::RGB#to_hsv): fix RGB -> HSV conversion.
Patch by Yuta Taniguchi. Thanks!!!
* README: add Yuta Taniguchi to thanks list. Thanks!!!
* test/test_color.rb: add.
Index: color.rb
===================================================================
RCS file: /cvs/cairo/rcairo/src/lib/cairo/color.rb,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -d -r1.8 -r1.9
--- color.rb 11 Jan 2010 02:05:12 -0000 1.8
+++ color.rb 11 Jan 2010 02:08:02 -0000 1.9
@@ -135,10 +135,10 @@
when @red
numerator = @green - @blue
angle = 0
- when @blue
+ when @green
numerator = @blue - @red
angle = 120
- when @green
+ when @blue
numerator = @red - @green
angle = 240
end
More information about the cairo-commit
mailing list