public final class ColourUtils extends Object
| Modifier and Type | Method and Description |
|---|---|
static boolean |
isGreyScale(int colour) |
static int |
mix(int colour1,
int colour2) |
static int |
mix(int colour1,
int colour2,
int alpha) |
static int |
multiply(int colour,
int amount)
Multiplies each of component of
colour with
amount and divides the result by 256. |
public static int mix(int colour1,
int colour2)
public static int mix(int colour1,
int colour2,
int alpha)
public static int multiply(int colour,
int amount)
colour with
amount and divides the result by 256.colour - The RGB colour to multiply.amount - The amount to multiply each colour band with, where 256
leaves the colour unchanged.public static boolean isGreyScale(int colour)
Copyright © 2011–2023 pepsoft.org. All rights reserved.