Beispiel #1
0
func (s *SvgT) CMYK(cmyk [][]byte) string {
	return fmt.Sprintf("cmyk(%s%%,%s%%,%s%%,%s%%)",
		strm.Percent(cmyk[0]),
		strm.Percent(cmyk[1]),
		strm.Percent(cmyk[2]),
		strm.Percent(cmyk[3]))
}
Beispiel #2
0
func (s *SvgT) Gray(a []byte) string {
	c := strm.Percent(a)
	return fmt.Sprintf("rgb(%s%%,%s%%,%s%%)", c, c, c)
}
Beispiel #3
0
func (s *SvgT) RGB(rgb [][]byte) string {
	return fmt.Sprintf("rgb(%s%%,%s%%,%s%%)",
		strm.Percent(rgb[0]),
		strm.Percent(rgb[1]),
		strm.Percent(rgb[2]))
}