Skewing a shapeSection

by Manawe

HTML

<!-- Learn about this code on MDN: https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D/transform -->

<canvas id="canvas"></canvas>

JavaScript

const canvas = document.getElementById('canvas');
const ctx = canvas.getContext('2d');

ctx.transform(1, -14, 27, 1, 0, 0);
ctx.fillRect(0, 0, 100, 100);