animator.skia.ShadowUtils¶
- class animator.skia.ShadowUtils¶
Bases:
pybind11_builtins.pybind11_object
- __init__(*args, **kwargs)¶
Methods
ComputeTonalColors
(inAmbientColor, inSpotColor)Compute and return color values for one-pass tonal alpha.
DrawShadow
(canvas, path, zPlaneParams, ...)GetLocalBounds
(ctm, path, zPlaneParams, ...)Return bounding box for shadows relative to path.
__init__
(*args, **kwargs)- static ComputeTonalColors(inAmbientColor: int, inSpotColor: int) Tuple[int, int] ¶
Compute and return color values for one-pass tonal alpha.
- static DrawShadow(canvas: SkCanvas, path: animator.skia.Path, zPlaneParams: animator.skia.Point3, lightPos: animator.skia.Point3, lightRadius: float, ambientColor: int, spotColor: int, flags: int = <ShadowFlags.kNone_ShadowFlag: 0>) None ¶
- static GetLocalBounds(ctm: animator.skia.Matrix, path: animator.skia.Path, zPlaneParams: animator.skia.Point3, lightPos: animator.skia.Point3, lightRadius: float, flags: int = <ShadowFlags.kNone_ShadowFlag: 0>) animator.skia.Rect ¶
Return bounding box for shadows relative to path. Includes both the ambient and spot shadow bounds.