Skip to content

Instantly share code, notes, and snippets.

@Tom003
Tom003 / Draw Shape Expression.js
Last active Sep 21, 2020
Draw a shape based on input values
View Draw Shape Expression.js
/************************************************************************************
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] = [];