Method: Color#map

Defined in:
lib/color.rb

#map(&block) ⇒ Object

Apply the provided block to each color component in turn, returning a new color instance.



77
# File 'lib/color.rb', line 77

def map(&block) = self.class.from_internal(*to_internal.map(&block))