blue()

Color / Creating & Reading

Description

Extracts the blue value from a color.

Syntax

float blue(color c)

Parameters

NameTypeDescription
ccolorany color value

Returns

float

Related

Under the Hood

From Processing.h:

float blue(color c);

Under the Hood

From Processing.cpp:

float PApplet::blue(color c) { unsigned int v=c.value; return (v&0xFF)/255.0f*colorMaxB; }