Page 1 of 1

custom colors / more colors

Posted: Wed Apr 27, 2022 6:38 pm
by mbueno0
I tried searching for
more colors
using the forum search tool, but was denied because my search terms were too common.

As a feature, I would like for the user to be able to define user-specified colors using RGB values when they create plot features in Arduino code.
(Note, I realize the user interface allows changing the RGB values of line data).

Right now (I'm new so I'm not sure), we are limited to the following colors when we specify something like this example from MegunoLink:

Code: Select all

MyPlot.SetSeriesProperties(F("Voltage"), F("r:s4"));
// we can only specify 'r', 'g',... for the color
These are the colors allowed when specifying them in code.

Code: Select all

  enum Colors 
  { 
    Red = 'r',
    Green = 'g', 
    Blue = 'b',
    Yellow = 'y',
    Black = 'k',
    Magenta = 'm',
    Cyan = 'c',
    White = 'w',
  };
It would be handy to specify colors using RGB values.

Thanks! :)

Re: custom colors / more colors

Posted: Wed Apr 27, 2022 7:29 pm
by philr
https://www.megunolink.com/documentatio ... #SendData2

You can specify an arbitrary rgb value. See here for more info.
Phil