Difference between revisions of "GSDP:GAM100/CProcessing/alpha()"

From Inside
Jump to: navigation, search
>Zachary.logsdon
(New page: {{GSDP:GAM100API.css}} =alpha()= ==Description== Retrieve the alpha value from a given PColor object. ===Parameters=== alpha(PColor c) * c - (PColor) the Color to retrieve the alpha valu...)
(No difference)

Revision as of 08:40, 13 May 2019

alpha()

Description

Retrieve the alpha value from a given PColor object.

Parameters

alpha(PColor c)

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

Example

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

   // Retrieve the alpha value
   // alpha will be 128
   int alpha = alpha(white);
}

Related

Personal tools
Namespaces

Variants
Actions
Navigation
NameSpaces:>
Tools
Dynamic:>