Add gegl:noise-pick.

This commit is contained in:
Bauke 2022-03-11 22:08:55 +01:00
parent be6a197419
commit e8301b9ff8
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
2 changed files with 27 additions and 0 deletions

View File

@ -11,6 +11,7 @@ export * from './median-blur.js';
export * from './mirrors.js'; export * from './mirrors.js';
export * from './mosaic.js'; export * from './mosaic.js';
export * from './newsprint.js'; export * from './newsprint.js';
export * from './noise-pick.js';
export * from './plasma.js'; export * from './plasma.js';
export * from './simplex-noise.js'; export * from './simplex-noise.js';
export * from './softglow.js'; export * from './softglow.js';

26
source/gegl/noise-pick.ts Normal file
View File

@ -0,0 +1,26 @@
import {BaseOperation} from './base.js';
export interface NoisePickParameters {
pctRandom: number;
repeat: number;
seed: number;
}
export class NoisePick extends BaseOperation<NoisePickParameters> {
public static default: NoisePickParameters = {
pctRandom: 50,
repeat: 1,
seed: 0,
};
public get default() {
return NoisePick.default;
}
public appendCrop = true;
public name = 'gegl:noise-pick';
constructor(parameters?: Partial<NoisePickParameters>) {
super({...NoisePick.default, ...parameters});
}
}