From 93ce7c5a895b1ab499087d129fd228f07fc6a4e3 Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Fri, 15 Sep 2023 11:46:00 +0200 Subject: [PATCH] Change the `getB` function, in `src/core/pattern.js`, to use the exponentiation operator --- src/core/pattern.js | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/core/pattern.js b/src/core/pattern.js index 379c2bd65..97b58b0b2 100644 --- a/src/core/pattern.js +++ b/src/core/pattern.js @@ -418,12 +418,7 @@ const getB = (function getBClosure() { const t = i / count, t_ = 1 - t; lut.push( - new Float32Array([ - t_ * t_ * t_, - 3 * t * t_ * t_, - 3 * t * t * t_, - t * t * t, - ]) + new Float32Array([t_ ** 3, 3 * t * t_ ** 2, 3 * t ** 2 * t_, t ** 3]) ); } return lut;