Make /rainbow yellow readable in light-themed clients

This commit is contained in:
Tulir Asokan 2018-06-11 19:45:24 +03:00
parent 5e3994ce2c
commit b03a3b6cec

View File

@ -53,7 +53,7 @@ func (gt GradientTable) GetInterpolatedColorFor(t float64) colorful.Color {
var rainbow = GradientTable{
{colorful.LinearRgb(1, 0, 0), 0.0},
{colorful.LinearRgb(1, 0.5, 0), 0.1},
{colorful.LinearRgb(1, 1, 0), 0.2},
{colorful.LinearRgb(0.5, 0.5, 0), 0.2}, // Yellow is 0.5, 0.5 instead of 1, 1 to make it readable on light themes
{colorful.LinearRgb(0.5, 1, 0), 0.3},
{colorful.LinearRgb(0, 1, 0), 0.4},
{colorful.LinearRgb(0, 1, 0.5), 0.5},