Hi!
I tried searching "How to change the colour of a car based on the user's input" on the forum but unsurprisingly no results :)
Instead of hard coding the RGB values of my object on the backend, I want to get a bit creative and have my program ask the user what colour they'd like the object to be.
Instead of hard coding the RGB values of my object on the backend, I want to get a bit creative and have my program ask the user what colour they'd like the object to be.
I know how to get the typing on the screen, its just that turning that text into a system variable like fill(r,g,b) is something I'm trying to get my head around.
Is this even possible? Could I have a box in the
void draw() function that interprets and passes the text (if valid) into changing the object colour?
Thanks in advance :)
1