Blockland Forums > Modification Help
Color Translation
Port:
--- Quote from: Ipquarx on May 03, 2012, 01:48:43 PM ---Exactly. Using decimals takes up resources that torque could be using for more important things
--- End quote ---
Integers can't store decimals. You're talking about floating point values.
--- Quote from: Ipquarx on May 03, 2012, 01:48:43 PM ---Thats what I just said.
--- End quote ---
Err, what?
--- Quote from: Ipquarx on May 03, 2012, 01:48:43 PM ---It was a continued explination, hence the "and."
--- End quote ---
I wouldn't be posting in this topic if I didn't know what binary, bytes and RGB was.
Nexus:
--- Quote from: jes00 on May 03, 2012, 08:07:51 AM ---So I should use .setColor instead of .color = ?
--- End quote ---
That is my recommendation, yes
.setcolor() has some built in error handling, and it is generally good to use a built in function to set a variable if provided.