Add gegl:bloom.
This commit is contained in:
parent
916c4c1305
commit
2d1de9e34b
|
@ -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});
|
||||||
|
}
|
||||||
|
}
|
|
@ -1,4 +1,5 @@
|
||||||
export * from './base.js';
|
export * from './base.js';
|
||||||
|
export * from './bloom.js';
|
||||||
export * from './cartoon.js';
|
export * from './cartoon.js';
|
||||||
export * from './cell-noise.js';
|
export * from './cell-noise.js';
|
||||||
export * from './crop.js';
|
export * from './crop.js';
|
||||||
|
|
Loading…
Reference in New Issue