Update heatglow.js

This commit is contained in:
JustAGenericUsername 2023-12-15 21:17:34 -05:00 committed by GitHub
parent b6f19ac64f
commit e850aa46c4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -1,7 +1,7 @@
const heatfunc = function(pixel){
pixel.gethigh = (elements[pixel.element].tempHigh)
pixel.halftemp = ((20+pixel.gethigh)/2)
if (pixel.start == pixelTicks){
if (!pixel.ogR || !pixel.ogG || !pixel.ogB){
pixel.ogR = parseInt(pixel.color.slice(4, pixel.color.indexOf(',')), 10)
pixel.ogG = parseInt(pixel.color.slice(pixel.color.indexOf(',') + 1, pixel.color.lastIndexOf(',')), 10)
pixel.ogB = parseInt(pixel.color.slice(pixel.color.lastIndexOf(',') + 1, -1), 10)