Add gegl:tile-glass.

This commit is contained in:
Bauke 2022-03-11 22:11:50 +01:00
parent 3da741a6d1
commit 12ce92208f
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
2 changed files with 25 additions and 0 deletions

View File

@ -17,6 +17,7 @@ export * from './plasma.js';
export * from './simplex-noise.js'; export * from './simplex-noise.js';
export * from './softglow.js'; export * from './softglow.js';
export * from './stereographic-projection.js'; export * from './stereographic-projection.js';
export * from './tile-glass.js';
export * from './tile-seamless.js'; export * from './tile-seamless.js';
export * from './waterpixels.js'; export * from './waterpixels.js';
export * from './waves.js'; export * from './waves.js';

24
source/gegl/tile-glass.ts Normal file
View File

@ -0,0 +1,24 @@
import {BaseOperation} from './base.js';
export interface TileGlassParameters {
tileHeight: number;
tileWidth: number;
}
export class TileGlass extends BaseOperation<TileGlassParameters> {
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<TileGlassParameters>) {
super({...TileGlass.default, ...parameters});
}
}