animator.skia

Custom Skia bindings for animator.

Refer to the Skia documentation for more information. Unless otherwise documented, all functions behave the same as the corresponding Skia function. Small changes like throwing exceptions instead of returning false have been made.

Functions

Color(*args, **kwargs)

Overloaded function.

ColorGetA(color)

ColorGetB(color)

ColorGetG(color)

ColorGetR(color)

ColorSetA(c, a)

ColorSetARGB(a, r, g, b)

ColorSetRGB(r, g, b)

ColorToHSV(color)

Converts ARGB color to its HSV components.

HSVToColor(hsv[, alpha])

Converts HSV components to an ARGB color.

MakeNullCanvas()

PreMultiplyARGB(a, r, g, b)

PreMultiplyColor(c)

RGBToHSV(red, green, blue)

Converts RGB to its HSV components.

uniqueColor([l, s])

Returns a unique color every time it is called.

Classes

AlphaType

Members:

ApplyPerspectiveClip

Members:

AutoCanvasRestore

Bitmap

Bitmap describes a two-dimensional raster pixel array.

BlendMode

Members:

BlendModeCoeff

Members:

Blender

Blenders

BlurStyle

Members:

Canvas

ClipOp

Members:

Color4f

ColorChannel

Members:

ColorChannelFlag

Members:

ColorFilter

ColorFilters

ColorInfo

ColorMatrix

ColorMatrixFilter

ColorSpace

ColorSpacePrimaries

ColorTable

ColorType

Members:

CornerPathEffect

CubicMap

CubicResampler

DashPathEffect

Data

Data supports Python buffer protocol, meaning that Data can be converted to Python buffer types without copy.

DiscretePathEffect

EncodedImageFormat

Members:

FilterMode

Members:

Flattenable

Font

FontArguments

FontHinting

Members:

FontMetrics

FontMgr

FontParameters

FontStyle

FontStyleSet

GradientShader

HighContrastConfig

HighContrastFilter

IPoint

IRect

ISize

Image

Image describes a two dimensional array of pixels to draw.

ImageFilter

ImageFilters

ImageInfo

note

The Make() methods are also available as constructors.

Line2DPathEffect

LumaColorFilter

MaskFilter

Matrix

MatrixPathEffect

MergePathEffect

MipmapMode

Members:

NamedGamut

NamedTransferFn

OpBuilder

OverdrawColorFilter

Paint

ParsePath

Path

Path1DPathEffect

Path2DPathEffect

PathBuilder

PathDirection

Members:

PathEffect

PathFillType

Members:

PathMeasure

PathOp

Members:

PathSegmentMask

Members:

PathVerb

Members:

Picture

PixelGeometry

Members:

Pixmap

Pixmap provides a utility to pair ImageInfo with pixels and row bytes. The buffer protocol is supported. It is possible to mount Pixmap as array::.

Point

Point3

RRect

RSXform

Rect

Region

Region describes the set of pixels used to clip Canvas.

RuntimeBlendBuilder

RuntimeColorFilterBuilder

RuntimeEffect

RuntimeEffectBuilder

RuntimeShaderBuilder

SamplingOptions

Shader

Functions from the SkShaders namespace are also available here as static methods.

ShaderMaskFilter

ShadowFlags

Members:

ShadowUtils

Size

StrokeAndFillPathEffect

StrokePathEffect

StrokeRec

Surface

Surface is responsible for managing the pixels that a canvas draws into.

SurfaceProps

TableMaskFilter

TextBlob

TextBlobBuilder

In Skia, you call the alloc* methods of this class with the count of glyphs to create a RunBuffer object.

TextEncoding

Members:

TextUtils_Align

Members:

TileMode

Members:

TrimPathEffect

Typeface

Vertices

YUVColorSpace

Members: