Comments on: mmirho – Project 2 – Section A https://courses.ideate.cmu.edu/15-104/f2017/2017/09/08/11372/ Professor Roger B. Dannenberg • Fall 2017 • Introduction to Computing for Creative Practice Sat, 09 Dec 2017 05:10:49 +0000 hourly 1 https://wordpress.org/?v=4.8.24 By: Roger Dannenberg https://courses.ideate.cmu.edu/15-104/f2017/2017/09/08/11372/#comment-5 Sat, 09 Sep 2017 02:14:15 +0000 https://courses.ideate.cmu.edu/15-104/f2017/?p=11372#comment-5 Your program initialized var mouth2 = PI – 0.2;
This really should work, but as discussed in class today, you cannot use p5js definitions to initialize global variables. Well, really I said you cannot use p5js *functions* and didn’t mention that *variables* like PI are off limits as well. That’s right, PI is a p5js term, not a general JavaScript term. I fixed your code in the process of testing, and since this is a *very* tricky thing that even worked as a local file (the restrictions seem only to apply in WordPress posts and pages), I think you’ve suffered enough.
In the future, you should be aware that a 640-wide canvas does not fully display as a post on WordPress.

]]>