# File lib/png.rb, line 218 def self.from str, name = nil str = "%08x" % str if Integer === str colors = str.scan(/[\da-f][\da-f]/i).map { |n| n.hex } colors << name self.new(*colors) end