mirror of https://github.com/etcd-io/dbtester.git
commit
90b0d054c7
|
|
@ -274,26 +274,6 @@ func getRGB(legend string, i int) color.Color {
|
|||
}
|
||||
|
||||
func getRGBII(legend string, i int) color.Color {
|
||||
tag := makeTag(legend)
|
||||
if strings.HasPrefix(tag, "etcd") {
|
||||
return color.RGBA{37, 29, 191, 255} // deep-blue
|
||||
}
|
||||
if strings.HasPrefix(tag, "zookeeper") {
|
||||
return color.RGBA{7, 64, 35, 255} // deep-green
|
||||
}
|
||||
if strings.HasPrefix(tag, "consul") {
|
||||
return color.RGBA{212, 8, 46, 255} // deep-red
|
||||
}
|
||||
if strings.HasPrefix(tag, "zetcd") {
|
||||
return color.RGBA{229, 255, 0, 255} // deep-yellow
|
||||
}
|
||||
if strings.HasPrefix(tag, "cetcd") {
|
||||
return color.RGBA{255, 0, 251, 255} // deep-purple
|
||||
}
|
||||
return plotutil.Color(i)
|
||||
}
|
||||
|
||||
func getRGBIII(legend string, i int) color.Color {
|
||||
tag := makeTag(legend)
|
||||
if strings.HasPrefix(tag, "etcd") {
|
||||
return color.RGBA{129, 212, 247, 255} // light-blue
|
||||
|
|
@ -312,3 +292,23 @@ func getRGBIII(legend string, i int) color.Color {
|
|||
}
|
||||
return plotutil.Color(i)
|
||||
}
|
||||
|
||||
func getRGBIII(legend string, i int) color.Color {
|
||||
tag := makeTag(legend)
|
||||
if strings.HasPrefix(tag, "etcd") {
|
||||
return color.RGBA{37, 29, 191, 255} // deep-blue
|
||||
}
|
||||
if strings.HasPrefix(tag, "zookeeper") {
|
||||
return color.RGBA{7, 64, 35, 255} // deep-green
|
||||
}
|
||||
if strings.HasPrefix(tag, "consul") {
|
||||
return color.RGBA{212, 8, 46, 255} // deep-red
|
||||
}
|
||||
if strings.HasPrefix(tag, "zetcd") {
|
||||
return color.RGBA{229, 255, 0, 255} // deep-yellow
|
||||
}
|
||||
if strings.HasPrefix(tag, "cetcd") {
|
||||
return color.RGBA{255, 0, 251, 255} // deep-purple
|
||||
}
|
||||
return plotutil.Color(i)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue