animator.skia.Color¶
- animator.skia.Color(*args, **kwargs)¶
Overloaded function.
Color(r: int, g: int, b: int, a: int = 255) -> int
Returns color value from 8-bit component values.
- param int r
amount of red, from no red (0) to full red (255)
- param int g
amount of green, from no green (0) to full green (255)
- param int b
amount of blue, from no blue (0) to full blue (255)
- param int a
amount of alpha, from fully transparent (0) to fully opaque (255)
- return
color and alpha, unpremultiplied
Color(color4f: SkRGBA4f<(SkAlphaType)3>) -> int
Returns color value from 4-float component values (
Color4f
).- param color4f
color and alpha, unpremultiplied
- return
color and alpha, unpremultiplied