Sha256: 49a9f3af036fc42c89b01c267226448fc5edeb52ea3507e061b6bafcd26d6e2c

Contents?: true

Size: 195 Bytes

Versions: 136

Compression:

Stored size: 195 Bytes

Contents

require 'cairo/color'

module Cairo
  class Context
    module Color
      def set_source_color(color)
        set_source_rgba(*Cairo::Color.parse(color).to_rgb.to_a)
      end
    end
  end
end

Version data entries

136 entries across 128 versions & 2 rubygems

Version Path
savant-echo-0.1.9 bin/packaging/vendor/ruby/2.2.0/gems/cairo-1.15.2/lib/cairo/context/color.rb
savant-echo-0.1.9 bin/alexa-0.1.2-osx/lib/vendor/ruby/2.2.0/gems/cairo-1.15.2/lib/cairo/context/color.rb
savant-echo-0.1.6 bin/packaging/vendor/ruby/2.2.0/gems/cairo-1.15.2/lib/cairo/context/color.rb
savant-echo-0.1.6 bin/alexa-0.1.2-osx/lib/vendor/ruby/2.2.0/gems/cairo-1.15.2/lib/cairo/context/color.rb
savant-echo-0.1.5 bin/packaging/vendor/ruby/2.2.0/gems/cairo-1.15.2/lib/cairo/context/color.rb
savant-echo-0.1.5 bin/alexa-0.1.2-osx/lib/vendor/ruby/2.2.0/gems/cairo-1.15.2/lib/cairo/context/color.rb
savant-echo-0.1.4 bin/packaging/vendor/ruby/2.2.0/gems/cairo-1.15.2/lib/cairo/context/color.rb
savant-echo-0.1.4 bin/alexa-0.1.2-osx/lib/vendor/ruby/2.2.0/gems/cairo-1.15.2/lib/cairo/context/color.rb
savant-echo-0.1.3 bin/packaging/vendor/ruby/2.2.0/gems/cairo-1.15.2/lib/cairo/context/color.rb
savant-echo-0.1.3 bin/alexa-0.1.2-osx/lib/vendor/ruby/2.2.0/gems/cairo-1.15.2/lib/cairo/context/color.rb
cairo-1.15.3-x86-mingw32 lib/cairo/context/color.rb
cairo-1.15.3-x64-mingw32 lib/cairo/context/color.rb
cairo-1.15.3 lib/cairo/context/color.rb
cairo-1.14.6 lib/cairo/context/color.rb
cairo-1.14.6-x86-mingw32 lib/cairo/context/color.rb
cairo-1.14.6-x64-mingw32 lib/cairo/context/color.rb
cairo-1.15.2-x64-mingw32 lib/cairo/context/color.rb
cairo-1.15.2-x86-mingw32 lib/cairo/context/color.rb
cairo-1.15.2 lib/cairo/context/color.rb
cairo-1.14.3-x86-mingw32 lib/cairo/context/color.rb