[cairo-commit] rcairo/src/lib/cairo/context color.rb,NONE,1.1
Kouhei Sutou
commit at pdx.freedesktop.org
Sun Apr 15 20:12:58 PDT 2007
- Previous message: [cairo-commit] rcairo/src rb_cairo_context.c, 1.5,
1.6 rb_cairo_pattern.c, 1.1, 1.2
- Next message: [cairo-commit] rcairo/src/lib/cairo color.rb, NONE, 1.1 context.rb,
1.2, 1.3 pattern.rb, NONE, 1.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Committed by: kou
Update of /cvs/cairo/rcairo/src/lib/cairo/context
In directory kemper:/tmp/cvs-serv27775/src/lib/cairo/context
Added Files:
color.rb
Log Message:
* src/lib/cairo/color.rb: added high-level color class including
CMYK support.
* src/rb_cairo_pattern.c, src/lib/cairo.rb,
src/lib/cairo/context.rb, src/lib/cairo/pattern.rb: supported
Cairo::Color.
--- NEW FILE: color.rb ---
require 'cairo/color'
module Cairo
class Context
module Color
def set_source_color(color)
set_source_rgba(*color.to_rgb.to_a)
end
end
end
end
- Previous message: [cairo-commit] rcairo/src rb_cairo_context.c, 1.5,
1.6 rb_cairo_pattern.c, 1.1, 1.2
- Next message: [cairo-commit] rcairo/src/lib/cairo color.rb, NONE, 1.1 context.rb,
1.2, 1.3 pattern.rb, NONE, 1.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the cairo-commit
mailing list