Simon Mourier's Avatar
Simon Mourier's blog (1807 answers on StackOverflow) about Microsoft technologies C#, C/C++, .NET, WinRT, WinUI3, AOT, P/Invoke, COM, Interop, DirectX, Direct2D, Windows, ...
  • 🔎︎ Search
  • Categories
  • Archives
  • About Me
  • algorithms
  • c#
  • graphics

Algorithm: How do I fade from Red to Green via Yellow using RGB values?

Jun 18, 2011 See the question and my original answer on StackOverflow

You need to use the HSB or HSV color representation instead, and play with the H ("Hue") value. See this other SO question for transformation betweeen RGB and HSB/HSV: How to change RGB color to HSV?

  • SmoBlog © 2010-2026 Simon Mourier. All rights reserved.
  • Privacy & Terms