Documentation ¶
Overview ¶
Package ssvg is for generate simple SVG, support muti-frame animation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultColors ¶
DefaultColors is easy way to choose color for serial of items. index can be any nonnegative integer.
Types ¶
type Line ¶
type Style ¶
type Style struct { // Fill color FillColor string // Stroke color StrokeColor string // Stroke width in millimetres, 0 is treat as 1 StrokeWidth float64 // Transparent level between 0~1, opposite to opacity. Transparency float64 }
Style keep styles for element.
type Svg ¶
type Svg struct { CanvasSize int // pixels Frames []*Frame YDown bool FrameDuration int // default frame duration // contains filtered or unexported fields }
func (*Svg) CurrentFrame ¶
func (this *Svg) KeepLastFrameVisible() { this.CurrentFrame().KeepVisible = true }
Click to show internal directories.
Click to hide internal directories.