Java Color Mixer

Java Color Mixer

The Java Color Mixer provides three ways to select colors and provides 3 or 4 ways that color can be written into a Java program..

The specified color intensities are shown in the three outer circles in the upper right. Each circle shows the intensity of its color. The small circles show the colors resulting from combination of red and green, red and blue, and green and blue. The center circle in the middle shows the resulting color.

Colors can be selected in three different ways:

  • You can move or click the Red, Green and Blue sliders.
  • You can click on one of the 216 so called "browser-safe colors" in left hand two columns of color squares.
  • In the middle of the right column, you can click on one of the 13 named colors in Java.

The resulting color is displayed in 3 or 4 of the ways that are allowed in Java:

  • The constructor Color(0xrrggbb) where the value is in hexadecimal.
  • The constructor Color(r, g b) where the colors are in decimal integers from 0 to 255.
  • The constructor Color(R, G, B) where the colors are in floatings from 0.0f to 1.0f.
  • The color's name only when the color is selected from the right colum of Java's named colors.

The color mixer applications are written Processing.js and only require an internet connection and that Javascript is enabled.

brinkje@plu.edu   Version: Aug. 1, 2020

HTML and CSS Color mixer
JavaFX Color mixer
Processing and Processing.js Color mixer