stone/config.go

31 lines
504 B
Go
Raw Normal View History

2022-10-31 13:51:28 -06:00
package stone
import "image/color"
type Config struct {
colors [4]color.Color
padding int
fontSize int
fontName string
}
func (config *Config) Color (index Color) (value color.Color) {
value = config.colors[index]
return
}
func (config *Config) Padding () (padding int) {
padding = config.padding
return
}
func (config *Config) FontSize () (fontSize int) {
fontSize = config.fontSize
return
}
func (config *Config) FontName () (fontName string) {
fontName = config.fontName
return
}