GithubHelp home page GithubHelp logo

p5's Introduction

p5

https://p5js.org/

Running

Start a Python SimpleHTTPServer at the top level directory

py -m http.server

Visit localhost:8000/index.html

Rendering

  • run the script with CCapture code enabled
  • hit save after at least 3 seconds are recorded to download all the frames
  • run create_canvas.sh

create_canvas.sh

Usage: ./create_canvas.sh [canvas_name] [frames_dir] [output_dir]

The script does a few things:

  1. turn frames into an mp4
  2. cut the clip to the first 3s
  3. concat a reversed version of that clip to the end (6s total)
  4. prepares one mp4 for canvas upload and one for twitter upload

Spotify Canvas Requirements

  • 3-8s
  • 9:16 aspect ratio
  • MP4 format

TODO

  • dynamic way to turn on the capture, so it's not running in the background
    • like a button next to save to start / stop easier. maybe it changes some boolean "record" flag
  • way to pass a script to a general capture script
  • use node.js http server
  • create_canvas.sh but create_short.sh (constant loop instead of reverse)
  • dynamic sketch based on some input (audio, chords, key, hash, etc.)

p5's People

Contributors

itmejoby avatar

Watchers

 avatar

p5's Issues

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.