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
cairo-1.17.13 lib/cairo/context/color.rb
cairo-1.17.12 lib/cairo/context/color.rb
cairo-1.17.11 lib/cairo/context/color.rb
cairo-1.17.10 lib/cairo/context/color.rb
cairo-1.17.9 lib/cairo/context/color.rb
cairo-1.17.8 lib/cairo/context/color.rb
cairo-1.17.7 lib/cairo/context/color.rb
cairo-1.17.6 lib/cairo/context/color.rb
cairo-1.17.5 lib/cairo/context/color.rb
cairo-1.17.4 lib/cairo/context/color.rb
cairo-1.16.6 lib/cairo/context/color.rb
cairo-1.16.5 lib/cairo/context/color.rb
cairo-1.16.4 lib/cairo/context/color.rb
cairo-1.16.3 lib/cairo/context/color.rb
cairo-1.16.2 lib/cairo/context/color.rb
cairo-1.16.1-x86-mingw32 lib/cairo/context/color.rb
cairo-1.16.1-x64-mingw32 lib/cairo/context/color.rb
cairo-1.16.1 lib/cairo/context/color.rb
cairo-1.16.0-x86-mingw32 lib/cairo/context/color.rb
cairo-1.16.0-x64-mingw32 lib/cairo/context/color.rb