-
-
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.
Merge pull request #241 from Feu-Secret/tokenmagic-dev-v0.6.2.x
Tokenmagic dev v0.6.2.x
- Loading branch information
Showing
32 changed files
with
2,407 additions
and
293 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { Anime } from '../Anime.js'; | ||
import './proto/FilterProto.js'; | ||
|
||
export class FilterAscii extends PIXI.filters.AsciiFilter { | ||
constructor(params) { | ||
super(); | ||
this.size = 8; | ||
this.zOrder = 310; | ||
this.animated = {}; | ||
this.setTMParams(params); | ||
if (!this.dummy) { | ||
this.anime = new Anime(this); | ||
this.normalizeTMParams(); | ||
} | ||
} | ||
} |
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,23 @@ | ||
import { Anime } from '../Anime.js'; | ||
import './proto/FilterProto.js'; | ||
|
||
export class FilterCRT extends PIXI.filters.CRTFilter { | ||
constructor(params) { | ||
super(); | ||
this.curvature = 1.0; | ||
this.lineWidth = 1.0; | ||
this.lineContrast = 0.25; | ||
this.verticalLine = false; | ||
this.noise = 0.08; | ||
this.noiseSize = 1.0; | ||
this.seed = 0; | ||
this.vignetting = 0; | ||
this.zOrder = 320; | ||
this.animated = {}; | ||
this.setTMParams(params); | ||
if (!this.dummy) { | ||
this.anime = new Anime(this); | ||
this.normalizeTMParams(); | ||
} | ||
} | ||
} |
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,18 @@ | ||
import { Anime } from '../Anime.js'; | ||
import './proto/FilterProto.js'; | ||
|
||
export class FilterDot extends PIXI.filters.DotFilter { | ||
constructor(params) { | ||
super(); | ||
this.scale = 1; | ||
this.angle = 5; | ||
this.grayscale = true | ||
this.zOrder = 330; | ||
this.animated = {}; | ||
this.setTMParams(params); | ||
if (!this.dummy) { | ||
this.anime = new Anime(this); | ||
this.normalizeTMParams(); | ||
} | ||
} | ||
} |
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,66 @@ | ||
import { Anime } from '../Anime.js'; | ||
import './proto/FilterProto.js'; | ||
|
||
export class FilterRGBSplit extends PIXI.filters.RGBSplitFilter { | ||
constructor(params) { | ||
super(); | ||
this.red = new Float32Array([-10, 0]); | ||
this.green = new Float32Array([0, 10]); | ||
this.blue = new Float32Array([0, 0]); | ||
this.zOrder = 340; | ||
this.animated = {}; | ||
this.setTMParams(params); | ||
if (!this.dummy) { | ||
this.anime = new Anime(this); | ||
this.normalizeTMParams(); | ||
} | ||
} | ||
|
||
get redX() { | ||
return this.uniforms.red[0]; | ||
} | ||
|
||
set redX(value) { | ||
this.uniforms.red[0] = value; | ||
} | ||
|
||
get redY() { | ||
return this.uniforms.red[1]; | ||
} | ||
|
||
set redY(value) { | ||
this.uniforms.red[1] = value; | ||
} | ||
|
||
get greenX() { | ||
return this.uniforms.green[0]; | ||
} | ||
|
||
set greenX(value) { | ||
this.uniforms.green[0] = value; | ||
} | ||
|
||
get greenY() { | ||
return this.uniforms.green[1]; | ||
} | ||
|
||
set greenY(value) { | ||
this.uniforms.green[1] = value; | ||
} | ||
|
||
get blueX() { | ||
return this.uniforms.blue[0]; | ||
} | ||
|
||
set blueX(value) { | ||
this.uniforms.blue[0] = value; | ||
} | ||
|
||
get blueY() { | ||
return this.uniforms.blue[1]; | ||
} | ||
|
||
set blueY(value) { | ||
this.uniforms.blue[1] = value; | ||
} | ||
} |
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
Oops, something went wrong.