德明財經科技大學財金系丁天王程式設計學習經驗分享 帆布 Canvas 元件的屬性 屬性名稱 說明 fillStyle 設定顏色color、漸層gradient、樣式pattern等 strokeStyle 設定strokes的顏色color、漸層gradient、樣式pattern等 shadowColor Sets or returns the color to use for shadows shadowBlur Sets or returns the blur level for shadows shadowOffsetX Sets or returns the horizontal distance of the shadow from the shape shadowOffsetY Sets or returns the vertical distance of the shadow from the shape