NewStyle returns a new Style. Accepts multiple colors.
(colors ...Color)
| 258 | // NewStyle returns a new Style. |
| 259 | // Accepts multiple colors. |
| 260 | func NewStyle(colors ...Color) *Style { |
| 261 | ret := Style{} |
| 262 | for _, c := range colors { |
| 263 | ret = append(ret, c) |
| 264 | } |
| 265 | return &ret |
| 266 | } |
| 267 | |
| 268 | // Add styles to the current Style. |
| 269 | func (s Style) Add(styles ...Style) Style { |
no outgoing calls
searching dependent graphs…