Added (ronin) object, renamed animation function to .animate()
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user