TOC : Script API > JavaScript > JavaScript API > GeneralScript > DrawingContext > Property >

 

fillStyle

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

TOC : Script API > JavaScript > JavaScript API > GeneralScript > DrawingContext > Property >

 

fillStyle

 

 

The color to fill the face.

 

 

 

Prototype :

 

string fillStyle

 

 

 

Reference :

 

The default is "#000000".

Sets to an Hexa numeric string representing an RGB value like "#FFFFFF".

 

 

 

Example :

 

ctx.fillStyle = "#FF0000"; //set to red

 

 

 

Available Events :

 

OnPreDraw,  OnPostDraw