MCPcopy Create free account
hub / github.com/HumbleUI/Skija / setAlphaf

Method setAlphaf

shared/java/Paint.java:273–276  ·  view source on GitHub ↗

Replaces alpha, leaving RGB unchanged. An out of range value triggers an assert in the debug build. a is a value from 0f to 1f. a set to zero makes color fully transparent; a set to 1.0 makes color fully opaque. @param a alpha component of color @return this

(float a)

Source from the content-addressed store, hash-verified

271 * @return this
272 */
273 @NotNull @Contract("_ -> this")
274 public Paint setAlphaf(float a) {
275 return setColor4f(getColor4f().withA(a));
276 }
277
278 /**
279 * <p>Replaces alpha, leaving RGB unchanged. An out of range value triggers

Callers 1

setAlphaMethod · 0.95

Calls 3

setColor4fMethod · 0.95
getColor4fMethod · 0.95
withAMethod · 0.80

Tested by

no test coverage detected