fillStyle not a function

后端 未结 1 1938
故里飘歌
故里飘歌 2021-01-15 01:19

I\'m getting an unusual error:

ctx_wrap.fillStyle is not a function

on this line:

ctx_wrap.fillStyle(\'#b8b8b8\'         


        
1条回答
  •  爱一瞬间的悲伤
    2021-01-15 01:52

    Try using ctx_wrap.fillStyle = "#COLOR".

    The second one does not work, the console just stops at the first one and spits out the error, because it freaked out from the line of code.

    0 讨论(0)
提交回复
热议问题