Add gegl:noise-pick.
This commit is contained in:
parent
be6a197419
commit
e8301b9ff8
|
@ -11,6 +11,7 @@ export * from './median-blur.js';
|
|||
export * from './mirrors.js';
|
||||
export * from './mosaic.js';
|
||||
export * from './newsprint.js';
|
||||
export * from './noise-pick.js';
|
||||
export * from './plasma.js';
|
||||
export * from './simplex-noise.js';
|
||||
export * from './softglow.js';
|
||||
|
|
|
@ -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});
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue