@@ -65,13 +65,7 @@ by the module. Use the `getContext()` method on the canvas to get a `CanvasConte
6565
6666* ` backColor ` (color)
6767
68- Specifies the background color. Allowed values are:
69-
70- * 32 bit integers on the format ` 0xRRGGBBAA `
71- * strings on the format ` "#RGB" `
72- * strings on the format ` "#RRGGBB" `
73- * strings on the format ` "#RRGGBBAA" `
74-
68+ Specifies the background color. See ` fillStyle ` below for allowed values.
7569 Default is transparent.
7670
7771#### Methods
@@ -96,9 +90,30 @@ by the module. Use the `getContext()` method on the canvas to get a `CanvasConte
9690 Specifies the fill color that is used when the ` fill() ` method is called. Allowed values are:
9791
9892 * 32 bit integers on the format ` 0xRRGGBBAA `
99- * strings on the format ` "#RGB" `
100- * strings on the format ` "#RRGGBB" `
101- * strings on the format ` "#RRGGBBAA" `
93+ * string ` "transparent" `
94+ * strings on the format ` "#2c4" ` (#RGB)
95+ * strings on the format ` "#2c4f" ` (#RGBA)
96+ * strings on the format ` "#22cc44" ` (#RRGGBB)
97+ * strings on the format ` "#22cc44ff" ` (#RRGGBBAA)
98+ * strings on the format ` "rgb(255, 124, 22)" `
99+ * strings on the format ` "rgb(255, 124, 22, 0.5)" `
100+ * strings on the format ` "rgb(255, 124, 22, 50%)" `
101+ * strings on the format ` "rgba(255, 124, 22, 0.5)" `
102+ * strings on the format ` "rgba(255, 124, 22, 50%)" `
103+ * strings on the format ` "rgb(23%, 45%, 75%)" `
104+ * strings on the format ` "rgb(23%, 45%, 75%, 0.5)" `
105+ * strings on the format ` "rgb(23%, 45%, 75%, 50%)" `
106+ * strings on the format ` "rgba(23%, 45%, 75%, 0.5)" `
107+ * strings on the format ` "rgba(23%, 45%, 75%, 50%)" `
108+ * strings on the format ` "hsl(134, 50%, 50%)" `
109+ * strings on the format ` "hsl(134, 50%, 50%, 0.5)" `
110+ * strings on the format ` "hsl(134, 50%, 50%, 50%)" `
111+ * strings on the format ` "hsla(134, 50%, 50%, 0.5)" `
112+ * strings on the format ` "hsla(134, 50%, 50%, 50%)" `
113+ * strings on the format ` "hwb(134, 50%, 50%)" `
114+ * strings on the format ` "hwb(134, 50%, 50%, 0.5)" `
115+ * strings on the format ` "hwb(134, 50%, 50%, 50%)" `
116+ * named colors listed in [ CSS Color Module Level 4] ( https://www.w3.org/TR/css-color-4/#named-colors )
102117
103118#### Paths
104119
0 commit comments