Add gegl:bloom.

This commit is contained in:
Bauke 2022-03-11 22:01:43 +01:00
parent 916c4c1305
commit 2d1de9e34b
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
2 changed files with 31 additions and 0 deletions

30
source/gegl/bloom.ts Normal file
View File

@ -0,0 +1,30 @@
import {BaseOperation} from './base.js';
export interface BloomParameters {
limitExposure: boolean;
radius: number;
softness: number;
strength: number;
threshold: number;
}
export class Bloom extends BaseOperation<BloomParameters> {
public static default: BloomParameters = {
limitExposure: false,
radius: 10,
softness: 25,
strength: 50,
threshold: 50,
};
public get default() {
return Bloom.default;
}
public appendCrop = false;
public name = 'gegl:bloom';
constructor(parameters?: Partial<BloomParameters>) {
super({...Bloom.default, ...parameters});
}
}

View File

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