parsimony/assets/helpers_test.go
tgiachi 5f5deb3e30 feat(assets): the Parsimony logo
- Add the mark (an envelope in a rounded square) and the wordmark, drawn with monoline strokes so no font is needed
- Add light and dark versions, and the generator script
- Embed them in a Go package and ship the same files with the admin UI
- Test that the SVGs are well formed, need nothing from outside, stay in sync with the admin copies and have enough contrast
2026-11-10 12:13:17 +01:00

11 lines
208 B
Go

package assets
import (
"fmt"
"math"
)
func fmtSscanf(hex string, r, g, b *int) (int, error) {
return fmt.Sscanf(hex, "#%02x%02x%02x", r, g, b)
}
func pow(x, y float64) float64 { return math.Pow(x, y) }