diff --git a/source/gegl/exports.ts b/source/gegl/exports.ts index a01e863..eeb4791 100644 --- a/source/gegl/exports.ts +++ b/source/gegl/exports.ts @@ -17,6 +17,7 @@ export * from './plasma.js'; export * from './simplex-noise.js'; export * from './softglow.js'; export * from './stereographic-projection.js'; +export * from './tile-glass.js'; export * from './tile-seamless.js'; export * from './waterpixels.js'; export * from './waves.js'; diff --git a/source/gegl/tile-glass.ts b/source/gegl/tile-glass.ts new file mode 100644 index 0000000..08160da --- /dev/null +++ b/source/gegl/tile-glass.ts @@ -0,0 +1,24 @@ +import {BaseOperation} from './base.js'; + +export interface TileGlassParameters { + tileHeight: number; + tileWidth: number; +} + +export class TileGlass extends BaseOperation { + public static default: TileGlassParameters = { + tileHeight: 25, + tileWidth: 25, + }; + + public get default() { + return TileGlass.default; + } + + public appendCrop = false; + public name = 'gegl:tile-glass'; + + constructor(parameters?: Partial) { + super({...TileGlass.default, ...parameters}); + } +}