Difference between revisions of "GSDP:GAM100/CProcessing/alpha()"
From Inside
< GSDP:GAM100 | CProcessing
>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...) |
>Zachary.logsdon |
||
(One intermediate revision by the same user not shown) | |||
Line 25: | Line 25: | ||
* [[GSDP:GAM100/CProcessing |Main Page ]] | * [[GSDP:GAM100/CProcessing |Main Page ]] | ||
− | * [[GSDP:GAM100/CProcessing/ | + | * [[GSDP:GAM100/CProcessing/color() |color() ]] |
− | |||
* [[GSDP:GAM100/CProcessing/red() |red() ]] | * [[GSDP:GAM100/CProcessing/red() |red() ]] | ||
* [[GSDP:GAM100/CProcessing/green() |green() ]] | * [[GSDP:GAM100/CProcessing/green() |green() ]] | ||
* [[GSDP:GAM100/CProcessing/blue() |blue() ]] | * [[GSDP:GAM100/CProcessing/blue() |blue() ]] | ||
* [[GSDP:GAM100/CProcessing/lerpColor() |lerpColor() ]] | * [[GSDP:GAM100/CProcessing/lerpColor() |lerpColor() ]] |
Latest revision as of 09:13, 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);
}