Khan / live-editor

A browser-based live coding environment.
Other
761 stars 184 forks source link

Error with fill/colorMode combo #261

Open pamelafox opened 9 years ago

pamelafox commented 9 years ago

colorMode(HSB, 360); fill(-1, -1, -1);

gets: "Cannot read property '0' of undefined"

Maybe we can have PJS throw a nicer error than that or not have an error, depending on what the issue is with that code (haven't investigated yet).

kevinbarabash commented 9 years ago

We should probably have some sort of standard message for args that are out of bounds. This might require changes to processing.js.