https://github.com/pixieditor/folklore
A scripting language for writing PixiEditor Nodes
https://github.com/pixieditor/folklore
Last synced: about 1 year ago
JSON representation
A scripting language for writing PixiEditor Nodes
- Host: GitHub
- URL: https://github.com/pixieditor/folklore
- Owner: PixiEditor
- License: mit
- Created: 2025-07-11T20:44:19.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-07-19T14:01:50.000Z (about 1 year ago)
- Last Synced: 2025-07-19T17:46:22.886Z (about 1 year ago)
- Language: C#
- Size: 49.8 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Folklore is a language that speaks tales.
It follows node-based paradigm, ensures graphics context and is easy to embed.
Each node consists of a set of inputs, outputs and execution logic.
A node supports CPU and GPU executin logic. Folklore compiles into host native code and GPU shaders.
## The goal
Folklore was designed to run PixiEditor Node Graphs outside PixiEditor.
However, it's design is application-agnostic and the aim of the language is to be able to easily create GPU-accelerated graphics without the struggle.
## Folklore node concept
```
input num someNum;
output painter result;
num scale;
// on node execute
void execute()
{
num x = 4;
num y = 10;
scale = x + y;
}
// result draw func
result_paint(gpu_ctx)
{
gpu_ctx.drawCircle(0, 0, scale, scale);
}
```