I have to use int because the color keyword only works in PIDE. Anyways, the compiler has a problem with this - it gives a Syntax error on those tokens. What can I do to make this work?
Being an amateur, I tend to spaghettit-noodle my code. However, I know I can get around this by using classes and other OOP principles. However, when I create a new file for every class my directory structure gets messy. (Actually, goes out the window.) I know how to organize assets such as sound, image, and other data files in folders, but how can I organize code into folders? When I click "New Tab", it by default puts the new file in the parent directory.
I'm working on a desktop application, and I want to allow the user to select an image from their computer and display it in the window. I don't think display code will be any problem, I have already implemented a drag-and-drop interface for moving PImages around a canvas.
Anyways, I installed G4P and I've been looking around in there, but I don't see anything that I know will let me open some kind of a file dialog box. Is this part of the Windows API, or is there a wrapper somewhere I can use? Or, if I were to write the thing myself ( not a problem ) where would I start?
I was dinking around like I always do, and (after a long series of confusticating refactorments) I ended up with an error that doesn't seem to go away - when i try to run the sketch, the Setup window comes into focus, specifically, the last bracket - the closing bracket of the void setup() function. The error is "Unexpected Token: a"
I know this is considered bad style, but I deleted the entire contents of the setup() function. Everything from opening bracket to closing was gone. And I ran the sketch, and got the same error. (Do not worry. I easily undid my deletion)
What's going on? I think at this point, it's no longer my fault but I'm certainly willing to accept that it is. Maybe I will update my IDE.
How do you speed up the display refresh rate? I seem to recall being able to lower it, and even set it to a certain number of FPS, but I can't remember how.