Profile Picture

Plotting Color Scheme

Posted By Teddy Lambropoulos 14 Years Ago
Author
Message
Nevron Support
Posted 14 Years Ago
View Quick Profile
Supreme Being

Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)Supreme Being (4,435 reputation)

Group: Forum Members
Last Active: Last Week
Posts: 3,054, Visits: 4,009

Hi Teddy,

What is the color scheme we're talking about? - can you provide more information - it may be the build color palettes, the surface color palette etc. As for the conversion to grayscale - you can easily convert a color to grayscale using:

/// <summary>
/// Converts the color to its grayscale equivalent.
/// </summary>
/// <param name="color"></param>
/// <returns></returns>
public static Color ConvertToGrayScale(Color color)
{
  int intensity = (color.R + color.G + color.B) / 3;
  if (intensity > 255)
    intensity = 255;

  return Color.FromArgb(color.A, intensity, intensity, intensity);
}



Best Regards,
Nevron Support Team



Teddy Lambropoulos
Posted 14 Years Ago
View Quick Profile
Junior Member

Junior Member (20 reputation)Junior Member (20 reputation)Junior Member (20 reputation)Junior Member (20 reputation)Junior Member (20 reputation)Junior Member (20 reputation)Junior Member (20 reputation)Junior Member (20 reputation)Junior Member (20 reputation)

Group: Forum Members
Last Active: 11 Years Ago
Posts: 20, Visits: 1

Hi,

I have a 3D plot that I have plotted using a normal color scale going from red to blue with 8 different color steps. If I wanted to make this plot in greyscale, for example, how would I do so? Is there a webpage with an actual color representation of each color available in Nevron? Do I need to hardcode each color in for each of the 8 steps? Or is there any easier way to do so?

Best regards,

Teddy





Similar Topics


Reading This Topic