
The highest tagged major version is
v2.
package
Version:
v1.11.0-alpha.3
Opens a new window with list of versions in this module.
Published: Jan 13, 2020
License: Apache-2.0
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 12
Opens a new window with list of known importers.
Documentation
¶
Package vector provides functions for vector graphics rendering.
This package is under experiments and the API might be changed with breaking backward compatibility.
-
type Path
-
func (p *Path) CubicTo(cp0x, cp0y, cp1x, cp1y, x, y float32)
-
func (p *Path) Fill(dst *ebiten.Image, clr color.Color)
-
func (p *Path) LineTo(x, y float32)
-
func (p *Path) MoveTo(x, y float32)
-
func (p *Path) QuadTo(cpx, cpy, x, y float32)
Path represents a collection of path segments.
func (p *Path) CubicTo(cp0x, cp0y, cp1x, cp1y, x, y float32)
LineTo adds a line segument to the path, which starts from the current position and ends to the given position (x, y).
LineTo updates the current position to (x, y).
MoveTo skips the current position of the path to the given position (x, y) without adding any strokes.
Source Files
¶
Directories
¶
internal
|
|
|
|
Click to show internal directories.
Click to hide internal directories.