Realistically, this isn’t going to happen in this codebase.
On every sketch I try to run, I get this error:
Processing.js error on line 112.
TypeError: P.head is undefined
I'm running Firefox 3.6.3 on Linux.4 votes
I haven’t heard any other reports of this recently, so I’m going to close it.
The Processing applet can :
- import libraries,
- make usage of threads,
- faster pixel drawing,
- etc etc.
Also, you can use the ProcessingJS canvas and the Processing applet Java2d/P3D/OpenGL at the same time.4 votes
This is a great idea, but I don’t see myself having the time to implement it. Thanks for the suggestion, though!
User has a very little control over sketch error handling. Of course there are many plugins for different browsers to inspect JS code. But it can be really confusing, especially for beginners, to figure out what is wrong about their code.3 votes
Thanks for the request. Tools for debugging definitely go beyond the scope of what I’ll be doing with Sketchpad. The best that I can do here it to encourage people to install and use Firebug, which is an excellent tool for doing exactly this. When you’re editing a sketch in Sketchpad, there’s always a link directly below the canvas iframe with the link to download Firebug. If you have other ideas for ways/places to encourage use of this, please let me know. I totally agree that good feedback on what’s going wrong is valuable to beginners (and more experienced programmers, too.)
You may have seen this talk: https://vimeo.com/36579366 (Bret Victor - Inventing on Principle). At 2:30 he shows his IDE, which has sliders and color pickers that pop up in the code, and the result is shown immediately on every code change.
The concept of "direct manipulation" has been important in user interfaces, but missing in coding.
I know that there is some compiling needed with processing.js, but I think that something like this would be huge for learning (and using) creative coding.3 votes
I totally agree, but don’t see myself having the time to implement this in Sketchpad. This functionality is incorporated in a new programming environment that was just released, which you’ll definitely appreciate: http://www.khanacademy.org/cs
Can you please explain how to use text in studio sketchpad? I tried uploading a font to the resources but .vlw files are not accepted.3 votes
Processing.js does not support .vlw fonts, and my understanding is that .vlw font support is not planned for the project. There are other ways to work with fonts, though.
Details at: http://processingjs.org/reference/font
Example (w/o preloading) at:
my sketch is working well on Processor but not on this site.
my size(sizeXY,sizeXY) is not being well executed1 vote
Sketchpad requires that the arguments to size be integers, not variables. I know that this isn’t standard, but it is necessary. Apologies.
I’ll defer to the Processing.js developers on this one. I’d recommend posting this question (with a link to your Sketchpad) to the group at:
It seems like shapeMode(CENTER) doesn't work correctly. I'm not sure what exactly happens but when I change it to shapeMode(CORNER) the code seems to run fine again.1 vote
Thanks for catching this. I believe that this is an issue in Processing.js, so I’d encourage you to share this with the Processing.js developer community, probably via the Google Groups mailing list: http://processingjs.org/community
For example, to mark a linenumber where my program must stop working and i have an option to view variables/object/array's/etc. Then a option to continue/step/goto to the line i've marked again.1 vote
Thanks for the request. Tools for debugging definitely go beyond the scope of what I’ll be doing with Sketchpad. I’d encourage you to install the Firebug add-on to Firefox, which may let you do something like this. I do agree that it would be quite useful.
- Don't see your idea?