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
p5 costants seems to be unrecognized #9
Comments
can you post a sample of the code you're running? FYI: the following code is identical to those p5 constants const PI = Math.PI;
module.exports = {
PI: PI,
TAU: PI * 2,
TWO_PI: PI * 2,
HALF_PI: PI / 2,
QUARTER_PI: PI / 4
} |
My concern is with the alignment options, here and example:
Is stuff like |
can you refer me to CENTER and SQUARE in the docs? I'm not familiar with those constants. things like TAU, PI, etc all work within the scope of the sketch function, i.e. function sketch(p) {
console.log(p.HALF_PI);
} the above code would print correctly in your console |
Thanks
Il giorno mar 4 lug 2017 alle ore 01:55 Benjamin Saphier <
notifications@github.com> ha scritto:
can you refer me to CENTER and SQUARE in the docs? I'm not familiar with
those constants. things like TAU, PI, etc all work within the scope of the
sketch function, i.e.
function sketch(p) {
console.log(p.HALF_PI);
}
the above code would print correctly in your console
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#9 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AJns1wX_EUSNFBo48WV8k5InxnKCRylMks5sKX-EgaJpZM4OIcqy>
.
--
Nicola Bertelloni // +39 328 4559247
|
Sorry to bother, I'm trying to use you super-helpful component BUT when I use p5 costants like
PI
orHALF_PI
I recive un error ofundefined
am I the only? there is a way to fix this?The text was updated successfully, but these errors were encountered: