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

 

strokeStyle

<< Click to Display Table of Contents >>

Navigation:  »No topics above this level«

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

 

strokeStyle

 

 

Line color.

 

 

 

Prototype :

 

string strokeStyle

 

 

 

Reference :

 

The default is "#000000".

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

 

 

 

Example :

 

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

 

 

 

Available Events :

 

OnPreDraw,  OnPostDraw