nickclark2016/JavaGraphicsEngine

RGB color help

Closed this issue · 1 comments

public Color(int red, int green, int blue, int alpha)
{
if ((red & 255) != red || (green & 255) != green || (blue & 255) != blue || (alpha & 255) != alpha)
throw new IllegalArgumentException("Bad RGB values");

value = (alpha << 24) | (red << 16) | (green << 8) | blue;
falpha = 1;
cs = null;
}

easier function

Added it to the experimental branch. Case closed?