gg

package
v0.0.0-...-0e6b51b Latest Latest
Warning

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

Go to latest
Published: May 11, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Canvas

type Canvas struct {
	// contains filtered or unexported fields
}

func NewCanvas

func NewCanvas(width, height int) *Canvas

func (*Canvas) Arc

func (C *Canvas) Arc(x, y, r, angle1, angle2 float64)

func (*Canvas) BeginPath

func (C *Canvas) BeginPath()

func (*Canvas) Circle

func (C *Canvas) Circle(x, y, r float64)

func (*Canvas) Clear

func (C *Canvas) Clear()

func (*Canvas) ClearPath

func (C *Canvas) ClearPath()

func (*Canvas) Clip

func (C *Canvas) Clip()

func (*Canvas) ClosePath

func (C *Canvas) ClosePath()

func (*Canvas) CubicTo

func (C *Canvas) CubicTo(x1, y1, x2, y2, x3, y3 float64)

func (*Canvas) DrawImage

func (C *Canvas) DrawImage(im image.Image, x, y int)

func (*Canvas) DrawString

func (C *Canvas) DrawString(s string, x, y float64)

func (*Canvas) Ellipse

func (C *Canvas) Ellipse(x, y, rx, ry float64)

func (*Canvas) Fill

func (C *Canvas) Fill()

func (*Canvas) Height

func (C *Canvas) Height() int

func (*Canvas) Image

func (C *Canvas) Image() image.Image

func (*Canvas) Line

func (C *Canvas) Line(x1, y1, x2, y2 float64)

func (*Canvas) LineTo

func (C *Canvas) LineTo(x, y float64)

func (*Canvas) MeasureString

func (C *Canvas) MeasureString(s string) (w, h float64)

func (*Canvas) MoveTo

func (C *Canvas) MoveTo(x, y float64)

func (*Canvas) QuadraticTo

func (C *Canvas) QuadraticTo(x1, y1, x2, y2 float64)

func (*Canvas) Rectangle

func (C *Canvas) Rectangle(x, y, w, h float64)

func (*Canvas) ResetClip

func (C *Canvas) ResetClip()

func (*Canvas) Restore

func (C *Canvas) Restore()

func (*Canvas) Rotate

func (C *Canvas) Rotate(angle float64)

func (*Canvas) RoundedRectangle

func (C *Canvas) RoundedRectangle(x, y, w, h, r float64)

func (*Canvas) Save

func (C *Canvas) Save()

func (*Canvas) Scale

func (C *Canvas) Scale(x, y float64)

func (*Canvas) SetColor

func (C *Canvas) SetColor(c color.Color)

func (*Canvas) SetDash

func (C *Canvas) SetDash(dashes ...float64)

func (*Canvas) SetDashOffset

func (C *Canvas) SetDashOffset(offset float64)

func (*Canvas) SetFont

func (C *Canvas) SetFont(v font.Face)

func (*Canvas) SetHexColor

func (C *Canvas) SetHexColor(x string)

func (*Canvas) SetLineWidth

func (C *Canvas) SetLineWidth(lineWidth float64)

func (*Canvas) Stroke

func (C *Canvas) Stroke()

func (*Canvas) Translate

func (C *Canvas) Translate(x, y float64)

func (*Canvas) Width

func (C *Canvas) Width() int

Jump to

Keyboard shortcuts

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