MCPcopy Create free account
hub / github.com/KAlO2/PerfectShow / shade

Method shade

src/com/cloudream/ishow/algorithm/Effect.java:154–157  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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:

Callers

nothing calls this directly

Calls 1

toneMethod · 0.95

Tested by

no test coverage detected