Class PColor


public class PColor extends Object
PColor class - provides static variables and methods for Processing colors
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static int
     
    static int
     
    static int
     
    static int
     
    static int
     
    static int
     
    static int
     
    static int
     
    static int
     
    static int
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(processing.core.PApplet p, int firstColor, int secondColor)
     
    static int
    get(int red, int green, int blue)
     
    static int
    get(String hexString)
     
    static int
    getBlue(processing.core.PApplet p, int color)
     
    static int
    getGreen(processing.core.PApplet p, int color)
     
    static String
    getHexString(int color)
     
    static int
    getRed(processing.core.PApplet p, int color)
     
    static String
    getRGBString(processing.core.PApplet p, int color)
     
    static void
    printPColor(processing.core.PApplet p, int color)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • BLACK

      public static int BLACK
    • WHITE

      public static int WHITE
    • GRAY

      public static int GRAY
    • RED

      public static int RED
    • GREEN

      public static int GREEN
    • BLUE

      public static int BLUE
    • CYAN

      public static int CYAN
    • MAGENTA

      public static int MAGENTA
    • YELLOW

      public static int YELLOW
    • NULL

      public static int NULL
  • Constructor Details

    • PColor

      public PColor()
  • Method Details

    • get

      public static int get(int red, int green, int blue)
    • get

      public static int get(String hexString)
    • getRed

      public static int getRed(processing.core.PApplet p, int color)
    • getGreen

      public static int getGreen(processing.core.PApplet p, int color)
    • getBlue

      public static int getBlue(processing.core.PApplet p, int color)
    • printPColor

      public static void printPColor(processing.core.PApplet p, int color)
    • getRGBString

      public static String getRGBString(processing.core.PApplet p, int color)
    • getHexString

      public static String getHexString(int color)
    • equals

      public boolean equals(processing.core.PApplet p, int firstColor, int secondColor)