Serabe / RMagick4J

RMagick for JRuby.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ArgumentError (invalid color name: #ffffff)

fadyZohdy opened this issue · comments

def self.from_color(color_name)
result = Magick4J::ColorDatabase.lookUp(color_name)
	raise ArgumentError, "invalid color name: #{color_name}" if result.nil?
    result
end

why isn't there support for hex color names ?

#ffffff is not a color name but the color itself. You can get the same result constructing a pixel packet directly with 255, 255, 255.

Thank you!

thank u. didn't think u would answer this fast 😀