Add gegl:oilify.
This commit is contained in:
parent
e8301b9ff8
commit
3da741a6d1
|
@ -12,6 +12,7 @@ export * from './mirrors.js';
|
|||
export * from './mosaic.js';
|
||||
export * from './newsprint.js';
|
||||
export * from './noise-pick.js';
|
||||
export * from './oilify.js';
|
||||
export * from './plasma.js';
|
||||
export * from './simplex-noise.js';
|
||||
export * from './softglow.js';
|
||||
|
|
|
@ -0,0 +1,28 @@
|
|||
import {BaseOperation} from './base.js';
|
||||
|
||||
export interface OilifyParameters {
|
||||
exponent: number;
|
||||
intensities: number;
|
||||
maskRadius: number;
|
||||
useInten: boolean;
|
||||
}
|
||||
|
||||
export class Oilify extends BaseOperation<OilifyParameters> {
|
||||
public static default: OilifyParameters = {
|
||||
exponent: 8,
|
||||
intensities: 128,
|
||||
maskRadius: 4,
|
||||
useInten: true,
|
||||
};
|
||||
|
||||
public get default() {
|
||||
return Oilify.default;
|
||||
}
|
||||
|
||||
public appendCrop = false;
|
||||
public name = 'gegl:oilify';
|
||||
|
||||
constructor(parameters?: Partial<OilifyParameters>) {
|
||||
super({...Oilify.default, ...parameters});
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue