Changes for pixel reference for density

This commit is contained in:
REAS
2019-07-26 14:54:20 -07:00
parent 305d4ea762
commit 5d7d4cf9a0
2 changed files with 6 additions and 2 deletions
+5 -1
View File
@@ -281,6 +281,9 @@ public class PApplet implements PConstants {
* @see PApplet#get(int, int, int, int)
* @see PApplet#set(int, int, int)
* @see PImage
* @see PApplet#pixelDensity()
* @see PApplet#pixelWidth
* @see PApplet#pixelHeight
*/
public int[] pixels;
@@ -1210,7 +1213,8 @@ public class PApplet implements PConstants {
/**
* @webref environment
* @param density 1 or 2
*
* @see PApplet#pixelWidth
* @see PApplet#pixelHeight
*/
public void pixelDensity(int density) {
//println(density + " " + this.pixelDensity);
+1 -1
View File
@@ -90,7 +90,7 @@ public class PImage implements PConstants, Cloneable {
*
* @webref image:pixels
* @usage web_application
* @brief Array containing the color of every pixel in the image
* @brief Array containing the color of every pixel in the image
*/
public int[] pixels;