This commit is contained in:
2019-01-02 19:16:16 +01:00
commit e76aafc35a
34 changed files with 13596 additions and 0 deletions

36
ui/graph.js Normal file
View File

@@ -0,0 +1,36 @@
import * as nodes from '../src/nodes';
import {sampleImage, getStream} from './helpers';
const resize = new nodes.Resize({
width: 1000,
height: 1000,
method: 'cover'
});
const brightnessContrast = new nodes.BrightnessContrast({})
const hsv = new nodes.HSV({})
const sepia = new nodes.Sepia({})
const compose = new nodes.Compose({
width: 1200,
height: 1800,
});
compose.in.fgX.value = 100;
compose.in.fgY.value = 100;
compose.in.bg.value = sampleImage(1200, 1800);
brightnessContrast.in.image.connect(resize.out.image);
hsv.in.image.connect(brightnessContrast.out.image);
sepia.in.image.connect(hsv.out.image);
compose.in.fg.connect(sepia.out.image);
getStream((video) => resize.in.image.value = video);
export default [
resize,
brightnessContrast,
hsv,
sepia,
compose,
];