-
-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
11a830d
commit 102958c
Showing
34 changed files
with
4,885 additions
and
326 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import { Anime } from "../Anime.js"; | ||
import "./proto/FilterProto.js"; | ||
|
||
export class FilterPixelate extends PIXI.filters.PixelateFilter { | ||
constructor(params) { | ||
super(); | ||
this.enabled = false; | ||
this.animated = {}; | ||
this.sizeX = 5; | ||
this.sizeY = 5; | ||
this.setTMParams(params); | ||
this.anime = new Anime(this); | ||
this.normalizeTMParams(); | ||
} | ||
|
||
//get sizeX() { | ||
// return this.size.x; | ||
//} | ||
|
||
//set sizeX(value) { | ||
// this.size.x = value; | ||
//} | ||
|
||
//get sizeY() { | ||
// return this.size.y; | ||
//} | ||
|
||
//set sizeY(value) { | ||
// this.size.y = value; | ||
//} | ||
|
||
handleTransform() { | ||
this.size.x = this.sizeX * this.placeableImg.parent.worldTransform.a; | ||
this.size.y = this.sizeY * this.placeableImg.parent.worldTransform.a; | ||
} | ||
} |
Oops, something went wrong.