You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Constructs an instance of the <a idl for>RGBColor</a> class,
2584
-
initializing the <a idl>r</a>, <a idl>g</a>, <a idl>b</a>, and <a idl>a</a> attributes of the instance to the attributes of the same name on the <a argument for="RGBColor(rgb)">rgb</a> argument.
Constructs an instance of the <a idl for>RGBColor</a> class,
2589
-
initializing the <a idl>r</a>, <a idl>g</a>, <a idl>b</a>, and <a idl>a</a> attributes of the instance to the passed dictionary attributes of the same name (or their defaulted values).
2621
+
<dd>
2622
+
Defined as follows in ECMAScript:
2623
+
2624
+
<pre>
2625
+
function(color) {
2626
+
if(color === undefined) color = {r:0, g:0, b:0, a:1};
Constructs an instance of the <a idl for>HSLColor</a> class,
2766
-
initializing the <a idl>h</a>, <a idl>s</a>, <a idl>l</a>, and <a idl>a</a> attributes of the instance to the passed dictionary attributes of the same name (or their defaulted values).
2833
+
<dd>
2834
+
Defined as follows in ECMAScript:
2835
+
2836
+
<pre>
2837
+
function(color) {
2838
+
if(color === undefined) color = {h:0, s:0, l:0, a:1};
Constructs an instance of the <a idl for>HexColor</a> class,
2889
-
initializing the <a idl>r</a>, <a idl>g</a>, <a idl>b</a>, and <a idl>a</a> attributes of the instance to the passed dictionary attributes of the same name (or their defaulted values).
2992
+
<dd>
2993
+
Defined as follows in ECMAScript:
2994
+
2995
+
<pre>
2996
+
function(color) {
2997
+
if(color === undefined) color = {r:0, g:0, b:0, a:255};
[Constructor(double c, double m, double y, double k, optional double a=1, optional fallback RGBColor?=null),
3064
+
Constructor(RGBColor rgb),
3065
+
Constructor(CSSColor csscolor),
2949
3066
Constructor(optional CMYKColorInit color),
2950
3067
Constructor(DOMString css)]
2951
3068
interface CMYKColor : CSSColor {
@@ -2974,9 +3091,19 @@ The CMYKColor Class</h3>
2974
3091
2975
3092
<dl dfn-for="CMYKColor">
2976
3093
<dt><dfn constructor title="CMYKColor(c, m, y, k, a, fallback) | CMYKColor(c, m, y, k, a) | CMYKColor(c, m, y, k)">CMYKColor</dfn>(double c, double m, double y, double k, optional double a=1, optional RGBColor? fallback=null)
2977
-
<dd link-for="CMYKColor">
2978
-
Constructs an instance of the <a idl for>CMYKColor</a> class,
2979
-
initializing the <a idl>c</a>, <a idl>m</a>, <a idl>y</a>, <a idl>k</a>, <a idl>a</a>, and <a idl>fallback</a> attributes of the instance to the passed arguments of the same name.
Constructs an instance of the <a idl for>CMYKColor</a> class,
3012
-
initializing the <a idl>c</a>, <a idl>m</a>, <a idl>y</a>, <a idl>k</a>, <a idl>a</a>, and <a idl>fallback</a> attributes of the instance to the passed dictionary attributes of the same name (or their defaulted values).
0 commit comments