Skip to content

Instantly share code, notes, and snippets.

@forresto
Last active February 5, 2019 18:22
Show Gist options
  • Save forresto/a698d412371da04d4a65b07c49b0e5dc to your computer and use it in GitHub Desktop.
Save forresto/a698d412371da04d4a65b07c49b0e5dc to your computer and use it in GitHub Desktop.
meemoo app: light pen 2
{
"info": {
"author": "meemoo",
"title": "light-pen-2",
"description": "using blend mode instead of luma key",
"parents": [
"https://gist.github.com/e344bd8390c3d7c78955c03634147bcd"
],
"url": "light-pen-2"
},
"nodes": [
{
"id": 0,
"src": "meemoo:image/cam",
"x": 146,
"y": 287,
"w": 294,
"h": 383,
"state": {
"width": 500,
"height": 500,
"fps": 30
}
},
{
"id": 3,
"src": "meemoo:ui/button",
"x": 557,
"y": 99,
"w": 136,
"h": 62,
"state": {
"label": "clear",
"key": "esc"
}
},
{
"id": 4,
"src": "meemoo:image/transform",
"x": 709,
"y": 487,
"w": 319,
"h": 321,
"state": {
"width": 500,
"height": 500,
"scale": 1,
"translateX": 0,
"translateY": 0,
"rotate": 0,
"composite": "lighten",
"smoothing": "true"
}
},
{
"id": 6,
"src": "meemoo:ui/button",
"x": 148,
"y": 122,
"w": 152,
"h": 72,
"state": {
"label": "start camera",
"key": "s"
}
},
{
"id": 7,
"src": "meemoo:file/webm",
"x": 887,
"y": 900,
"w": 200,
"h": 210,
"state": {
"fps": 30
}
},
{
"id": 8,
"src": "meemoo:image/transform",
"x": 1247,
"y": 492,
"w": 319,
"h": 321,
"state": {
"width": 500,
"height": 500,
"scale": 1,
"translateX": 0,
"translateY": 0,
"rotate": 0,
"composite": "",
"smoothing": "true"
}
},
{
"id": 9,
"src": "meemoo:image/rectangle",
"x": 984,
"y": 194,
"w": 200,
"h": 210,
"state": {
"x": 0,
"y": 0,
"w": 500,
"h": 500,
"stroke": "black",
"strokewidth": 1,
"fill": "hsv(0, 0%, 0%)"
}
},
{
"id": 10,
"src": "meemoo:ui/button",
"x": 202,
"y": 738,
"w": 152,
"h": 72,
"state": {
"label": "start recording",
"key": "o"
}
},
{
"id": 11,
"src": "meemoo:ui/button",
"x": 192,
"y": 869,
"w": 152,
"h": 72,
"state": {
"label": "stop recording",
"key": "p"
}
}
],
"edges": [
{
"source": [
6,
"bang"
],
"target": [
0,
"start"
]
},
{
"source": [
0,
"stream"
],
"target": [
4,
"image"
]
},
{
"source": [
4,
"image"
],
"target": [
8,
"image"
]
},
{
"source": [
8,
"image"
],
"target": [
4,
"background"
]
},
{
"source": [
9,
"image"
],
"target": [
4,
"image"
]
},
{
"source": [
9,
"image"
],
"target": [
4,
"background"
]
},
{
"source": [
3,
"bang"
],
"target": [
9,
"send"
]
},
{
"source": [
4,
"image"
],
"target": [
7,
"image"
]
},
{
"source": [
10,
"bang"
],
"target": [
7,
"start"
]
},
{
"source": [
11,
"bang"
],
"target": [
7,
"stop"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment