Members
-
Number of steps which will be used as a cap when rounding colors.
-
Whether or not the Canvas BlendModes are supported, consequently the ability to tint using the multiply method.
-
Tint cache boolean flag.
-
The tinting method that will be used.
Methods
-
Basically this method just needs a sprite and a color and tints the sprite with the given color.
Name Type Description spritePIXI.Sprite the sprite to tint
colornumber the color to use to tint the sprite with
Returns:
Type Description HTMLCanvasElement The tinted canvas -
Rounds the specified color according to the CanvasTinter.cacheStepsPerColorChannel.
Name Type Description colornumber the color to round, should be a hex color
Returns:
Type Description number The rounded color. -
Tint a texture using the 'multiply' operation.
Name Type Description texturePIXI.Texture the texture to tint
colornumber the color to use to tint the sprite with
canvasHTMLCanvasElement the current canvas
-
Tint a texture using the 'overlay' operation.
Name Type Description texturePIXI.Texture the texture to tint
colornumber the color to use to tint the sprite with
canvasHTMLCanvasElement the current canvas
-
Tint a texture pixel per pixel.
Name Type Description texturePIXI.Texture the texture to tint
colornumber the color to use to tint the sprite with
canvasHTMLCanvasElement the current canvas
Type Definitions
-
The tintMethod type.
Name Type Description texturePIXI.Texture the texture to tint
colornumber the color to use to tint the sprite with
canvasHTMLCanvasElement the current canvas