Skip to content

Instantly share code, notes, and snippets.

@forresto
Last active October 7, 2025 13:01
Show Gist options
  • Save forresto/44386bed2213c93d038f3fe987591840 to your computer and use it in GitHub Desktop.
Save forresto/44386bed2213c93d038f3fe987591840 to your computer and use it in GitHub Desktop.
{
"info": {
"title": "moonhance",
"author": "forresto",
"description": "screen the moon onto your blurry moon photo. more info on the moon renders: https://www.val.town/x/forresto/moon-phase/code/README.md ",
"url": "moonhance",
"parents": [
"https://gist.github.com/forresto/44386bed2213c93d038f3fe987591840"
]
},
"nodes": [
{
"id": 1,
"src": "meemoo:ui/button",
"x": 178,
"y": 85,
"w": 242,
"h": 61,
"state": {
"label": "add frame"
}
},
{
"id": 2,
"src": "meemoo:image/cam",
"x": 212,
"y": 261,
"w": 309,
"h": 389,
"state": {
"width": 1200,
"height": 1200,
"fps": 12,
"showOnionskin": false
}
},
{
"id": 4,
"src": "meemoo:image/in",
"x": 229,
"y": 739,
"w": 403.333344,
"h": 408.333344,
"state": {
"url": "https://moon.val.run/moon.jpg"
}
},
{
"id": 5,
"src": "meemoo:image/transform",
"x": 1363,
"y": 260,
"w": 614,
"h": 622,
"state": {
"width": 1200,
"height": 1200,
"scale": 1,
"translateX": "=(x-0.5)*1200",
"translateY": "=(x-0.5)*1200",
"rotate": 0,
"composite": "screen",
"smoothing": "true"
}
},
{
"id": 7,
"src": "meemoo:image/fit",
"x": 1008,
"y": 900,
"w": 200,
"h": 210,
"state": {
"width": 500,
"height": 500
}
},
{
"id": 8,
"src": "meemoo:ui/number",
"x": 697,
"y": 85,
"w": 181,
"h": 105,
"state": {
"value": 420,
"label": "moon size"
}
},
{
"id": 9,
"src": "meemoo:ui/xy",
"x": 686,
"y": 257,
"w": 200,
"h": 210,
"state": {}
}
],
"edges": [
{
"source": [
1,
"bang"
],
"target": [
2,
"send"
]
},
{
"source": [
2,
"image"
],
"target": [
5,
"background"
]
},
{
"source": [
4,
"image"
],
"target": [
7,
"image"
]
},
{
"source": [
8,
"number"
],
"target": [
7,
"width"
]
},
{
"source": [
8,
"number"
],
"target": [
7,
"height"
]
},
{
"source": [
7,
"image"
],
"target": [
5,
"image"
]
},
{
"source": [
9,
"x"
],
"target": [
5,
"translateX"
]
},
{
"source": [
9,
"y"
],
"target": [
5,
"translateY"
]
},
{
"source": [
1,
"bang"
],
"target": [
4,
"send"
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment