/usr/lib/ruby/vendor_ruby/cairo/context/color.rb is in ruby-cairo 1.10.0-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 | 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
|