Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
InputPath string // Path to the input logo SVG
OutputPath string // Path for the output combined SVG
Text string // Text to display (e.g., "grove flow")
TextColor string // Color for the text (e.g., "#589ac7")
FontPath string // Path to font file (TTF/OTF) - required for path conversion
FontSize float64 // Font size in pixels (defaults to 48)
Spacing float64 // Spacing between logo and text (defaults to 20)
TextScale float64 // Text width as proportion of logo width (defaults to 0.8)
Width float64 // Output SVG width in pixels (defaults to 200)
}
Config holds the configuration for logo generation.
func DefaultConfig ¶
func DefaultConfig() Config
DefaultConfig returns a Config with sensible defaults. Note: TextColor defaults to empty string to trigger auto-detection from source SVG.
Click to show internal directories.
Click to hide internal directories.