[][src]Static p5_sys::global::emissiveMaterial

pub static emissiveMaterial: EmissiveMaterialInternalType

Sets the emissive color of the material used for geometry drawn to the screen. This is a misnomer in the sense that the material does not actually emit light that effects surrounding polygons. Instead, it gives the appearance that the object is glowing. An emissive material will display at full strength even if there is no light for it to reflect.

Examples

function setup() {
  createCanvas(100, 100, WEBGL);
}
function draw() {
  background(0);
  noStroke();
  ambientLight(0);
  emissiveMaterial(130, 230, 0);
  sphere(40);
}

Overloads

v1 gray value, red or hue value (depending on the current color mode),

v2? green or saturation value

v3? blue or brightness value

a? opacity


color color, color Array, or CSS color string