add (animate)

This commit is contained in:
Quentin Leonetti
2019-07-17 23:00:21 +02:00
parent 77eb301d3e
commit 521ece7937
3 changed files with 12 additions and 5 deletions

View File

@@ -1,4 +1,5 @@
function Library (ronin) {
console.log(ronin)
this.open = async (path) => {
return ronin.surface.open(path)
}
@@ -326,12 +327,15 @@ function Library (ronin) {
return a === b
}
// Client
this.ronin = ronin
// Livecoding
this.time = Date.now
this.animate = (b = true) => ronin.animate(b)
// javascript interop
this.js = window
// Client
this.ronin = ronin
}