Difference between revisions of "Screen:clear"

From GiderosMobile
m (Text replacement - "<source" to "<syntaxhighlight")
Line 5: Line 5:
 
=== Description ===
 
=== Description ===
 
Sets the screen background to the provided color and opacity.
 
Sets the screen background to the provided color and opacity.
<source lang="lua">
+
<syntaxhighlight lang="lua">
 
Screen:clear(color,alpha)
 
Screen:clear(color,alpha)
 
</source>
 
</source>

Revision as of 14:30, 13 July 2023

Available since: Gideros 2017.8
Class: Screen

Description

Sets the screen background to the provided color and opacity. <syntaxhighlight lang="lua"> Screen:clear(color,alpha) </source>

Parameters

color: (number) background color
alpha: (number) background transparency