ambient()

Lights Camera / Material Properties

Description

Sets the ambient reflectance for shapes. Used with lighting.

Syntax

void ambient(float r, float g, float b) void ambient(color c)

Parameters

NameTypeDescription
rfloatred component
gfloatgreen component
bfloatblue component
ccolora color value

Returns

void

Related

Under the Hood

Implementation in Processing.h / Processing.cpp:

Loading...