http://stackoverflow.com/questions/6615002/given-an-rgb-value-how-do-i-create-a-tint-or-shade A shade is produced by "darkening" a hue or "adding black", to shade: R' = R (1 - shade_factor) G' = G (1 - shade_factor) B' = B (1 - shade_factor) @param bitmap @param color @param amount
(Bitmap bitmap, float amount)
| 152 | * @param amount |
| 153 | */ |
| 154 | public static Bitmap shade(Bitmap bitmap, float amount) |
| 155 | { |
| 156 | return tone(bitmap, Color.BLACK, amount); |
| 157 | } |
| 158 | |
| 159 | /** |
| 160 | * A tint is produced by "lightening" a hue or "adding white", to tint: |