Justin Bl wrote:
> For any imagemagick users out there, I'm having trouble getting
> Rmagick's hsl functions to work for me.
> 
> I use the following code:
> @canvas.background_color = Magick::Pixel.from_hsla(80, 100, 50, 1)
> 
> To try and set a HSLA background color for my image, but it keeps coming
> out white.
> Any idea why? The image is made okay, no errors are thrown in the ruby
> code.
> 
> Ruby version: 1.8.6
> ImageMagick Version: 6.5.3 Q8
> Rmagick Version: rmagick-2.10.0-x86-mswin32
> OS: Windows Vista

I don't think the problem is with the from_hsla method. This produces a 
nice sorta lime-green 200x200 image for me. Why don't you post a 
complete script that reproduces the problem?

irb(main):001:0> p = Magick::Pixel.from_hsla(80, 100, 50, 1)
=> red=170, green=255, blue=0, opacity=0
irb(main):002:0> img = Magick::Image.new(200,200) { 
self.background_color = p}
=>   200x200 DirectClass 8-bit
irb(main):003:0> img.display
=>   200x200 DirectClass 8-bit


-- 
MagickWand for Ruby - http://magickwand.rubyforge.org/