-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Function with in a function #46
Comments
This is absolutely possible, and we will be getting to it in a week or so!
|
you can write the function outside, lets say tbe draw() as its own function
like bounce() for instance. then inside the draw function you call it by
siting bounce() jusg remember it will loop with the draw each time the draw
function loops
…On Oct 12, 2017 5:43 AM, "Michael Musick" ***@***.***> wrote:
This is absolutely possible, and we will be getting to it in a week or so!
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#46 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AeFz7G8hRSb9FT6hXXY3KUFUogY7C6TGks5srftlgaJpZM4P2izo>
.
|
There is a lot going on in here...take your time and read this thoroughly. You actually already are putting functions within functions. All your functions used (like fill, shapes, noCursor, etc) are living in other functions, like setup and draw.
|
Does anyone know if a function can be placed inside a function. I want to make it so that if a cursor is on the right side of the window and pressed it would change the color of the right side of the window. This would use a mousePressed function and an if/else statement.
The text was updated successfully, but these errors were encountered: