hotcocoa
hotcocoa copied to clipboard
KCGColorSpaceGenericRGB
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)
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