animator.skia.RSXform¶
- class animator.skia.RSXform¶
Bases:
pybind11_builtins.pybind11_objectMethods
Make(scos, ssin, tx, ty)MakeFromRadians(scale, radians, tx, ty, ax, ay)__init__(self, scos, ssin, tx, ty)rectStaysRect(self)set(self, scos, ssin, tx, ty)setIdentity(self)toQuad(*args, **kwargs)Overloaded function.
toTriStrip(self, width, height)Returns a list of 4 points, the corners of the resulting strip.
Attributes
fSCosfSSinfTxfTy- static MakeFromRadians(scale: float, radians: float, tx: float, ty: float, ax: float, ay: float) animator.skia.RSXform¶
- rectStaysRect(self: animator.skia.RSXform) bool¶
- setIdentity(self: animator.skia.RSXform) None¶
- toQuad(*args, **kwargs)¶
Overloaded function.
toQuad(self: animator.skia.RSXform, width: float, height: float) -> List[animator.skia.Point]
Maps a rectangle with the given width and height with this
RSXformand returns a list of 4 points, the corners of the resulting quadrilateral.- param width
The width of the rectangle.
- param height
The height of the rectangle.
- return
A list of 4 points, the corners of the resulting quadrilateral.
toQuad(self: animator.skia.RSXform, size: animator.skia.Size) -> List[animator.skia.Point]
Maps a rectangle with the given size with this
RSXformand returns a list of 4 points, the corners of the resulting quadrilateral.- param size
The size of the rectangle.
- return
A list of 4 points, the corners of the resulting quadrilateral.
- toTriStrip(self: animator.skia.RSXform, width: float, height: float) List[animator.skia.Point]¶
Returns a list of 4 points, the corners of the resulting strip.