Here's a screenshot:
Alpha software! Dungeons! Dragons! Raaaaaa!
Cmd + Enter on Mac (or
Ctrl + Enter on Windows) to evaluate either the current selection, or all code (if none is selected).
If you declare a function called
setup() it will be called whenever code in the textarea is evaluated, or when
Reset is clicked (this behaviour will probably change in the future once we have implemented global variable plucking).
Similarly, a function called
loop() will be called at a rate of approximately 60FPS after the
Start button is clicked.
The canvas context is available via the variable
ctx. The canvas size can be retrieved using
There are a bunch of other Processing-style functions added to sandbox context. Many of these are documented here.
Alternatively, Spark can be installed with
npm via the
npm install -g sparkjs-launcher sparkjs
node-webkit - instructions here.
Next, check out the repo:
$ git clone https://github.com/jaz303/spark.git
Then the modules:
cd spark npm install
Finally, open the current directory in
node-webkit by dragging the folder onto it, or by invoking it from the command line:
Packaging is only supported on Mac for now - if you have some spare time scripts for other systems would be much appreciated!
node-webkitand move its
.appfile to the
resdirectory underneath the Spark project root. The version I am currently using is toxygen's 10.6-compatible build.
$ make clean osx
Besides code, there are other ways to help out!
We need packaging scripts for Windows and Linux. Nothing tricky here, just a bit of time required.
The keen-eyed amongst you may have noticed I borrowed the UI theme wholesale from Ableton, a high-end audio pakcage. I'm not proud of this but it in the absence of design skills it was the easiest way to get something decent looking. If anyone has some time to spare to make the UI unique please ping me.
We need an icon!
Immediate things to fix/improve:
loop()stuff - must investigate further.
Beyond this, there are a ton of other more interesting features planned; this early demo is just laying the groundwork for some much more interesting/awesome features.
Spark is written by Jason Frame (@jaz303).
Released under the MIT License.