Jump to content
DarkClown

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 ...


iCore i7-3770, 3.50GHz, 32GB RAM, SSD, NVIDIA GeForce GTX 1660 Ti, Windows 10 Pro - AP, AD and APublisher latest final & beta
http://www.timobierbaum.com

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×

Important Information

These are the Terms of Use you will be asked to agree to if you join the forum. | 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.