Add gegl:oilify.

This commit is contained in:
Bauke 2022-03-11 22:10:19 +01:00
parent e8301b9ff8
commit 3da741a6d1
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
2 changed files with 29 additions and 0 deletions

View File

@ -12,6 +12,7 @@ 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 './noise-pick.js';
export * from './oilify.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';

28
source/gegl/oilify.ts Normal file
View File

@ -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});
}
}