Skip to content

Commit 9540542

Browse files
committed
bg str arg
1 parent f107578 commit 9540542

3 files changed

Lines changed: 8 additions & 2 deletions

File tree

q5.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,11 @@ function Q5(scope){
824824
}
825825
ctx.save();
826826
ctx.resetTransform();
827-
ctx.fillStyle=$.color(...Array.from(arguments));
827+
if (typeof arguments[0] == "string"){
828+
ctx.fillStyle = arguments[0];
829+
}else{
830+
ctx.fillStyle=$.color(...Array.from(arguments));
831+
}
828832
ctx.fillRect(0,0,$.width,$.height);
829833
ctx.restore();
830834
}

0 commit comments

Comments
 (0)