protected void colorCalc(int rgb, float alpha) { if (((rgb & 0xff000000) == 0) && (rgb <= colorModeX)) { // see above colorCalc((float) rgb, alpha); } else { colorCalcARGB(rgb, alpha); } }
public void fill(float gray) { if (!openShape) { PGraphics.showWarning(OUTSIDE_BEGIN_END_ERROR, "fill()"); return; } fill = true; colorCalc(gray); fillColor = calcColor; if (!setAmbient) { ambientColor = fillColor; } }
public void stroke(float x, float y, float z) { if (!openShape) { PGraphics.showWarning(OUTSIDE_BEGIN_END_ERROR, "stroke()"); return; } stroke = true; colorCalc(x, y, z); strokeColor = calcColor; }
public void tint(int rgb) { if (!openShape) { PGraphics.showWarning(OUTSIDE_BEGIN_END_ERROR, "tint()"); return; } tint = true; colorCalc(rgb); tintColor = calcColor; }
public void tint(float x, float y, float z, float alpha) { if (!openShape) { PGraphics.showWarning(OUTSIDE_BEGIN_END_ERROR, "tint()"); return; } tint = true; colorCalc(x, y, z, alpha); tintColor = calcColor; }
public void ambient(float gray) { if (!openShape) { PGraphics.showWarning(OUTSIDE_BEGIN_END_ERROR, "ambient()"); return; } setAmbient = true; colorCalc(gray); ambientColor = calcColor; }
public void specular(int rgb) { if (!openShape) { PGraphics.showWarning(OUTSIDE_BEGIN_END_ERROR, "specular()"); return; } colorCalc(rgb); specularColor = calcColor; }
public void fill(int rgb) { if (!openShape) { PGraphics.showWarning(OUTSIDE_BEGIN_END_ERROR, "fill()"); return; } fill = true; colorCalc(rgb); fillColor = calcColor; if (!setAmbient) { ambientColor = fillColor; } }
public void stroke(float x, float y, float z, float alpha) { if (!openShape) { PGraphics.showWarning(OUTSIDE_BEGIN_END_ERROR, "stroke()"); return; } stroke = true; colorCalc(x, y, z, alpha); strokeColor = calcColor; }
public void tint(int rgb, float alpha) { if (!openShape) { PGraphics.showWarning(OUTSIDE_BEGIN_END_ERROR, "tint()"); return; } tint = true; colorCalc(rgb, alpha); tintColor = calcColor; }
public void fill(int rgb) { if (!openShape) { PGraphics.showWarning(OUTSIDE_BEGIN_END_ERROR, "fill()"); return; } fill = true; colorCalc(rgb); fillColor = calcColor; if (!setAmbient) { ambientColor = fillColor; } }
public void stroke(float x, float y, float z, float alpha) { if (!openShape) { PGraphics.showWarning(OUTSIDE_BEGIN_END_ERROR, "stroke()"); return; } stroke = true; colorCalc(x, y, z, alpha); strokeColor = calcColor; }
public void tint(float x, float y, float z) { if (!openShape) { PGraphics.showWarning(OUTSIDE_BEGIN_END_ERROR, "tint()"); return; } tint = true; colorCalc(x, y, z); tintColor = calcColor; }
public void specular(float gray) { if (!openShape) { PGraphics.showWarning(OUTSIDE_BEGIN_END_ERROR, "specular()"); return; } colorCalc(gray); specularColor = calcColor; }
public void tint(float gray, float alpha) { if (!openShape) { PGraphics.showWarning(OUTSIDE_BEGIN_END_ERROR, "tint()"); return; } tint = true; colorCalc(gray, alpha); tintColor = calcColor; }
public void specular(float x, float y, float z) { if (!openShape) { PGraphics.showWarning(OUTSIDE_BEGIN_END_ERROR, "specular()"); return; } colorCalc(x, y, z); specularColor = calcColor; }
public void emissive(int rgb) { if (!openShape) { PGraphics.showWarning(OUTSIDE_BEGIN_END_ERROR, "emissive()"); return; } colorCalc(rgb); emissiveColor = calcColor; }
public void fill(int rgb, float alpha) { if (!openShape) { PGraphics.showWarning(OUTSIDE_BEGIN_END_ERROR, "fill()"); return; } fill = true; colorCalc(rgb, alpha); fillColor = calcColor; if (!setAmbient) { ambientColor = fillColor; } }
public void fill(float x, float y, float z) { if (!openShape) { PGraphics.showWarning(OUTSIDE_BEGIN_END_ERROR, "fill()"); return; } fill = true; colorCalc(x, y, z); fillColor = calcColor; if (!setAmbient) { ambientColor = fillColor; } }
public void ambient(int rgb) { if (!openShape) { PGraphics.showWarning(OUTSIDE_BEGIN_END_ERROR, "ambient()"); return; } setAmbient = true; colorCalc(rgb); ambientColor = calcColor; }