Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int color1,color2;
- float [] hsb = new float[3];
- //init color1 here
- Color.RGBtoHSB((color1 >> 16) & 0xFF, (color1 >> 8) & 0xFF, color1 & 0xFF, hsb);
- hsb[0] = (hsb[0]+180) % 360;
- color2 = Color.HSBtoRGB(hsb[0], hsb[1], hsb[2]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement