Classes
Global | Description |
---|---|
ScreenSprite | ScreenSprite |
Functions
Global | Description |
---|---|
initialize() | 初始化屏幕精灵。 Initializes the screen sprite. |
setBlack() | 将屏幕精灵的颜色设置为黑色。 Sets black to the color of the screen sprite. |
setWhite() | 将屏幕精灵的颜色设置为白色。 Sets white to the color of the screen sprite. |
setColor(r, g, b) | 通过数值设置屏幕精灵的颜色。 Sets the color of the screen sprite by values. |
ScreenSprite
ScreenSprite
Kind: global class
new ScreenSprite()
覆盖整个游戏屏幕的精灵。
The sprite which covers the entire game screen.
initialize()
初始化屏幕精灵。
Initializes the screen sprite.
Kind: global function
setBlack()
将屏幕精灵的颜色设置为黑色。
Sets black to the color of the screen sprite.
Kind: global function
setWhite()
将屏幕精灵的颜色设置为白色。
Sets white to the color of the screen sprite.
Kind: global function
setColor(r, g, b)
通过数值设置屏幕精灵的颜色。
Sets the color of the screen sprite by values.
Kind: global function
Param | Type | Description |
---|---|---|
r | Number | 红色值(范围 0-255) The red value in the range (0, 255) |
g | Number | 绿色值(范围 0-255) The green value in the range (0, 255) |
b | Number | 蓝色值(范围 0-255) The blue value in the range (0, 255) |
贡献者
暂无相关贡献者
页面历史
暂无最近变更历史