sparkle-engine
sparkle-engine
Color
Class Color
颜色
Implements
IPoolable
ICopyable
<
Color
>
Index
Constructors
constructor
Properties
alpha
b
g
r
Methods
clone
copy
equals
set
Color
black
blue
from
Hex
green
red
white
yellow
Constructors
constructor
new
Color
(
r
?
,
g
?
,
b
?
,
alpha
?
)
:
Color
Parameters
r
:
number
= 0
g
:
number
= 0
b
:
number
= 0
alpha
:
number
= 1
Returns
Color
Properties
alpha
alpha
:
number
= 0
b
b
:
number
= 0
g
g
:
number
= 0
r
r
:
number
= 0
Methods
clone
clone
(
)
:
Color
克隆
Returns
Color
copy
copy
(
c
)
:
void
复制一个颜色的值到该颜色
Parameters
c
:
Color
Returns
void
equals
equals
(
color
)
:
boolean
判断是否相等
Parameters
color
:
Color
Returns
boolean
set
Color
set
Color
(
r
,
g
,
b
,
alpha
?
)
:
void
直接设置颜色
Parameters
r
:
number
g
:
number
b
:
number
alpha
:
number
= 1
Returns
void
Static
black
black
(
)
:
Color
创建黑色
Returns
Color
Static
blue
blue
(
)
:
Color
创建蓝色
Returns
Color
Static
from
Hex
from
Hex
(
hexString
)
:
Color
从Hex格式加载颜色
Parameters
hexString
:
string
Returns
Color
Static
green
green
(
)
:
Color
创建绿色
Returns
Color
Static
red
red
(
)
:
Color
创建红色
Returns
Color
Static
white
white
(
)
:
Color
创建白色
Returns
Color
Static
yellow
yellow
(
)
:
Color
创建黄色
Returns
Color
Preparing search index...
The search index is not available
sparkle-engine
CONTENTS
Math
Color
MathUtils
Matrix
Path
Rect
Vector2
GameNode
Collision
Container
Drawable
Graphical
Sprite
Text
Timer
Transform2D
Texture
AltasTexture
BaseTexture
Texture
TextureManager
Input
InputManager
MouseManager
Physics
Collision
PhysicsManager
Audio
Audio
AudioManager
Others
DebuggerDrawType
GraphicalType
PRIMITIVE_MODE
ResourcesType
SCALE_MODE
TextAnchor
Animations
DataResources
EventEmitter
GLShader
Loader
ObjectPool
Renderer
Resources
ResourcesManager
Scene
SparkleEngine
TextManager
VertexArrayBuffer
AnimationsStore
AttributeInfo
IAnimationFrames
IAnimationOption
IAudioEvent
IBaseGraphicalOptions
ICircleOptions
ICollisionEvent
ICollisionOptions
ICollisionResult
ICompositorOptions
IContainerEvent
IContainerOptions
ICopyable
IDebuggerDraw
IDestoryable
IDrawLineOptions
IDrawOptions
IDrawPolygonOptions
IDrawableOptions
IEventAble
IInputEvents
IListened
ILoadAnimationOptions
ILoaderEvent
IMouseData
IMouseEvents
IPolygonOptions
IPoolable
IRectOptions
IRenderOptions
IResources
IResourcesManagerEvent
IResourcesStore
ISparkleEngineOption
ISpriteOptions
ITextOptions
ITimerEvents
ITimerOptions
ITransform2DOptions
PoolTypes
AttributesLocation
Constructor
IGraphicalOptions
Images
颜色