Giter Site home page Giter Site logo

p5livecoding's Introduction

p5liveCoding

Live coding with Processing.js and the LightTable editor. http://www.lighttable.com/

Documentation is currently missing, and without documentation there's not much you can do with these files. I plan to fix this soon, and make some video tutorials to explain what I'm trying to do and how far did I get.

Very briefly, this is an attempt to do live coding using Processing.js. I chose PJS because I know Processing well, but this should work with other JavaScript graphic libraries.

base/ is the minimal code to load in Chrome or Firefox. You should have the console open. There you can reference the Processing API using the p variable. You can type p.ellipse(p.width, p.height, 100, 100) for example. Remeber to add p. to every call to the API. It's very easy to forget that. This is a very primitive approach, and one can not get very far by typing drawing commands in the console.

attempt01/ is my first attempt to create a layer system to allow adding and removing things from the stage. This is already better than raw drawing, because if you store functions as layers, you can later delete them, which is a good thing. You can still run this on Chrome or Firefox.

attempt02/ should be run in LightTable, because it allows evaluating chunks of code multiple times by pressing CTRL+ENTER. The included FADE function allows to fade properties (a color for example) instead of changing them suddenly. This starts to become interesting.

attempt03/ is the most developed version. It includes some JavaScript tools inside p5liveCoding.js, and code to be evaluated during a performance inside live.js. The tools include a layer system, an event looper, some number generators, an envelope system, and the variable fader. These tools are an attempt to develop a language that could allow me to be more expressive live coding. Raw drawing is very limited, but having tools to delay events, repeat them, fade properties, etc. could be enough to write code live and make something good enough.

I'll give more details soon.

p5livecoding's People

Contributors

hamoid avatar

Stargazers

 avatar Tobias Treppmann avatar

Watchers

 avatar Callum Macdonald avatar James Cloos avatar Tobias Treppmann avatar  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.