createLinearGradient (x1, y1, x2, y2) // 放射狀漸層ctx.createRadialGradient(x1, y1, r1, x2, y2, r2) // 漸層顏色,position 為0 ~ 1 ctx.gradient.
確定! 回上一頁