hotcocoa icon indicating copy to clipboard operation
hotcocoa copied to clipboard

KCGColorSpaceGenericRGB

Open austintaylor opened this issue 14 years ago • 1 comments

I get the following message whenever I try to instantiate a Gradient.

/Library/Frameworks/MacRuby.framework/Versions/0.6/usr/lib/ruby/Gems/1.9.0/gems/hotcocoa-0.5.1/lib/hotcocoa/graphics/gradient.rb:25:in `initialize:': uninitialized constant HotCocoa::Graphics::Gradient::KCGColorSpaceGenericRGB (NameError)

austintaylor avatar Jun 23 '10 23:06 austintaylor

I changed line 25 of lib/hotcocoa/graphics/gradient.rb from: @colorspace = CGColorSpaceCreateWithName(KCGColorSpaceGenericRGB) to: @colorspace = CGColorSpaceCreateDeviceRGB() and it works now. I'm running 10.6.3

austintaylor avatar Jun 23 '10 23:06 austintaylor