changed background(x,y,z,a) to background(x,y,z,alpha)

This commit is contained in:
sansumbrella
2009-12-30 18:26:35 +00:00
parent 5ce84c0e00
commit fe2fba38e7
+8 -8
View File
@@ -8501,16 +8501,17 @@ public class PApplet extends Applet
g.background(rgb, alpha);
}
/**
*
* @param gray specifies a value between white and black
*/
public void background(float gray) {
if (recorder != null) recorder.background(gray);
g.background(gray);
}
/**
*
* @param gray specifies a value between white and black
* @param alpha opacity of the background
*/
public void background(float gray, float alpha) {
if (recorder != null) recorder.background(gray, alpha);
g.background(gray, alpha);
@@ -8533,16 +8534,15 @@ public class PApplet extends Applet
* @param x red or hue value (depending on the current color mode)
* @param y green or saturation value (depending on the current color mode)
* @param z blue or brightness value (depending on the current color mode)
* @param a opacity of the background
*
* @see PApplet#stroke(float)
* @see PApplet#fill(float)
* @see PApplet#tint(float)
* @see PApplet#colorMode(int)
*/
public void background(float x, float y, float z, float a) {
if (recorder != null) recorder.background(x, y, z, a);
g.background(x, y, z, a);
public void background(float x, float y, float z, float alpha) {
if (recorder != null) recorder.background(x, y, z, alpha);
g.background(x, y, z, alpha);
}
/**