Hello. Could you please tell me what are the tools, software or other..., mandatory for this course? What are the prerequisites, if any, and if the development of such an activity requires a substantial budget? Thank you so much. Best regards. Sophia
Hello, the course on p5js only requires a computer and a web browser (and an internet connection), the p5js editor being free and free to use. No prerequisites, the course is for beginners, it is not necessary to have done programming before.
1 follower
Can't save output in the off-line version of p5.js 4.3 for Linux
The script:
----------------------
function setup() {
createCanvas(500, 500);
background(0);
}
function draw()
{
fill(0);
stroke(255);
strokeWeight(2);
if ( mouseIsPressed == true)
{
circle(mouseX,mouseY,50,random(100,200));
}
}
function keyPressed()
{
save("export.png");
background(220);
}
------------------------------------
works well on https://editor.p5js.org/ BUT!
If I download at https://processing.org/download Download Processing 4.3 for Linux
to run it off line,
The script doesn’t work.
It does’n’t know
function e.g. “function setup()” but needs “void setup()”
save("prosess-plaatje.png");
gives me following errors:
X11Util.Display: Shutdown (JVM shutdown: true, open (no close attempt): 3/3, reusable (open, marked uncloseable): 0, pending (open in creation order): 3)
X11Util: Open X11 Display Connections: 3
X11Util: Open[0]: NamedX11Display[:0, 0x7fb35862cb30, refCount 1, unCloseable false]
X11Util: Open[1]: NamedX11Display[:0, 0x7fb254012cd0, refCount 1, unCloseable false]
X11Util: Open[2]: NamedX11Display[:0, 0x7fb2540727b0, refCount 1, unCloseable false]
when I fill in a path for the picture I get:
Syntax Error - Incomplete statement or extra code near ‘extraneous input '"/home/michel/prosess-plaatje.png"' expecting {'color', 'boolean', 'byte', 'char', 'double', 'final', 'float', 'int', 'long', 'short', 'var', ')', '@', IDENTIFIER}’?
3 opmerkingen
displayname10070548
Hello. Could you please tell me what are the tools, software or other..., mandatory for this course? What are the prerequisites, if any, and if the development of such an activity requires a substantial budget? Thank you so much. Best regards. Sophia
Origineel weergeven
Origineel verbergen
displayname8884166
Docent PlusHello, the course on p5js only requires a computer and a web browser (and an internet connection), the p5js editor being free and free to use. No prerequisites, the course is for beginners, it is not necessary to have done programming before.
Origineel weergeven
Origineel verbergen
displayname7981656
PlusDifference between https://editor.p5js.org/ and off-line p5js
Difference between https://editor.p5js.org/ and off-line p5js
about a month ago by michel.coetsier · 1 comment
1 follower
Can't save output in the off-line version of p5.js 4.3 for Linux
The script:
----------------------
function setup() {
createCanvas(500, 500);
background(0);
}
function draw()
{
fill(0);
stroke(255);
strokeWeight(2);
if ( mouseIsPressed == true)
{
circle(mouseX,mouseY,50,random(100,200));
}
}
function keyPressed()
{
save("export.png");
background(220);
}
------------------------------------
works well on https://editor.p5js.org/
BUT!
If I download at https://processing.org/download
Download Processing 4.3 for Linux
to run it off line,
The script doesn’t work.
It does’n’t know
function e.g. “function setup()” but needs “void setup()”
save("prosess-plaatje.png");
gives me following errors:
X11Util.Display: Shutdown (JVM shutdown: true, open (no close attempt): 3/3, reusable (open, marked uncloseable): 0, pending (open in creation order): 3)
X11Util: Open X11 Display Connections: 3
X11Util: Open[0]: NamedX11Display[:0, 0x7fb35862cb30, refCount 1, unCloseable false]
X11Util: Open[1]: NamedX11Display[:0, 0x7fb254012cd0, refCount 1, unCloseable false]
X11Util: Open[2]: NamedX11Display[:0, 0x7fb2540727b0, refCount 1, unCloseable false]
when I fill in a path for the picture I get:
Syntax Error - Incomplete statement or extra code near ‘extraneous input '"/home/michel/prosess-plaatje.png"' expecting {'color', 'boolean', 'byte', 'char', 'double', 'final', 'float', 'int', 'long', 'short', 'var', ')', '@', IDENTIFIER}’?
Origineel weergeven
Origineel verbergen
Log in of doe gratis mee om te reageren