GSDP:GAM100/CProcessing/green()

From Inside
Jump to: navigation, search

green()

Description

Retrieve the green value from a given PColor object.

Parameters

green(PColor c)

  • c - (PColor) the Color to retrieve the green value from.

Example

void init() 
{
    // Create a slightly transparent white color
    pColor white = color(255,255,255,128);

   // Retrieve the green value
   // green will be 255
   int green = green(white);
}

Related

Personal tools
Namespaces

Variants
Actions
Navigation
NameSpaces:>
Tools
Dynamic:>