Hi,
The title says it all, I’d like to know if calling colors with hexadecimal annotations is faster than the usual color(255, 0, 0)
for instance.
Thanks
Hi,
The title says it all, I’d like to know if calling colors with hexadecimal annotations is faster than the usual color(255, 0, 0)
for instance.
Thanks
The best way to answer questions like this is to try it out. Create a sketch that uses a million colors in different notations, and add some logic that records how long it takes. I’d be curious to hear about your results, so make sure you report back!
A literal value is faster than any function or even an expression.
Especially considering that color() in particular isn’t very performant!
Thanks @GoToLoop
I suspected the color() function to be slower but wasn’t certain. Now I am.