Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8788041
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T22:03:14+00:00 2026-06-13T22:03:14+00:00

Possible Duplicate: Color Interpolation Between 3 Colors in .NET I have been trying to

  • 0

Possible Duplicate:
Color Interpolation Between 3 Colors in .NET

I have been trying to get a categories list of colors using C#:

Red:
255, 69, 0
255, 99, 71
etc.. 

Green:
0, 250, 154
143, 188, 139
etc...

So far I have been pretty unsuccessful. Ideally, what I’d like is a way to supply two HEX refs or RGB refs and get a list back of say 10 colors between those two references. Is this possible in C#?

EDIT

Found this… http://meyerweb.com/eric/tools/color-blend/ just converting the js to c# now. Will post when its done.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T22:03:16+00:00Added an answer on June 13, 2026 at 10:03 pm

    I am not aware of built-in function which would help you, but you can do it yourself.

    As long as color can be defined using 3 numbers (R,G,B), you can take two colors:

    (R1,G1,B1)
    (R2,G2,B2)
    

    Then divide diff between pairs and produce numbers by intervals.

    int numberOfIntervals = 10; //or change to whatever you want.
    var interval_R = (R2 - R1) / numberOfIntervals;
    var interval_G = (G2 - G1) / numberOfIntervals;
    var interval_B = (B2 - B1) / numberOfIntervals;
    
    var current_R = R1;
    var current_G = G1;
    var current_B = B1;
    
    for (var i = 0; i <= numberOfIntervals; i++)
    {
        var color = Color.FromRGB(current_R, current_G, current_B);
        //do something with color.
    
        //increment.
        current_R += interval_R;
        current_G += interval_G;
        current_B += interval_B;
    }
    

    I haven’t compiled the code, but you get the idea.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: Difference between Color.red and Color.RED I have seen that the Java class
Possible Duplicate: How to get Color from Hex color code using .NET? I want
Possible Duplicate: android color between two colors, based on percentage? How to find all
Possible Duplicate: how do I add windows phone system colors to icon using expression
Possible Duplicate: Javascript color gradient I have color one (let's say yellow) and color
Possible Duplicate: Are there any cons to using color names in place of color
Possible Duplicate: How does Windows change Aero Glass color? using c# how do you
Possible Duplicate: Vista/7: How to get glass color? Since Windows Vista it is possible
Possible Duplicate: change colors of table with javascript for this problem im trying to
Possible Duplicate: Random Color generator in Javascript I have some data I'd like to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.