-
Notifications
You must be signed in to change notification settings - Fork 0
/
ColorMixer.pde
executable file
·47 lines (36 loc) · 836 Bytes
/
ColorMixer.pde
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
/* Color Mixer
by electricmango
https://electricmango.github.io
ColorMixer.pde
The actual sketch.
*/
import controlP5.*; //Control P5 library
import java.awt.Color;
import java.awt.Image;
int r = 128;
int g = 128;
int b = 128;
int a = 255;
int bg = 209;
color currentColor;
boolean[] keys = new boolean[158];
PImage github, licensel, osil;
void setup(){
size(800,800);
noStroke();
frame.setTitle("Color Mixer");
github = loadImage("images/GitHub-Mark-32px.png");
licensel = loadImage("images/license/by-sa.png");
licensel.resize(91,32);
osil = loadImage("images/license/osi_greyscale_logo.png");
osil.resize(91,104);
guiinit();
cpinit();
textinit();
aboutTextinit();
}
void draw(){
background(bg);
fill(cp.getColorValue());
rect(125,125,550,550,0,7,7,7); //Rectangle
}