变形矩阵

最后更新于:2022-04-02 03:29:07

[TOC] ## 变形矩阵 ``` transform(a, b, c, d, e, f) ``` ## 实例 ``` var ctx; function draw(){ var canvas = document.getElementById('tutorial1'); if (!canvas.getContext) return; var ctx = canvas.getContext("2d"); ctx.transform(1, 1, 0, 1, 0, 0); ctx.fillRect(0, 0, 100, 100); } draw(); ```
';