renderer

package
v0.4.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 25, 2024 License: BSD-3-Clause Imports: 1 Imported by: 1

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.

Directories

Path Synopsis
gg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL