Cosine-Proportional Transitions

When using a cline in a visual design, one may choose from an indefinite number of continuous functions to create a smooth gradient of colors within an area. The most commonly used is a linear function, for example:

1, 2, 3, 4, …

or:

9.75, 9.50, 9.25, 9.00, 8.75 …

In other words, the chosen characteristic (spectrum, brightness, vividness) at each color-point in the cline changes by the same amount at each step.

However, in some types of transition, the linear progression does not look right in the final image. One of the most common instances of this problem is the boundary zone between two distinct colors; for example, the transition from shadow to sunlight. In this case, a progression proportional to the values of the cosine function is more appropriate.

Below is a table comparing examples for the two types of numeric progressions. Each successive functional value descends from twenty to zero. The first one descends in a standard linear progression, one unit at a time. The second descends in steps proportional to values produced by the cosine function. Notice that the two progressions meet at the beginning (20.00), middle (10.00), and end (00.00):

Linear
 
Cosine-
Proportional
 
(00.00, 20.00)(00.00, 20.00)
(01.00, 19.00)(01.00, 19.88)
(02.00, 18.00)(02.00, 19.51)
(03.00, 17.00)(03.00, 18.91)
(04.00, 16.00)(04.00, 18.09)
(05.00, 15.00)(05.00, 17.07)
(06.00, 14.00)(06.00, 15.88)
(07.00, 13.00)(07.00, 14.54)
(08.00, 12.00)(08.00, 13.09)
(09.00, 11.00)(09.00, 11.56)
(10.00, 10.00)(10.00, 10.00)
(11.00, 09.00)(11.00, 08.44)
(12.00, 08.00)(12.00, 06.91)
(13.00, 07.00)(13.00, 05.46)
(14.00, 06.00)(14.00, 04.12)
(15.00, 05.00)(15.00, 02.93)
(16.00, 04.00)(16.00, 01.91)
(17.00, 03.00)(17.00, 01.09)
(18.00, 02.00)(18.00, 00.49)
(19.00, 01.00)(19.00, 00.12)
(20.00, 00.00)(20.00, 00.00)

 
The following graphics provide a visual representation of those same two functions:

To see how the two functions differ in their representation of a transition from one color area to another, compare these two graphics:

When the linear function is used, the eye perceives the beginning or end of the transition as an abrupt drop-off from one color to the other, rather than a smooth gradient. However, when the cosine-proportional function is used, the result is a continuous transition whose beginning and end are not perceptible.

Below is a magnified version of the cosine-proportional transition between the same two colors:

Return to main Chromatism page Return to Clines

Cosine-Proportional Transitions

Last Updated January 27th, 2025
Web Page by Ned May
Contact: phoenix <at> chromatism <dot> net
URL http://chromatism.net/phoenix/cosprop.htm
All images and text are ©2017 - 2025 by Ned May unless otherwise noted. All rights reserved.

Soli Deo gloria