Add gegl:cell-noise.

This commit is contained in:
Bauke 2022-03-10 18:00:25 +01:00
parent 5c706f289b
commit 0436563959
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
2 changed files with 33 additions and 0 deletions

32
source/gegl/cell-noise.ts Normal file
View File

@ -0,0 +1,32 @@
import {BaseOperation} from './base.js';
export interface CellNoiseParameters {
iterations: number;
palettize: boolean;
rank: number;
scale: number;
seed: number;
shape: number;
}
export class CellNoise extends BaseOperation<CellNoiseParameters> {
public static default: CellNoiseParameters = {
iterations: 1,
palettize: false,
rank: 1,
scale: 1,
seed: 0,
shape: 2,
};
public get default() {
return CellNoise.default;
}
public appendCrop = true;
public name = 'gegl:cell-noise';
constructor(parameters?: Partial<CellNoiseParameters>) {
super({...CellNoise.default, ...parameters});
}
}

View File

@ -1,4 +1,5 @@
export * from './base.js';
export * from './cell-noise.js';
export * from './crop.js';
export * from './focus-blur.js';
export * from './generic.js';