Add gegl:softglow.
This commit is contained in:
parent
54e8b17f3b
commit
d2f2c2c3e5
|
@ -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';
|
||||
|
|
|
@ -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});
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue