Add gegl:cartoon.

This commit is contained in:
Bauke 2022-03-10 18:12:16 +01:00
parent 614ced0049
commit 1828a82c82
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
2 changed files with 25 additions and 0 deletions

24
source/gegl/cartoon.ts Normal file
View File

@ -0,0 +1,24 @@
import {BaseOperation} from './base.js';
export interface CartoonParameters {
maskRadius: number;
pctBlack: number;
}
export class Cartoon extends BaseOperation<CartoonParameters> {
public static default: CartoonParameters = {
maskRadius: 7,
pctBlack: 0.2,
};
public get default() {
return Cartoon.default;
}
public appendCrop = false;
public name = 'gegl:cartoon';
constructor(parameters?: Partial<CartoonParameters>) {
super({...Cartoon.default, ...parameters});
}
}

View File

@ -1,4 +1,5 @@
export * from './base.js';
export * from './cartoon.js';
export * from './cell-noise.js';
export * from './crop.js';
export * from './focus-blur.js';