Replace more uses of Generic.

This commit is contained in:
Bauke 2022-03-11 22:14:20 +01:00
parent 12ce92208f
commit d5f87ffad0
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
3 changed files with 12 additions and 15 deletions

View File

@ -1,10 +1,12 @@
import { import {
Crop, Crop,
FocusBlur, FocusBlur,
Generic, Maze,
MedianBlur, MedianBlur,
Mirrors, Mirrors,
Newsprint, Newsprint,
Oilify,
TileGlass,
TileSeamless, TileSeamless,
Waterpixels, Waterpixels,
Waves, Waves,
@ -17,8 +19,8 @@ const project: Project = {
createInputImage: true, createInputImage: true,
name: '2022-03-09', name: '2022-03-09',
operations: [ operations: [
new Generic('gegl:maze'), new Maze(),
new Generic('gegl:tile-glass'), new TileGlass(),
new Waterpixels(), new Waterpixels(),
new Newsprint({ new Newsprint({
angle2: -55.4, angle2: -55.4,
@ -31,7 +33,7 @@ const project: Project = {
clamp: true, clamp: true,
}), }),
new Crop({height, width}), new Crop({height, width}),
new Generic('gegl:oilify'), new Oilify(),
new TileSeamless(), new TileSeamless(),
new MedianBlur({ new MedianBlur({
percentile: 2.35, percentile: 2.35,

View File

@ -1,10 +1,4 @@
import { import {Bloom, CellNoise, Crop, Newsprint, Waves} from '../../gegl/exports.js';
CellNoise,
Crop,
Generic,
Newsprint,
Waves,
} from '../../gegl/exports.js';
import Project from '../../project.js'; import Project from '../../project.js';
const [width, height] = [3840, 2160]; const [width, height] = [3840, 2160];
@ -38,7 +32,7 @@ const project: Project = {
y: -0.75, y: -0.75,
}), }),
new Crop({height, width}), new Crop({height, width}),
new Generic('gegl:bloom', { new Bloom({
radius: 20, radius: 20,
softness: 57, softness: 57,
strength: 90, strength: 90,

View File

@ -1,8 +1,9 @@
import { import {
Bloom,
Cartoon, Cartoon,
Crop, Crop,
Generic,
Newsprint, Newsprint,
NoisePick,
Plasma, Plasma,
Waterpixels, Waterpixels,
} from '../../gegl/exports.js'; } from '../../gegl/exports.js';
@ -41,12 +42,12 @@ const project: Project = {
period4: 30, period4: 30,
turbulence: 0.9, turbulence: 0.9,
}), }),
new Generic('gegl:bloom', { new Bloom({
radius: 7.48, radius: 7.48,
strength: 115.29, strength: 115.29,
threshold: 65.88, threshold: 65.88,
}), }),
new Generic('gegl:noise-pick', { new NoisePick({
repeat: 5, repeat: 5,
seed: 0, seed: 0,
}), }),