private static void addColor(string key, int Red, int Green, int Blue) { if (colorDictionary.ContainsKey(key)) { colorDictionary[key] = new QColor(Red, Green, Blue); } else { colorDictionary.Add(key, new QColor(Red, Green, Blue)); } }
public static QColor GetColor(string Key, QColor Default) { QColor c; if (colorDictionary.TryGetValue(Key, out c)) { return(c); } else { return(Default); } }
public QPen(QColor Color) : this(Color.Red, Color.Green, Color.Blue) { }
public static QColor ExtraDarken(QColor Input) { return(new QColor(Input.Red / 3, Input.Green / 3, Input.Blue / 3)); }
static QColor() { QColor.Black = new QColor(0, 0, 0); }