mnse
July 12, 2022, 5:36am
3
Hi @asymmetric ,
What do you mean by …
…and…
P5js is javascript so you can edit your sketch with any editor and you can even easily run it locally with any common webbrowser?
Or you can use processing PDE, install p5js mode and use that.
Regarding your first post I would recommend to re-install the VSCode with newest version and try to install p5.vscode afterwards (had also such issues in the past which was solved that way)
Cheers
— mnse
2 Likes
mnse:
Or you can use processing PDE, install p5js mode and use that.
Regarding your first post I would recommend to re-install the VSCode with newest version and try to install p5.vscode afterwards (had also such issues in the past which was solved that way)
Thank you @mnse , I am currently using processing 3 for java, but I would like to use javascript as well. Where do I download processing PDE? I tried downloading from the p5.js website but recieved an error message.
I have several books on processing java and p5.js javascript and I am now realizing the difference between the compilers. Is that correct? I can’t code javascript into my processing 3 desktop correct?
Thank you, I will try to re-install VSCode and then proceed to the p5.vscode extension download!
Cheers to you for always helping me!
I appreciate your help.
Candace
This is what my processing compiler looks like at the moment. And here is a list of books that I am studying at the moment:
Processing, second edition: A Programming Handbook for Visual Designers and Artists (The MIT Press) second edition
The Nature of Code: Simulating Natural Systems with Processing
Generative Design: Visualize, Program, and Create with Processing
mnse
July 12, 2022, 8:00pm
6
Since beginning of 2022 p5js mode has switch to processing 4 (PDE)
So you need to download and install it.
Afterwards you can install the p5js mode via contribution manager on tab modes from inside the PDE.
Cheers
— mnse
1 Like
Oh, I see now! I’m just running older versions of processing and VSCode!
I just downloaded the newest version of VSCode and it fixed the error that I was running into!
With that being said, do I need both proceessing 4 (PDE) and VSCode?
mnse
July 12, 2022, 8:06pm
8
No! One is enough …
But for processing java I personally would recommend to upgrade to processing 4 (PDE)
Cheers
— mnse
PS: didn’t know one can mark it’s own answer as solution !?
1 Like
mnse
July 12, 2022, 8:15pm
10
Yeah! But I believe that it will be the future and almost works well.
1 Like
I just downloaded processing 4 (PDE) and ran into the following error message.
Should I just stick to VSCode with p5.js extentions?
mnse
July 12, 2022, 8:19pm
12
Yes! For p5js VSCode is very handy.
Do you know why I am getting this error for processing 4?
mnse
July 12, 2022, 8:23pm
14
Sorry! Missed that you are using mac … Forget Processing 4 for now…
Cheers
— mnse
Okay, ill stick to processing 3.5.4, p5.js browser, and VSCode for now!
Processing 4 (PDE) only works on Windows? I selected the Mac download.
You are so helpful!!! Thank you!
mnse
July 12, 2022, 8:30pm
16
Usually it should also run on mac, but reality tells another story…
On Windows it works quite well, depending on my own experience with it!
I need a new computer huh? lol! I’m working on it! Thank you for your help again
mnse:
… it will be the future…
When that future comes I’ll be installing P4 too.
But for now we should learn from the past.
All Processing major versions had problems even months after a stable release!
I can’t help you b/c P4 won’t touch my computer until it’s proven stable.
2 Likes
What are your favorite compilers for java and javascript? Do you prefer VSCode and the browser?
I use both Java & Python modes on the Processing’s IDE (PDE).
For online sketches, I use any text editor for simple 1s and VSC for complex 1s.
Then I publish them online on sites like OpenProcessing.org , Glitch.com or GitHub.com , etc. depending on the complexity.
The “secret” for online sketches is to know how to create an “index.html” for it:
Bl.ocks.org/GoSubRoutine
1 Like
Wow, thank you for all of the new resources on how to see more code examples as well as how to share code! I’m going to check out these links that you provided further in a moment!
I have another question, can you code javascript pj.5s in the Python mode on Processing 3.5.4, or are you referring to Processing 4 (PDE)?
If you wanna code the p5js flavor using Python syntax take a look at pyp5js:
However it requires we install Python in order to compile the sketch into JS.
Or have a look at the sketch I did in PyScript:
Python is now a full browser client language w/ PyScript:
So again I couldn’t resist converting my previous RapydScript sketch “Self Avoiding Walk II” to PyScript.
I’ve also added Python type hints to the whole code:
All 3 JS Processing flavors run on PyScript just like CoffeeScript & RapydScript previous versions:
You can click here to download the full sketch so you can edit & run it somewhere else.
And go to the link below to view it fullscreen:
https://Self-Avoiding-Walk-II-PyScrip…
1 Like