Let's bring it all together. Create a new artowrk in p5*js and display it in our New Art City space. You are encouraged to use New Art City's expansive functionality to create an engaging world composed of many different objects composed of textures or images you have made in p5 or from Miss Sammie's Garden.
requirements
You need to use at least one image or video from something you have made in p5.js using save() or saveGif().
You can work in the LOBBY or in your own space. That is up to you. You will have more freedom in your own space. If you made your own space, you need to have a portal from the lobby to your space and to make that clear and visible to visitors.
Examples
function setup(){
createCanvas(400,400);
noLoop();
}
function draw(){
background(220);
fill(255,0,0);
rect(100,100,200,200);
// save(); // unccomment this line to save an image of the canvas every time you run the sketch
}
function mousePressed(){
// save(); // OR! this will save an image of the canvas every time you click on the canvas. Useful if you have an animation and you want to save a specific frame.
}
let x = 200;
let y = 200;
let speed = 1;
function setup(){
createCanvas(400,400);
//saveGif("mySketch.gif", 3); // uncomment this line to save a gif of your sketch. The first argument is the name of the file, the second is the length of the recording in seconds.
}
function draw(){
background(220);
fill(255,0,0);
rect(x,y,50,50);
x+=speed;
}