mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-16 06:38:03 +08:00
New node: Color Overlay (#1391)
* [wip]feat: implement Color Overlay node's base logic * [wip]feat: attempt implementing node * feat: implement naive node logic - this needs to accommodate coloring the image * [wip]feat: attempt implementing ColorFillNode * fix: color fill node implementation path * Simplify document node definition * [wip]feat: implement ColorFillNode - correct the node implementation logic -[wip]use node in Color Overlay node network * Remove secondary image input * chore: perform cleanup and minor optimization - rename ColorFillNode node to Color Fill - remove unneeded clone method call * refactor: optimize node logic and hide optional params * fix: color fill implementation - fix broken color fill implementation logic - add alpha multiplication data to the image * Fix colour overlay node * Blend mode * chore: remove unused import * Debug logging for overlay * Use premultiplied alpha * Comment out logging * Code review nits * Remove color debug logging --------- Co-authored-by: Dennis Kobert <dennis@kobert.dev> Co-authored-by: 0hypercube <0hypercube@gmail.com> Co-authored-by: Keavon Chambers <keavon@keavon.com>
This commit is contained in:
@@ -428,6 +428,8 @@ fn node_registry() -> HashMap<NodeIdentifier, HashMap<NodeIOTypes, NodeConstruct
|
||||
raster_node!(graphene_core::raster::LevelsNode<_, _, _, _, _>, params: [f32, f32, f32, f32, f32]),
|
||||
register_node!(graphene_std::image_segmentation::ImageSegmentationNode<_>, input: ImageFrame<Color>, params: [ImageFrame<Color>]),
|
||||
register_node!(graphene_core::raster::IndexNode<_>, input: Vec<ImageFrame<Color>>, params: [u32]),
|
||||
register_node!(graphene_core::raster::adjustments::ColorFillNode<_>, input: ImageFrame<Color>, params: [Color]),
|
||||
register_node!(graphene_core::raster::adjustments::ColorOverlayNode<_, _, _>, input: ImageFrame<Color>, params: [Color, BlendMode, f32]),
|
||||
vec![(
|
||||
NodeIdentifier::new("graphene_core::raster::BlendNode<_, _, _, _>"),
|
||||
|args| {
|
||||
|
||||
Reference in New Issue
Block a user