-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Update Image Reference Examples on p5js.org to ES6 #3387
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
Comments
I’m planning to work on this issue. I do have a question though. It's part best practice and part beginner friendliness. @mlarghydracept @lmccart Should I use arrow notation for named functions? (like |
Disregard previous question. I made the changes but I'm having problems passing the sample-linter ( I'll dig into this problem later when I have more time but in the mean time if anyone has any pointers that would be helpful. Error when trying to commit:
Error from
Note: checked log and it has no extra information. |
try doing a i notice you're on windows. do you have some global git line-ending change enforced? |
fixed with #3404 |
Update the Image section of the p5js reference to ES6. This will entail updating all of the examples that fall under
@module Image
.As a step forward in the transition to ES6 all of the reference examples on p5js.org should be updated to use ES6 standard. This will often mean simply switching 'var' to 'let' or in some cases using es6 classes where applicable.
There are tons of resources online for learning about ES6. Here is an interactive guide that covers the biggest features.
The text was updated successfully, but these errors were encountered: