CanvasGraphics Class
A set of functions used by the canvas renderer to draw the primitive graphics data
Item Index
Methods
getTintedTexture
(
-
sprite -
color
Basically this method just needs a sprite and a color and tints the sprite with the given color
Parameters:
-
spriteSpritethe sprite to tint
-
colorFloatthe color to use to tint the sprite with
roundColor
(
-
color
Rounds the specified color according to the PIXI.CanvasTinter.cacheStepsPerColorChannel
Parameters:
-
colorFloatthe color to round, should be a hex color
tintPerPixel
(
-
texture -
color -
canvas
Tint a texture pixel per pixel
tintWithMultiply
(
-
texture -
color -
canvas
Tint a texture using the "multiply" operation
Parameters:
-
textureTexturethe texture to tint
-
colorIntthe color to use to tint the sprite with
-
canvasHTMLCanvasElementthe current canvas
tintWithOverlay
(
-
texture -
color -
canvas
Tint a texture using the "overlay" operation
Parameters:
-
textureTexturethe texture to tint
-
colorIntthe color to use to tint the sprite with
-
canvasHTMLCanvasElementthe current canvas
