Module: RawImage::Colors

Included in:
Color, Image
Defined in:
lib/raw_image/colors.rb

Instance Method Summary collapse

Instance Method Details

#blackObject



3
# File 'lib/raw_image/colors.rb', line 3

def black; Color.new(0.0); end

#grayObject Also known as: grey



5
# File 'lib/raw_image/colors.rb', line 5

def gray; Color.new(0.5); end

#transparentObject



8
# File 'lib/raw_image/colors.rb', line 8

def transparent; Color.new(0, 0, 0, 0); end

#whiteObject



4
# File 'lib/raw_image/colors.rb', line 4

def white; Color.new(1.0); end