We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6ade2ff + 6d5032c commit 46014b6Copy full SHA for 46014b6
css-color/Overview.bs
@@ -3036,10 +3036,10 @@ The HexColor Class</h3>
3036
<pre>
3037
function(color) {
3038
if(color === undefined) color = {r:0, g:0, b:0, a:255};
3039
- this.r = this.r === undefined ? 0 : this.r;
3040
- this.g = this.g === undefined ? 0 : this.g;
3041
- this.b = this.b === undefined ? 0 : this.b;
3042
- this.a = this.a === undefined ? 255 : this.a;
+ this.r = color.r === undefined ? 0 : color.r;
+ this.g = color.g === undefined ? 0 : color.g;
+ this.b = color.b === undefined ? 0 : color.b;
+ this.a = color.a === undefined ? 255 : color.a;
3043
return this;
3044
}
3045
</pre>
0 commit comments