Added (ronin) object, renamed animation function to .animate()

This commit is contained in:
Devine Lu Linvega
2019-07-17 09:21:17 +09:00
parent 6b77402544
commit 1a7b1c53d7
6 changed files with 39 additions and 26 deletions

View File

@@ -21,6 +21,10 @@ function Ronin () {
this.surface = new Surface(this)
this.library = new Library(this)
// Parameters
this.always = false
this.install = function (host = document.body) {
this._wrapper = document.createElement('div')
this._wrapper.id = 'wrapper'
@@ -56,6 +60,11 @@ function Ronin () {
}
this.animate = (b = true) => {
this.always = b
this.commander.run()
}
// Zoom
this.modZoom = function (mod = 0, set = false) {