darkly 0.5.0

A GPU-native paint engine on wgpu: brushes, layers, blend modes, masks, selections, and undo.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::gpu::blend_mode::BlendModeRegistration;

pub fn register() -> BlendModeRegistration {
    BlendModeRegistration {
        type_id: "linear_dodge",
        display_name: "Linear Dodge (Add)",
        category: "Lighten",
        gpu_value: 7,
        wgsl_math: "Cs = clamp(fg.rgb + bg.rgb, vec3f(0.0), vec3f(1.0));",
    }
}