Skip to content

Instantly share code, notes, and snippets.

Avatar

lmiguelmh

View GitHub Profile
View gist:0f90bf1e5305b84f28c9d358ddecd3c3
// color equalization fuuu
int colors = 16;
byte[] r = new byte[colors];
byte[] g = new byte[colors];
byte[] b = new byte[colors];
for (int i = 0; i < colors; i++) {
r[i] = (byte) (i*256/colors & 0xFF);
g[i] = (byte) (i*256/colors & 0xFF);
b[i] = (byte) (i*256/colors & 0xFF);
}
You can’t perform that action at this time.