Remove initial width argument; add default width

This commit is contained in:
Christian Rocha
2020-12-01 17:03:48 -05:00
committed by Christian Rocha
parent 3dea7d036e
commit a2e0a2e72e
+3 -3
View File
@@ -29,13 +29,13 @@ type Model struct {
}
// NewModel returns a model with default values.
func NewModel(size int) *Model {
func NewModel() Model {
startColor, _ := colorful.Hex("#00dbde")
endColor, _ := colorful.Hex("#fc00ff")
return &Model{
return Model{
StartColor: startColor,
EndColor: endColor,
Width: size,
Width: 40,
FilamentSymbol: '█',
EmptySymbol: '░',
}