Add gegl:cartoon.
This commit is contained in:
parent
614ced0049
commit
1828a82c82
|
@ -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});
|
||||
}
|
||||
}
|
|
@ -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';
|
||||
|
|
Loading…
Reference in New Issue