Add gegl:softglow.

This commit is contained in:
Bauke 2022-03-08 13:30:57 +01:00
parent 54e8b17f3b
commit d2f2c2c3e5
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
2 changed files with 27 additions and 0 deletions

View File

@ -4,3 +4,4 @@ export * from './generic.js';
export * from './mirrors.js';
export * from './newsprint.js';
export * from './simplex-noise.js';
export * from './softglow.js';

26
source/gegl/softglow.ts Normal file
View File

@ -0,0 +1,26 @@
import {BaseOperation} from './base.js';
export interface SoftglowParameters {
brightness: number;
glowRadius: number;
sharpness: number;
}
export class Softglow extends BaseOperation<SoftglowParameters> {
public static default: SoftglowParameters = {
brightness: 0.3,
glowRadius: 10,
sharpness: 0.85,
};
public get default() {
return Softglow.default;
}
public appendCrop = false;
public name = 'gegl:softglow';
constructor(parameters?: Partial<SoftglowParameters>) {
super({...Softglow.default, ...parameters});
}
}