Skip to content

Instantly share code, notes, and snippets.

@Tom003
Tom003 / Draw Shape Expression.js
Last active March 14, 2024 20:34
Draw a shape based on input values
/************************************************************************************
Draw Shape Expression v1.02
Description: Draws a parametric rectangle path
Author: Thomas Alberti <ta@thomasalberti.com>
************************************************************************************/
function getMatrixComposite(tMatrix1, tMatrix2){ // Multiply matrices, 2x2 * 2x2
let cMatrix = [];
for(let j = 0; j <= 1; j++) {
cMatrix[j] = [];