Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RemoveANSICodes ¶
Types ¶
type GradientBuilder ¶
type GradientBuilder struct {
// contains filtered or unexported fields
}
func NewGradientBuilder ¶
func NewGradientBuilder(options ...Option) *GradientBuilder
func (*GradientBuilder) Build ¶
func (b *GradientBuilder) Build() (*GradientBuilder, error)
func (*GradientBuilder) RenderBackground ¶
func (b *GradientBuilder) RenderBackground(s string) string
func (*GradientBuilder) RenderForeground ¶
func (b *GradientBuilder) RenderForeground(s string) string
type GradientDirection ¶
type GradientDirection int
const ( Horizontal GradientDirection = iota Vertical )
type Option ¶
type Option func(*GradientBuilder)
func WithColors ¶
func WithDirection ¶
func WithDirection(direction GradientDirection) Option
func WithDomain ¶
func WithHTMLColors ¶
Click to show internal directories.
Click to hide internal directories.