aboutsummaryrefslogtreecommitdiffstats
path: root/app/twisted.moon
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2018-10-22 13:36:24 +0000
committers-ol <s-ol@users.noreply.github.com>2018-10-22 13:43:09 +0000
commit72829c68ec50c432b38fefcb28613c75657fb2bb (patch)
tree40e2c827d76bfea70d1df0e0dee678016d3b1702 /app/twisted.moon
parentwebm encoding for canvasapps (diff)
downloadmmm-72829c68ec50c432b38fefcb28613c75657fb2bb.tar.gz
mmm-72829c68ec50c432b38fefcb28613c75657fb2bb.zip
CanvasApp whammy.js webm exporting
Diffstat (limited to 'app/twisted.moon')
-rw-r--r--app/twisted.moon6
1 files changed, 2 insertions, 4 deletions
diff --git a/app/twisted.moon b/app/twisted.moon
index 325d408..0ab30b1 100644
--- a/app/twisted.moon
+++ b/app/twisted.moon
@@ -9,7 +9,7 @@ on_client ->
height: 400
length: math.pi * 4
new: =>
- super!
+ super true
@background = {Math.random!, Math.random!/3+.2, Math.random!/4}
hue = Math.random!
@shades = setmetatable {}, __index: (key) =>
@@ -35,6 +35,4 @@ on_client ->
draw i
draw 1
- twisted = TwistedDemo!
- document.body\appendChild twisted.canvas
- twisted\start!
+ document.body\appendChild TwistedDemo!.node