- Draw your art in
drawArt()
inindex.js
using p5js functions. - Draw on graphics object
pg
which has a size of cs x cs. - Only static images are supported.
- Make a sketch that renders fast for the best user experience.
- Do not override the p5js
setup
ordraw
function, everything has to be done indrawArt
. - You dont have to worry about window resizing, do not override the
windowResized
function. - Don't use any source of randomness other than the one described below.
- Don't edit any files other than
index.js
andindex.html
. They will be reset to default before deployment. - If you use any libraries, include all source files in the project. Do not load any dependencies from the internet.
IMPORTANT: Every single part of the output must ONLY depend on the values
m0
..m4
. Otherwise the pieces will change after minting.
pg
: graphics object to draw oncs
: canvas sizem0
,m1
,m2
,m3
,m4
slider values
If you need randomness, you can use the functions randomM0()
..randomM4()
these functions provide randomness seeded by the respective values m0
..m4
.
NOTE: You can set the
randomSeed
variable inindex.html
to any string you like in order to distinguish your randomness from the one of other projects.
In order to test your project with the EditART platform, start a local development server of your project and paste its address in the sandbox and you can start playing around with the sliders.
Is you have a finished project or any questions, send me a DM on twitter @pifragile. Looking forward to hearing from you!