Background
-
class
cee.Background() Background configuration
The class defines the view background settings. The background can either be single colored or be a gradient between a top and a bottom color. Image backgrounds are also supported, in which case the image will be rendered on top of the specified background color.
You can access the background object from the view with the
View.backgroundproperty.
Accessors
-
cee.Background.bottomColor() - get bottomColor():
Color4The bottom color of the background.
If background is single color, the topColor and bottomColor properties are equal
Returns:
Color4
-
cee.Background.image() - get image():
TextureIf image background is in use it returns the image uses as a background.
Returns:
Texture
-
cee.Background.topColor() - get topColor():
Color4The top color of the background.
If background is single color, the topColor and bottomColor properties are equal
Returns:
Color4
Methods
-
cee.Background.setImage() - setImage(texture:
Texture): voidUse the given image as the background of the view
Specify null to clear any previously specified background image.
Parameters
texture:TextureReturns: void
-
cee.Background.setSingleColor() - setSingleColor(color:
Color4Like): voidSets the background color to the given color (single color)
The background of the view will be cleared with the given color, and no graded background will be rendered. This is the default mode.
Parameters
color:Color4LikeReturns: void
-
cee.Background.setTopAndBottomColor() - setTopAndBottomColor(topColor:
Color4Like, bottomColor:Color4Like): voidSets the background color to a gradient defined by a top color and a bottom color
Parameters
topColor:
Color4LikebottomColor:
Color4LikeReturns: void