GSDP:GAM100/CProcessing/red()

From Inside
< GSDP:GAM100‎ | CProcessing
Revision as of 10:12, 13 May 2019 by >Zachary.logsdon
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

red()

Description

Retrieve the red value from a given PColor object.

Parameters

red(PColor c)

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

Example

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

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

Related

Personal tools
Namespaces

Variants
Actions
Navigation
NameSpaces:>
Tools
Dynamic:>