Documentation ¶
Index ¶
- Variables
- func LoadImage(path string) (*eb.Image, error)
- func Rot(n float64) complex128
- func UWave(ratio, offset float64) float64
- func UnitVector(angle float64) complex128
- func Wave(ratio, offset float64) float64
- type Rect
- func (r *Rect) Height() float64
- func (r *Rect) Move(anchor int, x, y float64)
- func (r *Rect) Pos(anchor int) (float64, float64)
- func (r *Rect) Resize(origAnchor, newAnchor int, diffX, diffY float64) *Rect
- func (r *Rect) Scale(origAnchor, newAnchor int, scaleX, scaleY float64) *Rect
- func (r *Rect) Set(anchor int, x, y, w, h float64)
- func (r *Rect) Width() float64
- type Stm
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrSuccess represents successfully finished ErrSuccess = errors.New("successfully finished") )
Functions ¶
Types ¶
type Rect ¶
type Rect struct {
// contains filtered or unexported fields
}
Rect is a simple rect
type Stm ¶
type Stm struct {
// contains filtered or unexported fields
}
Stm is a simple state keeper
func (Stm) ElapsedRatio ¶
ElapsedRatio returns count / base
func (Stm) HasElapsed ¶
HasElapsed reports the time has elapsed or not
Click to show internal directories.
Click to hide internal directories.