Add gegl:tile-glass.
This commit is contained in:
parent
3da741a6d1
commit
12ce92208f
|
@ -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';
|
||||||
|
|
|
@ -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});
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue