Add gegl:waterpixels.
This commit is contained in:
parent
567134ebf8
commit
d8314f701e
|
@ -14,4 +14,5 @@ export * from './simplex-noise.js';
|
|||
export * from './softglow.js';
|
||||
export * from './stereographic-projection.js';
|
||||
export * from './tile-seamless.js';
|
||||
export * from './waterpixels.js';
|
||||
export * from './waves.js';
|
||||
|
|
|
@ -0,0 +1,28 @@
|
|||
import {BaseOperation} from './base.js';
|
||||
|
||||
export interface WaterpixelsParameters {
|
||||
fill: 'average' | 'random';
|
||||
regularization: number;
|
||||
size: number;
|
||||
smoothness: number;
|
||||
}
|
||||
|
||||
export class Waterpixels extends BaseOperation<WaterpixelsParameters> {
|
||||
public static default: WaterpixelsParameters = {
|
||||
fill: 'average',
|
||||
regularization: 0,
|
||||
size: 32,
|
||||
smoothness: 1,
|
||||
};
|
||||
|
||||
public get default() {
|
||||
return Waterpixels.default;
|
||||
}
|
||||
|
||||
public appendCrop = false;
|
||||
public name = 'gegl:waterpixels';
|
||||
|
||||
constructor(parameters?: Partial<WaterpixelsParameters>) {
|
||||
super({...Waterpixels.default, ...parameters});
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue