DarkClown Posted June 6, 2019 Share Posted June 6, 2019 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 ... 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 V2https://www.timobierbaum.com Link to comment Share on other sites More sharing options...
Recommended Posts