automated snapshot

This commit is contained in:
sumi
2025-12-22 22:33:57 -06:00
parent aea3c71cf9
commit c29e08bb98
43 changed files with 173 additions and 155 deletions

View File

@@ -45,6 +45,7 @@ func (s *Sketch) CreateLayer(name string, layer Layer) {
name: name,
texture: &texture,
layer: layer,
config: NewLayerConfig(),
}
s.layerToolsOrdered = append(s.layerToolsOrdered, layerTools)
s.layerTools[name] = layerTools
@@ -194,6 +195,44 @@ type LayerTools struct {
name string
layer Layer
texture *rl.RenderTexture2D
config LayerConfig
}
func NewLayerConfig() LayerConfig {
return LayerConfig {
visible: true,
a: 255,
rVisible: true,
r: 255,
gVisible: true,
g: 255,
bVisible: true,
b: 255,
desaturate: false,
kValue: 1.0,
}
}
type LayerConfig struct {
visible bool
a uint8
rVisible bool
r uint8
gVisible bool
g uint8
bVisible bool
b uint8
desaturate bool
saturation float32
kValue float32
}
/** Layer **/