//from global var Color = new Color(red, green, blue, alpha); //from SarEngine var Color = SarEngine.Color(red, green, blue, alpha);
Color
Align
Arc
ArrayList
Audio
AudioTrack
Background
Block
Button
Camera
Circle
CollideGroup
Colliders
Color
Combination
Coordinate
Device
Font
FontStyle
FontVariant
FontWeight
Force
GameObject
Graphics
Ground
GUI
Image
ImageAnimation
Joystick
Keyboard
KeyEventArgs
Layer
Line
LinkList
Matrix
Mouse
MouseEventArgs
OneWayGround
Output
Particle
Path
Point
Polygon
Position
Rectangle
SarEngine
Scene
Text
TextAlign
TextBaseline
Thickness
Touch
TouchEventArgs
Vector2
Wall
用RGBA(红色分量、绿色分量、蓝色分量和不透明度)表示颜色的类。可以与CSS颜色值之间相互转换。
Syntax
Properties
Methods
copy()
复制一个相同的颜色实例。
equal(color)
判断两个颜色是否表示为同一种颜色。
fromString(cssColorString)
从一个CSS颜色值字符串生成一个Color对象。可以是形如"#66CCFF" "darkblack" "rgb(233,33,33)" "rgba(255,255,255,1.0)"
random()
随机生成一种alpha值为1的颜色。
toString()
将该颜色转换为CSS颜色值字符串。