[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


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



More information about the cairo-commit mailing list