cosmetic syntax tweaks
This commit is contained in:
parent
3c40ccb6ce
commit
a9a37f9ad3
1 changed files with 1 additions and 4 deletions
|
@ -152,10 +152,7 @@
|
|||
$render: function () {
|
||||
let frame = this.frame_sequence[this.position]
|
||||
if (frame === undefined) return
|
||||
let x = frame[0]
|
||||
let y = frame[1]
|
||||
let w = frame[2]
|
||||
let h = frame[3]
|
||||
let [x, y, w, h] = frame
|
||||
if (w !== this.width || h !== this.height) this.clear('black')
|
||||
this.tmp_ctx.drawImage(this.image,
|
||||
x, y, w, h,
|
||||
|
|
Loading…
Reference in a new issue