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
12
use crate::gpu::blend_mode::BlendModeRegistration;

pub fn register() -> BlendModeRegistration {
    BlendModeRegistration {
        type_id: "soft_light",
        display_name: "Soft Light",
        category: "Contrast",
        gpu_value: 9,
        // pd_soft_light: Photoshop variant, Krita KoCompositeOpFunctions.h:513–529.
        wgsl_math: "Cs = pd_soft_light(fg.rgb, bg.rgb);",
    }
}