RGB color help
Closed this issue · 1 comments
Ibrahim-El-Sayed commented
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
nickclark2016 commented
Added it to the experimental branch. Case closed?