Ok so apparently i overcomplicated it (im not even past highschool forgive me) Here is a better version https://scratch.mit.edu/projects/711422939/ The formula set was actually pretty complex, took me about an hour of me pulling my hair This should fix issues 3D engines will face in turbowarp because it doesn’t turn it into hexadecimal (**using the ((color), join, ()) hacked block as a substitute for 4 rgba values)
Some may have noticed but my engine acts goofy with colors when put into turbo-warp which is a downside of the color hacked block, this essentially fixes it Colors that are in the range 0 — 255 (that’s all thats needed) will not glitch out the formula, be careful with values above