Skip to content
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

cannot use imageMode() etc. #40

Closed
3pin opened this issue Feb 14, 2020 · 1 comment
Closed

cannot use imageMode() etc. #40

3pin opened this issue Feb 14, 2020 · 1 comment

Comments

@3pin
Copy link

3pin commented Feb 14, 2020

When using a sketch in a REACT Webapp (via react-p5-wrapper), when I try to use:
p.imageMode(CENTER)
I get the error:
'CENTER' is not defined

Any suggestions?

@3pin 3pin closed this as completed Feb 14, 2020
@3pin
Copy link
Author

3pin commented Feb 14, 2020

I realised that I have to specify the constant thus:
p.imageMode(p.CENTER)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant