Promotic
WikipediaLinkedInYoutubeTwitterFacebook

fillStyle - property of object CanvasCtx

Description:
Sets or returns the fill color or gradient
Syntax:
fillStyle As String
Calling:
ctx.fillStyle = "#ff0000";
Values:
color (default) - Color value according to CSS specification. The default color is #000000
#RRGGBB - Hexadecimal color ("#ff0000" = red)
rgb(R,G,B) - RGB color ("rgb(255,0,0)" = red)
rgba(R,G,B,A) - RGBA color ("rgba(255,0,0,0.5)" = red transparent) (the fourth parameter in range from 0 to 1)
HTML name color - "red" - HTML named color
gradient - A gradient object reference (linear or radial) used to create a color gradient.
Note:
Property access for read and write. The method can also be called in the graphic item events for Web Panels.
See also:
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice