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

Method setColor

shared/java/Paint.java:204–209  ·  view source on GitHub ↗

Sets alpha and RGB used when stroking and filling. The color is a 32-bit value, unpremultiplied, packing 8-bit components for alpha, red, blue, and green. @param color unpremultiplied ARGB @see https://fiddle.skia.org/c/@Paint_setColor

(int color)

Source from the content-addressed store, hash-verified

202 * @see <a href="https://fiddle.skia.org/c/@Paint_setColor">https://fiddle.skia.org/c/@Paint_setColor</a>
203 */
204 @NotNull @Contract("_ -> this")
205 public Paint setColor(int color) {
206 Stats.onNativeCall();
207 _nSetColor(_ptr, color);
208 return this;
209 }
210
211 /**
212 * Sets alpha and RGB used when stroking and filling. The color is four floating

Callers 7

baseMethod · 0.45
executeMethod · 0.45
executeMethod · 0.45
executeMethod · 0.45
drawMethod · 0.45

Calls 2

onNativeCallMethod · 0.95
_nSetColorMethod · 0.95

Tested by 5

baseMethod · 0.36
executeMethod · 0.36
executeMethod · 0.36
executeMethod · 0.36
drawMethod · 0.36