Jump to content
You must now use your email address to sign in [click for more info] ×

Implementation of Gradients


Recommended Posts

Just a question for my information that is not based on a special product but more on the used algorithms:

When you have a gradient with a mid point how did you implement the situation when you completely shift the midpoint to one extreme (0% or 100%). Do you say mid point is always the 50% (color/opacity) of the two side values? And what does happen, when this mid point (assumed it's a 50% point) is the same as the 100% point? Since mathematical-wise this would be an undefined situation it's up to your interpretation. Example: You have a gradient from 100% White to 100% Blue. A linear midpoint will be in the middle between those values giving you a 50% Blue. Shifting the 50% Blue midpoint now to the very end of 100% what will the gradient be like? Linear between White and 50% Blue (What I would have guessed but it seems to be implemented differently) or still some kind of curve still reaching 100% at the end (what logicalwise would be incorrect but a lot closer to your implementation).

Just curious .... because it didn't work the way I expected it ...

CRM.png.a048d588572393102ac3cc403bfa8af7.png

 i7-12700KF, 3.60 GHz, 32GB RAM, SSD, NVIDIA GeForce RTX 3070, Wacom Intuos 4 Tablet, Windows 11 Pro - AP, AD and APublisher V1 and V2
https://www.timobierbaum.com

Link to comment
Share on other sites

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.