{"version":3,"file":"filter-ascii.mjs","sources":["../src/AsciiFilter.ts"],"sourcesContent":["import { vertex } from '@tools/fragments';\nimport fragment from './ascii.frag';\nimport { Filter } from '@pixi/core';\n\n// TODO (cengler) - The Y is flipped in this shader for some reason.\n\n// @author Vico @vicocotea\n// original shader : https://www.shadertoy.com/view/lssGDj by @movAX13h\n\n/**\n * An ASCII filter.<br>\n * ![original](../tools/screenshots/dist/original.png)![filter](../tools/screenshots/dist/ascii.png)\n *\n * @class\n * @extends PIXI.Filter\n * @see {@link https://www.npmjs.com/package/@pixi/filter-ascii|@pixi/filter-ascii}\n * @see {@link https://www.npmjs.com/package/pixi-filters|pixi-filters}\n */\nclass AsciiFilter extends Filter\n{\n    /**\n     * @param {number} [size=8] - Size of the font\n     */\n    constructor(size = 8)\n    {\n        super(vertex, fragment);\n        this.size = size;\n    }\n\n    /**\n     * The pixel size used by the filter.\n     */\n    get size(): number\n    {\n        return this.uniforms.pixelSize;\n    }\n    set size(value: number)\n    {\n        this.uniforms.pixelSize = value;\n    }\n}\n\nexport { AsciiFilter };\n\n"],"names":["AsciiFilter","Filter","size","vertex","fragment","value"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkBA,MAAMA,UAAoBC,CAC1B,CAII,YAAYC,EAAO,EACnB,CACI,MAAMC,EAAQC,CAAQ,EACtB,KAAK,KAAOF,CAChB,CAKA,IAAI,MACJ,CACI,OAAO,KAAK,SAAS,SACzB,CACA,IAAI,KAAKG,EACT,CACI,KAAK,SAAS,UAAYA,CAC9B,CACJ"}