Skip to content

ToneSprite ⇐ PIXI.Container

Kind: global class
Extends: PIXI.Container

  • ToneSprite ⇐ PIXI.Container
    • new ToneSprite()
    • .initialize()
    • .clear()
    • .setTone(r, g, b, gray)

new ToneSprite()

在 2D canvas 模式下改变屏幕颜色的精灵
The sprite which changes the screen color in 2D canvas mode


ToneSprite.initialize()

初始化色调精灵对象
Initializes the tone sprite object

Kind: static method of ToneSprite


ToneSprite.clear()

清除色调设置,重置所有颜色通道
Clears the tone settings and resets all color channels

Kind: static method of ToneSprite


ToneSprite.setTone(r, g, b, gray)

设置精灵的色调参数,包括 RGB 颜色通道和灰度
Sets the tone parameters of the sprite, including RGB color channels and grayscale

Kind: static method of ToneSprite

ParamTypeDescription
rnumber红色强度,范围(-255, 255) - Red strength in the range (-255, 255)
gnumber绿色强度,范围(-255, 255) - Green strength in the range (-255, 255)
bnumber蓝色强度,范围(-255, 255) - Blue strength in the range (-255, 255)
graynumber灰度级别,范围(0, 255) - Grayscale level in the range (0, 255)

贡献者

暂无相关贡献者

页面历史

暂无最近变更历史
最近更新