fritzo / livecoder.net Goto Github PK
View Code? Open in Web Editor NEWA simple browser environment for coding live javascript.
Home Page: http://livecoder.net
A simple browser environment for coding live javascript.
Home Page: http://livecoder.net
LiveCoder.net = A simple browser environment for coding live javascript Language Extensions vars._ A place to put persistent data once._ A place to put functions that run once always._ A place to put functions that run continuously cached(f)(-) Caches value of f applied to JSON'able arguments (useful for expensive tasks like audio synthesis) clear() Clears vars, once, always, cache, setTimeouts, canvas using(url) Loads & caches a remote script (useful for libraries) Coding Tools help(-) Looks inside any object/function (great for hacking :) print(-), Print messages to log area error(-) assert(-,-) assert(value,message) throws an error if value is false (see help(assert) for details & other assertions) TODO(-) TODO(message) is a placeholder for unfinished code Graphics - using HTML5 canvas draw A 2D canvas context (see examples) mouseX, Current mouse coordinates in pixels mouseY Audio - using HTML5 audio play(-) Plays a uri from encodeWav/tone/noise/speech or the web encodeWav(-) Encodes an array of [-1,1]-valued samples to a wav uri tone(-), Synthesize sound and encode to wav uri noise(-) (see examples or try help(-) for details) sampleRate, Constants in kHz (all time units are ms or kHz) middleC Speech - using espeak/speak.js using('speech.js'); // load speech library first say(text) Speaks text out loud speech(text) Synthesizes voice and encodes to a wav uri Keyboard Shortcuts F1 Show language help F1 F2 Show keyboard shortcuts F2 Ctrl-C Reset state, same as clear() Cmd-C Escape Pause/continue compiling Escape (useful for atomic edits) Ctrl-F Start searching Cmd-F Ctrl-G Find next Cmd-G Shift-Ctrl-G Find previous Shift-Cmd-G Shift-Ctrl-F Replace Cmd-Option-F Shift-Ctrl-R Replace all Shift-Cmd-Option-F Ctrl-Space Autocomplete Cmd-Space Ctrl-S Save code locally Cmd-S Ctrl-O Open local gallery Cmd-O
If you accidentally type something that causes the update functions to take too much time it becomes very hard to clear the active code, due to automatic saving and slow responsiveness. It might be a good idea to set some time-limit to the functions, if they run over the time, then stop running them.
Web App: http://glsl.heroku.com/
Git Repo: https://github.com/mrdoob/glsl-sandbox
Kassen writes:
Both rhythmical examples, the "simple" and the "Markov" one crash my
browser after -say- 20 seconds or so. I was testing with Chromium and
am running Linux. I could give you more specs or run tests if you tell
me what you need. Chromium said "Oh, Snap".
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.