Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateImage ¶
func GenerateImage(params ImageParams) *image.RGBA
GenerateImage creates an image based on the provided parameters
func ParseColor ¶
Helper function to parse color from hex string
Types ¶
type ImageParams ¶
type ImageParams struct { BackgroundColor color.Color Width int Height int Pattern string // "solid", "gradient", "checkerboard", etc. Opacity float64 // 0.0 to 1.0 BorderWidth int // Width of the border, if any BorderColor color.Color }
ImageParams defines the parameters for generating an image
Click to show internal directories.
Click to hide internal directories.