custom colors / more colors

Support forum for MegunoLink
Post Reply
Posts: 1
Joined: Wed Apr 27, 2022 6:12 pm

Wed Apr 27, 2022 6:38 pm

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! :)
Posts: 430
Joined: Mon May 26, 2014 10:58 am

Wed Apr 27, 2022 7:29 pm ... #SendData2

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