love.graphics.getColor() returns 0
Posted: Thu Oct 03, 2024 7:03 pm
When using love.graphics.getColor() to store the current color in a variable to reset it later in a function, it returns an error where it says that when using love.graphics.setColor I passed a nil value to the function. When looking into this problem with a debugging tool I saw that even if I stored the result of love.graphics.getColor() in a global variable in the main loop of my program and directly setting the color with that variable afterwards it still wouldn't work. For the record I've also set love.graphics.setColor before calling the get function, and it still doesn't work. Please see the attached issue for the problem.
When trying love.graphics.setColor(love.graphics.getColor()), the program actually doesn't crash, but when storing the get output in a variable it just doesn't want to bother.
What is going on???
When trying love.graphics.setColor(love.graphics.getColor()), the program actually doesn't crash, but when storing the get output in a variable it just doesn't want to bother.
What is going on???