fillStyle
fillStyle is a property of the 2D rendering context of an HTML canvas. It defines the color, gradient, or pattern to be used for filling shapes drawn with fill-related methods. The value can be a CSS color string, a CanvasGradient object, or a CanvasPattern object.
Color values supported include standard CSS color formats such as hex codes (#RRGGBB), rgb(), rgba(), hsl(), and
In practice, fillStyle affects filling operations such as fill(), fillRect(), fillPath(), and other shapes created by
Notes for developers: changing fillStyle only affects future fills; it does not retroactively alter previously drawn