animator.skia.RuntimeEffect¶
- class animator.skia.RuntimeEffect¶
Bases:
pybind11_builtins.pybind11_object
- __init__(*args, **kwargs)¶
Methods
MakeForBlender
(sksl, options)MakeForColorFilter
(sksl, options)MakeForShader
(sksl, options)MakeTraced
(shader, traceCoord)__init__
(*args, **kwargs)allowBlender
(self)allowColorFilter
(self)allowShader
(self)children
(self)findChild
(self, name)findUniform
(self, name)makeBlender
(self, uniforms[, children])Create a blender from this effect with the given uniforms and children.
makeColorFilter
(*args, **kwargs)Overloaded function.
makeImage
(self, uniforms, children, resultInfo)Create an image from this effect with the given uniforms and children.
makeShader
(*args, **kwargs)Overloaded function.
source
(self)uniformSize
(self)uniforms
(self)- class ChildType¶
Bases:
pybind11_builtins.pybind11_object
Members:
kShader
kColorFilter
kBlender
- property name¶
- static MakeForBlender(sksl: str, options: animator.skia.RuntimeEffect.Options = <animator.skia.RuntimeEffect.Options object at 0x7f20529b93f0>) animator.skia.RuntimeEffect.Result ¶
- static MakeForColorFilter(sksl: str, options: animator.skia.RuntimeEffect.Options = <animator.skia.RuntimeEffect.Options object at 0x7f20529ab330>) animator.skia.RuntimeEffect.Result ¶
- static MakeForShader(sksl: str, options: animator.skia.RuntimeEffect.Options = <animator.skia.RuntimeEffect.Options object at 0x7f205301a4f0>) animator.skia.RuntimeEffect.Result ¶
- static MakeTraced(shader: animator.skia.Shader, traceCoord: animator.skia.IPoint) animator.skia.RuntimeEffect.TracedShader ¶
- allowBlender(self: animator.skia.RuntimeEffect) bool ¶
- allowColorFilter(self: animator.skia.RuntimeEffect) bool ¶
- allowShader(self: animator.skia.RuntimeEffect) bool ¶
- children(self: animator.skia.RuntimeEffect) List[animator.skia.RuntimeEffect.Child] ¶
- findChild(self: animator.skia.RuntimeEffect, name: str) animator.skia.RuntimeEffect.Child ¶
- findUniform(self: animator.skia.RuntimeEffect, name: str) animator.skia.RuntimeEffect.Uniform ¶
- makeBlender(self: animator.skia.RuntimeEffect, uniforms: animator.skia.Data, children: List[animator.skia.RuntimeEffect.ChildPtr] = []) animator.skia.Blender ¶
Create a blender from this effect with the given uniforms and children.
- makeColorFilter(*args, **kwargs)¶
Overloaded function.
makeColorFilter(self: animator.skia.RuntimeEffect, uniforms: animator.skia.Data) -> animator.skia.ColorFilter
makeColorFilter(self: animator.skia.RuntimeEffect, uniforms: animator.skia.Data, children: List[animator.skia.ColorFilter]) -> animator.skia.ColorFilter
Create a color filter from this effect with the given uniforms and children.
makeColorFilter(self: animator.skia.RuntimeEffect, uniforms: animator.skia.Data, children: List[animator.skia.RuntimeEffect.ChildPtr]) -> animator.skia.ColorFilter
Create a color filter from this effect with the given uniforms and children.
- makeImage(self: animator.skia.RuntimeEffect, uniforms: animator.skia.Data, children: List[animator.skia.RuntimeEffect.ChildPtr], resultInfo: animator.skia.ImageInfo, localMatrix: animator.skia.Matrix = None, mipmapped: bool = False) animator.skia.Image ¶
Create an image from this effect with the given uniforms and children.
- Note
The resultInfo and localMatrix parameters are swapped from the corresponding parameters in the C++ API.
- makeShader(*args, **kwargs)¶
Overloaded function.
makeShader(self: animator.skia.RuntimeEffect, uniforms: animator.skia.Data, children: List[animator.skia.Shader], localMatrix: animator.skia.Matrix = None) -> animator.skia.Shader
Create a shader from this effect with the given uniforms and children.
makeShader(self: animator.skia.RuntimeEffect, uniforms: animator.skia.Data, children: List[animator.skia.RuntimeEffect.ChildPtr], localMatrix: animator.skia.Matrix = None) -> animator.skia.Shader
Create a shader from this effect with the given uniforms and children.
- source(self: animator.skia.RuntimeEffect) str ¶
- uniformSize(self: animator.skia.RuntimeEffect) int ¶
- uniforms(self: animator.skia.RuntimeEffect) List[animator.skia.RuntimeEffect.Uniform] ¶