Replace Generic with properly implemented versions.

This commit is contained in:
Bauke 2022-03-10 18:34:26 +01:00
parent d8314f701e
commit 44b1dcc331
Signed by: Bauke
GPG Key ID: C1C0F29952BCF558
4 changed files with 41 additions and 21 deletions

View File

@ -1,4 +1,13 @@
import {Crop, Generic, Mirrors, Plasma} from './gegl/exports.js'; import {
Cartoon,
Crop,
MedianBlur,
Mirrors,
Mosaic,
Plasma,
Waterpixels,
Waves,
} from './gegl/exports.js';
import Project from './project.js'; import Project from './project.js';
const [width, height] = [1920, 1080]; const [width, height] = [1920, 1080];
@ -13,22 +22,22 @@ const project: Project = {
turbulence: 1, turbulence: 1,
width, width,
}), }),
new Generic('gegl:mosaic', { new Mosaic({
colorVariation: 1, colorVariation: 1,
tileHeight: 5, tileHeight: 5,
tileNeatness: 1, tileNeatness: 1,
tileSize: 116.53, tileSize: 116.53,
tileSurface: 'true', tileSurface: true,
tileType: 'triangles', tileType: 'triangles',
}), }),
new Generic('gegl:waves', { new Waves({
amplitude: 2.9, amplitude: 2.9,
clamp: 'true', clamp: true,
samplerType: 'cubic', samplerType: 'cubic',
}), }),
new Generic('gegl:waves', { new Waves({
amplitude: 17.3, amplitude: 17.3,
clamp: 'true', clamp: true,
samplerType: 'cubic', samplerType: 'cubic',
}), }),
new Mirrors({ new Mirrors({
@ -36,9 +45,9 @@ const project: Project = {
oY: 0.353, oY: 0.353,
nSegs: 2, nSegs: 2,
}), }),
new Generic('gegl:cartoon'), new Cartoon(),
new Crop({height, width}), new Crop({height, width}),
new Generic('gegl:waterpixels', { new Waterpixels({
fill: 'average', fill: 'average',
size: 32, size: 32,
smoothness: 1, smoothness: 1,
@ -49,7 +58,7 @@ const project: Project = {
nSegs: 5, nSegs: 5,
rAngle: 342, rAngle: 342,
}), }),
new Generic('gegl:median-blur'), new MedianBlur(),
], ],
resetAlpha: false, resetAlpha: false,
resolution: { resolution: {

View File

@ -1,9 +1,10 @@
import { import {
Crop, Crop,
Generic, DiffractionPatterns,
FocusBlur, FocusBlur,
Newsprint, Newsprint,
StereographicProjection, StereographicProjection,
TileSeamless,
} from './gegl/exports.js'; } from './gegl/exports.js';
import Project from './project.js'; import Project from './project.js';
@ -13,12 +14,12 @@ const project: Project = {
createInputImage: false, createInputImage: false,
name: '2022-03-08', name: '2022-03-08',
operations: [ operations: [
new Generic('gegl:diffraction-patterns', { new DiffractionPatterns({
height, height,
width, width,
}), }),
new Crop({height, width}), new Crop({height, width}),
new Generic('gegl:tile-seamless'), new TileSeamless(),
new StereographicProjection(), new StereographicProjection(),
new Newsprint({ new Newsprint({
colorModel: 'cmyk', colorModel: 'cmyk',

View File

@ -1,4 +1,14 @@
import {Crop, FocusBlur, Generic, Mirrors, Newsprint} from './gegl/exports.js'; import {
Crop,
FocusBlur,
Generic,
MedianBlur,
Mirrors,
Newsprint,
TileSeamless,
Waterpixels,
Waves,
} from './gegl/exports.js';
import Project from './project.js'; import Project from './project.js';
const [width, height] = [1920, 1080]; const [width, height] = [1920, 1080];
@ -9,21 +19,21 @@ const project: Project = {
operations: [ operations: [
new Generic('gegl:maze'), new Generic('gegl:maze'),
new Generic('gegl:tile-glass'), new Generic('gegl:tile-glass'),
new Generic('gegl:waterpixels'), new Waterpixels(),
new Newsprint({ new Newsprint({
angle2: -55.4, angle2: -55.4,
angle3: 60.77, angle3: 60.77,
angle4: 103.55, angle4: 103.55,
colorModel: 'rgb', colorModel: 'rgb',
}), }),
new Generic('gegl:waves', { new Waves({
amplitude: 5.9, amplitude: 5.9,
clamp: true, clamp: true,
}), }),
new Crop({height, width}), new Crop({height, width}),
new Generic('gegl:oilify'), new Generic('gegl:oilify'),
new Generic('gegl:tile-seamless'), new TileSeamless(),
new Generic('gegl:median-blur', { new MedianBlur({
percentile: 2.35, percentile: 2.35,
}), }),
new Mirrors({ new Mirrors({

View File

@ -1,4 +1,4 @@
import {Crop, Generic, Newsprint} from './gegl/exports.js'; import {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];
@ -7,7 +7,7 @@ const project: Project = {
createInputImage: false, createInputImage: false,
name: '2022-03-10', name: '2022-03-10',
operations: [ operations: [
new Generic('gegl:cell-noise', { new CellNoise({
scale: 0.5, scale: 0.5,
seed: 2_762_328_325, seed: 2_762_328_325,
}), }),
@ -22,7 +22,7 @@ const project: Project = {
period4: 135.1, period4: 135.1,
turbulence: 0.454, turbulence: 0.454,
}), }),
new Generic('gegl:waves', { new Waves({
amplitude: 67.6, amplitude: 67.6,
clamp: true, clamp: true,
period: 514.8, period: 514.8,