set_ambient


Description:

public void set_ambient (Color ambient)

Sets the pipeline's ambient color, in the standard OpenGL lighting model.

The ambient color affects the overall color of the object.

Since the diffuse color will be intense when the light hits the surface directly, the ambient will be most apparent where the light hits at a slant.

The default value is (0.2, 0.2, 0.2, 1.0)

Parameters:

this

A Pipeline object

ambient

The components of the desired ambient color