Documentation ¶
Index ¶
- Constants
- func NbFrequencies() int
- func NewClock(canvas Canvas, center Point, radius int) Component
- func NewDsp(c Canvas) Component
- func TotalDspWidth() int
- type BeanNDot
- type BouncingDot
- type Clock
- type Dsp
- type FadingDot
- type FadingDots
- type FadingLine
- type FadingLines
- type HappyBirthday
- type Heart
- type HeartRed
- type Hearts
- type Images
- type Info
- type MovingDot
- type MovingHeart
- type MovingHearts
- type OctoLogo
Constants ¶
View Source
const ( HeartWidth = 13 HeartHeight = 12 )
View Source
const ( HeartRedWidth = 13 HeartRedHeight = 12 )
View Source
const BAR_SPACING = 0
View Source
const BAR_WIDTH = 4
View Source
const MAX_HEIGHT = 64
Variables ¶
This section is empty.
Functions ¶
func NbFrequencies ¶
func NbFrequencies() int
func TotalDspWidth ¶
func TotalDspWidth() int
Types ¶
type BeanNDot ¶
type BeanNDot struct {
// contains filtered or unexported fields
}
func NewBeanNDot ¶
func NewBeanNDot(c Canvas) *BeanNDot
type BouncingDot ¶
type BouncingDot struct {
// contains filtered or unexported fields
}
func NewBouncingDot ¶
func NewBouncingDot(c Canvas, initialPosition Point, initialVelocity FloatingPoint, initialBottomAcceleration float64, bounds image.Rectangle) *BouncingDot
func (*BouncingDot) Draw ¶
func (m *BouncingDot) Draw(c Canvas) error
type FadingDot ¶
type FadingDot struct {
// contains filtered or unexported fields
}
func NewFadingDot ¶
type FadingDots ¶
type FadingDots struct {
// contains filtered or unexported fields
}
func NewFadingDots ¶
func NewFadingDots(canvas Canvas, origin Point, nbFadingDots int, optColor color.Color) *FadingDots
func (*FadingDots) Draw ¶
func (h *FadingDots) Draw(canvas Canvas) error
type FadingLine ¶
type FadingLine struct {
// contains filtered or unexported fields
}
func NewFadingLine ¶
func (FadingLine) Draw ¶
func (h FadingLine) Draw(canvas Canvas) error
func (*FadingLine) IsFaded ¶
func (h *FadingLine) IsFaded() bool
type FadingLines ¶
type FadingLines struct {
// contains filtered or unexported fields
}
func (h *FadingLine) GetPosition() Point { return h.line.Graphic.ComputedOffset() }
func (h *FadingLine) SetPosition(point Point) { h.line.Graphic.SetOffset(point) }
func NewFadingLines ¶
func NewFadingLines(canvas Canvas, origin Point, nbFadingLines int) *FadingLines
func (*FadingLines) Draw ¶
func (h *FadingLines) Draw(canvas Canvas) error
type HappyBirthday ¶
type HappyBirthday struct {
// contains filtered or unexported fields
}
func NewHappyBirthday ¶
func NewHappyBirthday(canvas Canvas) *HappyBirthday
func (*HappyBirthday) Draw ¶
func (c *HappyBirthday) Draw(canvas Canvas) error
type Heart ¶
type Heart struct {
// contains filtered or unexported fields
}
func (*Heart) GetPosition ¶
func (h *Heart) GetPosition() Point
func (*Heart) SetPosition ¶
func (h *Heart) SetPosition(point Point)
type HeartRed ¶
type HeartRed struct {
// contains filtered or unexported fields
}
func NewHeartRed ¶
func (*HeartRed) GetPosition ¶
func (h *HeartRed) GetPosition() Point
func (*HeartRed) SetPosition ¶
func (h *HeartRed) SetPosition(point Point)
type MovingDot ¶
type MovingDot struct {
// contains filtered or unexported fields
}
func NewMovingDot ¶
type MovingHeart ¶
type MovingHeart struct {
// contains filtered or unexported fields
}
func NewMovingHeart ¶
func NewMovingHeart(canvas Canvas, initialPosition Point, fadeDuration time.Duration, initialFade float64, initialFadeOut bool) *MovingHeart
func (*MovingHeart) Draw ¶
func (m *MovingHeart) Draw(c Canvas) error
func (*MovingHeart) IsOut ¶
func (m *MovingHeart) IsOut() bool
type MovingHearts ¶
type MovingHearts struct {
// contains filtered or unexported fields
}
func NewMovingHearts ¶
func NewMovingHearts(canvas Canvas, origin Point, nbMovingHearts int) *MovingHearts
func (*MovingHearts) Draw ¶
func (h *MovingHearts) Draw(canvas Canvas) error
type OctoLogo ¶
type OctoLogo struct {
// contains filtered or unexported fields
}
func NewOctoLogo ¶
Click to show internal directories.
Click to hide internal directories.