Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hamoid/p5livecoding
JavaScript code for live coding using the LightTable code editor
https://github.com/hamoid/p5livecoding
Last synced: about 11 hours ago
JSON representation
JavaScript code for live coding using the LightTable code editor
- Host: GitHub
- URL: https://github.com/hamoid/p5livecoding
- Owner: hamoid
- Created: 2013-05-10T19:49:19.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-06-26T00:48:34.000Z (over 11 years ago)
- Last Synced: 2024-04-15T14:14:58.900Z (7 months ago)
- Language: JavaScript
- Size: 176 KB
- Stars: 1
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
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.