Add gegl:cell-noise.
This commit is contained in:
parent
5c706f289b
commit
0436563959
|
@ -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});
|
||||
}
|
||||
}
|
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue