Versions in this module Expand all Collapse all v1 v1.0.0 Jan 1, 2022 Changes in this version + func ParseHexColor(s string) (color color.RGBA) + func Triangle(path draw2d.PathBuilder, x1, y1, x2, y2 float64) + type BackgroundOptions struct + FillColor color.RGBA + Padding float64 + Radius float64 + func NewBackgroundOptions() *BackgroundOptions + type DrawBuilder struct + func NewDrawBuilder(fontData draw2d.FontData) *DrawBuilder + func (d *DrawBuilder) DrawCircle(radius float64) + func (d *DrawBuilder) DrawRoundedRectangle(width, height float64, roundedRadius float64) + func (d *DrawBuilder) DrawText(text string, fontSize float64, backgroundOptions *BackgroundOptions) (width, height float64) + func (d *DrawBuilder) DrawTriangle(width, height float64) + func (d *DrawBuilder) SetFillColor(fillColor color.RGBA) *DrawBuilder + func (d *DrawBuilder) SetGraphicContext(graphicContext *draw2dimg.GraphicContext) *DrawBuilder + func (d *DrawBuilder) SetStrokeColor(strokeColor color.RGBA) *DrawBuilder + func (d *DrawBuilder) SetStrokeWidth(strokeWidth float64) *DrawBuilder + type Point struct + X float64 + Y float64 + func GetRotatePointByType(pointType string, leftTopX, leftTopY float64, width, height float64) Point