@symbo.ls/scratch
Advanced tools
Comparing version 0.7.15 to 0.7.16
@@ -5,3 +5,3 @@ { | ||
"author": "symbo.ls", | ||
"version": "0.7.15", | ||
"version": "0.7.16", | ||
"files": [ | ||
@@ -8,0 +8,0 @@ "src" |
@@ -73,3 +73,3 @@ 'use strict' | ||
for (let i = 0; i < 3; i++) { | ||
arr[i] = Math.round( | ||
arr[i] = ~~( | ||
colorA[i] + ( | ||
@@ -76,0 +76,0 @@ (colorB[i] - colorA[i]) * range |
@@ -41,4 +41,4 @@ 'use strict' | ||
key, | ||
decimal: Math.round(value * 100) / 100, | ||
val: Math.round(value), | ||
decimal: ~~(value * 100) / 100, | ||
val: ~~(value), | ||
scaling, | ||
@@ -59,4 +59,4 @@ index, | ||
const valueRounded = Math.round(value) | ||
const nextRounded = Math.round(next) | ||
const valueRounded = ~~(value) | ||
const nextRounded = ~~(next) | ||
const diffRounded = nextRounded - valueRounded | ||
@@ -72,3 +72,3 @@ | ||
arr.map((v, k) => { | ||
const scaling = Math.round(v / base * 1000) / 1000 | ||
const scaling = ~~(v / base * 1000) / 1000 | ||
const newVar = variable + (k + 1) | ||
@@ -97,3 +97,3 @@ | ||
const value = base * Math.pow(ratio, key) | ||
const scaling = Math.round(value / base * 1000) / 1000 | ||
const scaling = ~~(value / base * 1000) / 1000 | ||
const variable = prefix + letterKey | ||
@@ -100,0 +100,0 @@ |
42110