Coder Social home page Coder Social logo

editarttemplate's Introduction

EditART Template Instructions

Create your art

Do:

  • Draw your art in drawArt() in index.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.

Don't:

  • Do not override the p5js setup or draw function, everything has to be done in drawArt.
  • 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 and index.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.

Available variables

  • pg: graphics object to draw on
  • cs: canvas size
  • m0, m1, m2, m3, m4 slider values

Randomness

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 in index.html to any string you like in order to distinguish your randomness from the one of other projects.

Testing

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.

Project ready or questions?

Is you have a finished project or any questions, send me a DM on twitter @pifragile. Looking forward to hearing from you!

editarttemplate's People

Contributors

pifragile avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.