4 releases

0.1.3 Mar 6, 2024
0.1.2 Mar 4, 2024
0.1.1 Mar 4, 2024
0.1.0 Feb 24, 2024

#335 in Graphics APIs

Download history 140/week @ 2024-02-24 364/week @ 2024-03-02 55/week @ 2024-03-09 13/week @ 2024-03-16 28/week @ 2024-03-30 7/week @ 2024-04-06

52 downloads per month

Apache-2.0

9.5MB
403 lines

Finneon 🐠

Finneon is a simple rust image post processing library.

#[derive(Debug, Clone)]
struct Block {
    texture: Sampler,
}

fn fragment(
    FragColor(color): FragColor,
    Uv(uv): Uv,
    Uniforms(block): Uniforms<Block>
) -> Vec4 {
    let sample = block.texture.sample_u8(uv);
    sample.lerp(color, uv.y)
}

The api is a modern take on shader apis, using the extractor pattern. It allows for quick prototying and easy to read code.

The api is simpler than any graphics api but offers worse performance as all the work is done in parallel on the cpu.

Examples

Head over to the examples folder for a showcase of what you can do with finneon.

Dependencies

~17MB
~176K SLoC