Skip to content

Added new methods to gradients, and customization options to fractals that use them#678

Merged
cameronwhite merged 7 commits into
PintaProject:masterfrom
Lehonti:feature/gradient_inversion
Jan 13, 2024
Merged

Added new methods to gradients, and customization options to fractals that use them#678
cameronwhite merged 7 commits into
PintaProject:masterfrom
Lehonti:feature/gradient_inversion

Conversation

@Lehonti

@Lehonti Lehonti commented Jan 10, 2024

Copy link
Copy Markdown
Contributor

I think the current selection of gradients for the fractals could be a bit dull, so what if we make it wider by adding customization options?

In the first commit, I added the option of reversing the gradient (turning the gradient upside down):

reversed_colors_mandelbrot

At some point I added the option of rotating the hue of the colors in the gradient. However, in the last commit I removed the HueRotation property in the EffectData. because the user can just use Adjustments > Hue / Saturation; but if you think that keeping that property is a good idea, you could drop the last commit.

colorrotatedmandlebrot

@Lehonti Lehonti changed the title Added support for reversing gradients Added new methods to gradients, and customization options to fractals that use them Jan 10, 2024
On a second thourhg, adding `init` is a bad idea, as the values have to go through a check, otherwise we can get invalid values
The user can adjust the hue later
@cameronwhite

Copy link
Copy Markdown
Member

👍 I think just leaving it at allowing the user to reverse the gradient seems good. Can the Rotate methods also be removed to avoid introducing unused code?

@Lehonti

Lehonti commented Jan 11, 2024

Copy link
Copy Markdown
Contributor Author

Yeah, no problem, they have been removed now

@cameronwhite cameronwhite merged commit da3a2c2 into PintaProject:master Jan 13, 2024
@Lehonti Lehonti deleted the feature/gradient_inversion branch January 13, 2024 02:15
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.

2 participants