pointLight()

Lights Camera / Lights

Description

Adds a point light. Emanates from a specific position in all directions.

Syntax

void pointLight(float r, float g, float b, float x, float y, float z)

Parameters

NameTypeDescription
rfloatred component
gfloatgreen component
bfloatblue component
xfloatx-position
yfloaty-position
zfloatz-position

Returns

void

Related

Under the Hood

Implementation in Processing.h / Processing.cpp:

Loading...