Skip to content

New node: Color Overlay - #1391

Merged
Keavon merged 19 commits into
masterfrom
overlay-node
Sep 2, 2023
Merged

Keavon merged 19 commits into
masterfrom
overlay-node

Conversation

@dhruv-ahuja

@dhruv-ahuja dhruv-ahuja commented Aug 18, 2023

Copy link
Copy Markdown
Contributor

This PR aims to add the Color Overlay node that will overlay a color on top while preserving the original image's alpha value.

Partly closes #912

@dhruv-ahuja dhruv-ahuja self-assigned this Aug 18, 2023
@github-actions
github-actions Bot temporarily deployed to graphite-dev (Preview) August 18, 2023 19:40 Inactive
@github-actions
github-actions Bot temporarily deployed to graphite-dev (Preview) August 19, 2023 18:25 Inactive
@Keavon Keavon changed the title Implement Color Overlay node New node: Color Overlay Aug 20, 2023
@github-actions
github-actions Bot temporarily deployed to graphite-dev (Preview) August 20, 2023 16:51 Inactive
@github-actions
github-actions Bot temporarily deployed to graphite-dev (Preview) August 21, 2023 17:42 Inactive
@github-actions
github-actions Bot temporarily deployed to graphite-dev (Preview) August 21, 2023 17:47 Inactive
@github-actions
github-actions Bot temporarily deployed to graphite-dev (Preview) August 22, 2023 08:53 Inactive
@github-actions
github-actions Bot temporarily deployed to graphite-dev (Preview) August 22, 2023 09:49 Inactive
@github-actions
github-actions Bot temporarily deployed to graphite-dev (Preview) August 22, 2023 17:19 Inactive
@github-actions
github-actions Bot temporarily deployed to graphite-dev (Preview) August 22, 2023 17:25 Inactive
@github-actions
github-actions Bot requested a deployment to graphite-dev (Preview) August 23, 2023 07:39 Abandoned
@dhruv-ahuja
dhruv-ahuja marked this pull request as ready for review August 23, 2023 13:39
@github-actions
github-actions Bot temporarily deployed to graphite-dev (Preview) August 23, 2023 13:41 Inactive
@dhruv-ahuja
dhruv-ahuja requested a review from Keavon August 23, 2023 13:42
@github-actions
github-actions Bot temporarily deployed to graphite-dev (Preview) August 23, 2023 13:48 Inactive

@0HyperCube 0HyperCube left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code looks good.

Comment thread node-graph/gcore/src/raster/adjustments.rs Outdated
@github-actions
github-actions Bot temporarily deployed to graphite-dev (Preview) August 24, 2023 17:35 Inactive
Comment thread node-graph/gcore/src/raster/adjustments.rs Outdated
Comment thread node-graph/gcore/src/raster/adjustments.rs Outdated
@github-actions
github-actions Bot temporarily deployed to graphite-dev (Preview) August 24, 2023 20:05 Inactive
@github-actions
github-actions Bot temporarily deployed to graphite-dev (Preview) August 25, 2023 08:01 Inactive
@github-actions
github-actions Bot temporarily deployed to graphite-dev (Preview) August 25, 2023 09:06 Inactive
@github-actions
github-actions Bot requested a deployment to graphite-dev (Preview) August 27, 2023 13:07 Abandoned
@github-actions
github-actions Bot temporarily deployed to graphite-dev (Preview) August 28, 2023 17:19 Inactive
@github-actions
github-actions Bot temporarily deployed to graphite-dev (Preview) August 29, 2023 20:47 Inactive
@Keavon
Keavon force-pushed the master branch 4 times, most recently from 961e007 to 314ce05 Compare August 29, 2023 23:18
@github-actions
github-actions Bot temporarily deployed to graphite-dev (Preview) September 2, 2023 09:16 Inactive
@Keavon
Keavon merged commit a5126dd into master Sep 2, 2023
@Keavon
Keavon deleted the overlay-node branch September 2, 2023 09:22
Keavon added a commit that referenced this pull request Sep 2, 2023
* [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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tracking Issue: New nodes

4 participants