/** * Retrieves the fog color. */ void getColor(Color3f color) { color.set(this.color); }
/** * Retrieves the color of this light. * @param color the vector that will receive the color of this light */ void getColor(Color3f color) { color.set(this.color); }
/** * Retrieves this material's ambient color. * @return the material's ambient color */ final void getAmbientColor(Color3f color) { color.set(this.ambientColor); }
/** * Sets this material's emissive color * This is the color of light, if any, that the material emits. * @param color the new emissive color */ final void initEmissiveColor(Color3f color) { this.emissiveColor.set(color); }
/** * Sets this material's diffuse color. * @param r the new diffuse color's red component * @param g the new diffuse color's green component * @param b the new diffuse color's blue component */ final void initDiffuseColor(float r, float g, float b) { this.diffuseColor.set(r, g, b); }
/** * This method retrieves this interpolator's startColor. * @param color the vector that will receive the interpolator's start color */ public void getStartColor(Color3f color) { color.set(startColor); }
/** * This method sets the endColor for this interpolator. * @param color the new end color */ public void setEndColor(Color3f color) { endColor.set(color); prevAlphaValue = Float.NaN; }
/** * Sets the intrinsic color of this ColoringAttributes * component object. This color is used when lighting is disabled * or when material is null. * @param r the red component of the color * @param g the green component of the color * @param b the blue component of the color */ final void initColor(float r, float g, float b) { this.color.set(r, g, b); }
/** * Gets the intrinsic color of this ColoringAttributes * component object. * @param color the vector that will receive color */ final void getColor(Color3f color) { color.set(this.color); }
/** * Sets this material's emissive color. * This is the color of light, if any, that the material emits. * @param r the new emissive color's red component * @param g the new emissive color's green component * @param b the new emissive color's blue component */ final void initEmissiveColor(float r, float g, float b) { this.emissiveColor.set(r, g, b); }
/** * Sets this material's diffuse color plus alpha. * This is the color of the material when illuminated by a light source. * @param r the new diffuse color's red component * @param g the new diffuse color's green component * @param b the new diffuse color's blue component * @param a the alpha component used to set transparency */ final void initDiffuseColor(float r, float g, float b, float a) { this.diffuseColor.set(r, g, b); }
/** * Initialize the fog color to the specified color. */ void initColor(Color3f color) { this.color.set(color); } /**
/** * Retrieves the background color. * @param color the vector that will receive the current background color */ final void getColor(Color3f color) { color.set(this.color); }
/** * Initialize the color of this light node. * @param color the value of this new light color */ void initColor(Color3f color) { this.color.set(color); }
/** * Sets the intrinsic color of this ColoringAttributes * component object. * @param color the color that is used when lighting is disabled * or when material is null */ final void initColor(Color3f color) { this.color.set(color); }
/** * Retrieves this material's diffuse color. * @param color the vector that will receive this material's diffuse color */ final void getDiffuseColor(Color3f color) { color.set(this.diffuseColor); }
protected void set(ColoringAttributesRetained cr) { super.set(cr); color.set(cr.color); shadeModel = cr.shadeModel; }
@Override public Node cloneNode(boolean forceDuplicate) { Text2D t2d = new Text2D(); t2d.color.set(color); t2d.fontName = fontName; t2d.fontSize = fontSize; t2d.fontStyle = fontStyle; t2d.text = text; t2d.duplicateNode(this, forceDuplicate); return t2d; }
/** * Sets the fog color to the specified color and send message */ void setColor(Color3f color) { this.color.set(color); sendMessage(COLOR_CHANGED, new Color3f(color)); }