Method: Processing::GraphicsContext#green

Defined in:
lib/processing/graphics_context.rb

#green(color) ⇒ Numeric

Returns the green value of the color.

Parameters:

  • color (Numeric)

    color value

Returns:

  • (Numeric)

    the green value

See Also:



730
731
732
# File 'lib/processing/graphics_context.rb', line 730

def green(color)
  ((color >> 8) & 0xff) / 255.0 * @colorMaxes__[1]
end