This commit is contained in:
Louis Dalibard 2025-01-16 21:52:14 +01:00
parent a81f476c8d
commit 9ae6b94b67

View File

@ -36,6 +36,7 @@ type ConfigS struct {
ParticleMaxSize float32 ParticleMaxSize float32
ParticleAcceleration float32 ParticleAcceleration float32
ParticleDrag float32 ParticleDrag float32
DefaultToSingleChannel bool
} }
var DefaultConfig = ConfigS{ var DefaultConfig = ConfigS{
@ -61,6 +62,7 @@ var DefaultConfig = ConfigS{
ParticleMaxSize: 2.0, ParticleMaxSize: 2.0,
ParticleAcceleration: 0.015, ParticleAcceleration: 0.015,
ParticleDrag: 5.0, ParticleDrag: 5.0,
DefaultToSingleChannel: false,
} }
var Config ConfigS var Config ConfigS
@ -99,6 +101,7 @@ func Init() {
decoder := yaml.NewDecoder(fh) decoder := yaml.NewDecoder(fh)
decoder.Decode(&Config) decoder.Decode(&Config)
SingleChannel = Config.DefaultToSingleChannel
} }
// Get pywal accent color // Get pywal accent color