Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Opacity ¶
type Opacity float64
Opacity is an option to specify the opacity of the rendered image.
type RenderOption ¶
type RenderOption interface {
// contains filtered or unexported methods
}
RenderOption is a interface for renderer options.
func Target ¶
func Target(x, y, w, h float64) RenderOption
Target specifies the rectangle to draw within.
type RenderOptions ¶
type RenderOptions struct { // Opacity is the opacity of the rendered image. Opacity float64 // Target is the rectangle to render the image within. Target svg.Matrix2D }
func Options ¶
func Options(s *svg.Svg, opts ...RenderOption) *RenderOptions
Options apply the options.
Click to show internal directories.
Click to hide internal directories.