Canvas Live Editor
Ein Demo Programm zur Programmierung von Javascript in der Laufzeit. Während der Eingabe wird der Code kompilierte und dann angezeigt.
Keine Ahnung wie das gemacht wurde, ich finde es aber spitze.
https://dl.dropboxusercontent.com/u/153833319/projects/canvas-editor/index.html#
Top RunTime Compiler / Just-in-Time Compiler
Der beispiel Code ist sehr einfach gehalten:
/**
* Here is the main canvas drawing context and
* any other global vars
*/
var ctx;
var charArray;
/**
* Place any initialisation logic here!
*/
Demo.initialise = function() {
ctx = Demo.context;
charArray = [];
ctx.font = '10px sans-serif';
};
Auto-Run Pause
|