Hi, I want to change my standard display as I find the salinity and WL hard to read - just black will do.
I know I need to change this bit, but what is the syntax for black (if there is a black!)
// Salinity
ReefAngel.LCD.DrawText( COLOR_DARKKHAKI,DefaultBGColor,15,46, "SAL:" );
ReefAngel.LCD.DrawText( COLOR_DARKKHAKI,DefaultBGColor,39,46, ReefAngel.Params.Salinity );
pingSerial();
// ORP
ReefAngel.LCD.DrawText( COLOR_PALEVIOLETRED,DefaultBGColor,75,46, "ORP:" );
ReefAngel.LCD.DrawText( COLOR_PALEVIOLETRED,DefaultBGColor,99,46, ReefAngel.Params.ORP );
pingSerial();
// Water Level
ReefAngel.LCD.DrawText( COLOR_DARKGOLDENROD,DefaultBGColor,75,63, "WL:" );
ReefAngel.LCD.DrawText( COLOR_DARKGOLDENROD,DefaultBGColor,99,63, ReefAngel.WaterLevel.GetLevel() );
pingSerial();
look forward to your help!
Display colours - is there a list of colours available?
Re: Display colours - is there a list of colours available?
Thought that would be the case - is there a list of the colours somewhere?
Re: Display colours - is there a list of colours available?
It's in the file RA_Colors.h
Here is a copy of the contents:
Here is a copy of the contents:
Code: Select all
// Global Colors
#define COLOR_BLACK 0x00
#define COLOR_NAVY 0x02
#define COLOR_BLUE 0x03
#define COLOR_DARKGREEN 0x0C
#define COLOR_GREEN 0x10
#define COLOR_TEAL 0x12
#define COLOR_LIGHT_BLUE 0x13
#define COLOR_DEEPSKYBLUE 0x17
#define COLOR_DARKTURQUOISE 0x1A
#define COLOR_LIME 0x1C
#define COLOR_SPRINGGREEN 0x1D
#define COLOR_MEDIUMSPRINGGREEN 0x1E
#define COLOR_CYAN 0x1F
#define COLOR_MIDNIGHTBLUE 0x25
#define COLOR_DARKSLATEGREY 0x29
#define COLOR_FORESTGREEN 0x30
#define COLOR_SEAGREEN 0x31
#define COLOR_DODGERBLUE 0x33
#define COLOR_LIGHTSEAGREEN 0x36
#define COLOR_LIMEGREEN 0x39
#define COLOR_INDIGO 0x42
#define COLOR_DARKSLATEBLUE 0x4A
#define COLOR_DARKOLIVEGREEN 0x4D
#define COLOR_ROYALBLUE 0x4F
#define COLOR_STEELBLUE 0x52
#define COLOR_MEDIUMSEAGREEN 0x55
#define COLOR_TURQUOISE 0x5A
#define COLOR_SLATEBLUE 0x6A
#define COLOR_DIMGREY 0x6D
#define COLOR_MEDIUMSLATEBLUE 0x6F
#define COLOR_OLIVEDRAB 0x70
#define COLOR_SLATEGREY 0x72
#define COLOR_CORNFLOWERBLUE 0x73
#define COLOR_MEDIUMAQUAMARINE 0x7A
#define COLOR_LAWNGREEN 0x7C
#define COLOR_AQUAMARINE 0x7E
#define COLOR_MAROON 0x80
#define COLOR_PURPLE 0x82
#define COLOR_DARKORCHID 0x86
#define COLOR_BLUEVIOLET 0x87
#define COLOR_SADDLEBROWN 0x88
#define COLOR_SIENNA 0x89
#define COLOR_MEDIUMPURPLE 0x8F
#define COLOR_OLIVE 0x90
#define COLOR_GRAY 0x92
#define COLOR_DARKSEAGREEN 0x96
#define COLOR_YELLOWGREEN 0x99
#define COLOR_SKYBLUE 0x9B
#define COLOR_LIGHTGREEN 0x9E
#define COLOR_BROWN 0xA4
#define COLOR_MEDIUMVIOLETRED 0xA6
#define COLOR_MEDIUMORCHID 0xAA
#define COLOR_DARKGOLDENROD 0xB0
#define COLOR_ROSYBROWN 0xB2
#define COLOR_DARKKHAKI 0xB5
#define COLOR_SILVER 0xB6
#define COLOR_LIGHTSTEELBLUE 0xB7
#define COLOR_POWDERBLUE 0xBB
#define COLOR_GREENYELLOW 0xBD
#define COLOR_PALETURQUOISE 0xBF
#define COLOR_CRIMSON 0xC5
#define COLOR_CHOCOLATE 0xCC
#define COLOR_INDIANRED 0xCD
#define COLOR_PALEVIOLETRED 0xCE
#define COLOR_ORCHID 0xCF
#define COLOR_DARKSALMON 0xD1
#define COLOR_PLUM 0xD3
#define COLOR_GOLDENROD 0xD4
#define COLOR_TAN 0xD6
#define COLOR_THISTLE 0xD7
#define COLOR_LIGHTGRAY 0xDA
#define COLOR_LAVENDER 0xDB
#define COLOR_LIGHTCYAN 0xDF
#define COLOR_RED 0xE0
#define COLOR_MAGENTA 0xE3
#define COLOR_DEEPPINK 0xE6
#define COLOR_ORANGERED 0xE8
#define COLOR_TOMATO 0xED
#define COLOR_HOTPINK 0xEE
#define COLOR_DARKORANGE 0xF0
#define COLOR_SALMON 0xF1
#define COLOR_LIGHTCORAL 0xF2
#define COLOR_VIOLET 0xF3
#define COLOR_ORANGE 0xF4
#define COLOR_SANDYBROWN 0xF5
#define COLOR_PINK 0xF6
#define COLOR_GOLD 0xF8
#define COLOR_KHAKI 0xFA
#define COLOR_ANTIQUEWHITE 0xFB
#define COLOR_YELLOW 0xFC
#define COLOR_LIGHTGOLDENRODYELLOW 0xFE
#define COLOR_WHITE 0xFF
Roberto.
Re: Display colours - is there a list of colours available?
I should also note that it was a user contributed color chart by sjmusic3 a while ago.
https://groups.google.com/forum/?fromgr ... l_r8C7erwJ
You can download the color chart:
https://groups.google.com/group/reefang ... r=0&view=1
https://groups.google.com/forum/?fromgr ... l_r8C7erwJ
You can download the color chart:
https://groups.google.com/group/reefang ... r=0&view=1
Roberto.
Re: Display colours - is there a list of colours available?
thanks Roberto - much appreciated!