Dodge and Burn brush modes - #193
Open
rezaularif wants to merge 1 commit into
Open
rezaularif wants to merge 1 commit into
rezaularif wants to merge 1 commit into
Conversation
Two more Brush modes beside Paint and Erase, as Photoshop's Dodge and Burn tools: Dodge lightens and Burn darkens the pixels under the stroke. Range picks the shadows, midtones or highlights, each fading out smoothly into the other tones, and Exposure (0–100%) sets how far they move. Size, hardness, opacity, smoothing, the selection and Shift-click lines work as they do for Paint, and overlapping dabs build up to the stroke's strength and never past it. Alpha is left alone, so transparent pixels stay transparent. A mask as the target is refused with a message, as they tone a layer's pixels, and a mask shown on the layer doesn't limit them. A stroke that changes nothing, or one at 0% exposure, leaves no undo step. Closes robbietilton#169.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds Dodge and Burn as Brush modes: Dodge lightens and Burn darkens the pixels under the stroke. Closes #169.
What's added
How to use
Tests
DodgeBurnTests. The full suite passes, and the project format is unchanged.