Difference between revisions of "Path2D:setFillColor"

From GiderosMobile
Line 3: Line 3:
 
'''<translate>Available since</translate>:''' Gideros 2016.04<br/>
 
'''<translate>Available since</translate>:''' Gideros 2016.04<br/>
 
'''<translate>Class</translate>:''' [[Special:MyLanguage/Path2D|Path2D]]<br/>
 
'''<translate>Class</translate>:''' [[Special:MyLanguage/Path2D|Path2D]]<br/>
 +
Since Gideros 2019.12, this function accepts gradients the same way as Pixel:setColor().
 
=== <translate>Description</translate> ===
 
=== <translate>Description</translate> ===
 
<translate>Sets fill color</translate>
 
<translate>Sets fill color</translate>

Revision as of 17:05, 27 November 2019


Available since: Gideros 2016.04
Class: Path2D
Since Gideros 2019.12, this function accepts gradients the same way as Pixel:setColor().

Description

Sets fill color

 Path2D:setFillColor(color,alpha)

Parameters

color: (hex) color to use
alpha: (number) opacity of fill from 0 to 1, default 1 optional