types

package
v0.0.0-...-5a58481 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnimatedRainbowText

type AnimatedRainbowText struct {
	c.BaseComponent

	XMLName   xml.Name `xml:"rainbow-text"`
	Font      string   `xml:"font,attr"`
	FontStyle string   `xml:"style,attr"`
	FontSize  float64  `xml:"size,attr"`
	Text      string   `xml:",chardata"`
	// contains filtered or unexported fields
}

Rainbow text

func (*AnimatedRainbowText) Init

func (art *AnimatedRainbowText) Init()

func (*AnimatedRainbowText) Render

func (art *AnimatedRainbowText) Render() image.Image

type ColorGrid

type ColorGrid struct {
	c.BaseComponent

	XMLName  xml.Name `xml:"color-grid"`
	GridSize int      `xml:"gridSize,attr"`
	Offset   float64
}

func (*ColorGrid) Init

func (cg *ColorGrid) Init()

func (*ColorGrid) Render

func (cg *ColorGrid) Render() image.Image

type ColorWave

type ColorWave struct {
	c.BaseComponent

	XMLName   xml.Name `xml:"colorwave"`
	Frequency float64  `xml:"frequency,attr"`
	Amplitude float64  `xml:"amplitude,attr"`
	Speed     float64  `xml:"speed,attr"`
	Offset    float64
}

func (*ColorWave) Init

func (cw *ColorWave) Init()

func (*ColorWave) Render

func (cw *ColorWave) Render() image.Image

type Drop

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

type GravityParticle

type GravityParticle struct {
	X, Y  float64
	Force float64
	Color color.RGBA
}

type GravityParticles

type GravityParticles struct {
	c.BaseComponent

	XMLName       xml.Name `xml:"gravity-particles"`
	Particles     []Particle
	GravityPoints []GravityParticle
}

func (*GravityParticles) Init

func (gp *GravityParticles) Init()

func (*GravityParticles) Render

func (gp *GravityParticles) Render() image.Image

type Image

type Image struct {
	c.BaseComponent

	XMLName xml.Name `xml:"image"`
	Src     string   `xml:"src,attr"`
	Loop    bool     `xml:"loop,attr"`
	// contains filtered or unexported fields
}

func (*Image) Init

func (i *Image) Init()

func (*Image) Render

func (i *Image) Render() image.Image

type MatrixRain

type MatrixRain struct {
	c.BaseComponent
	XMLName  xml.Name `xml:"matrix-rain"`
	Drops    []Drop
	NumDrops int
}

func (*MatrixRain) Init

func (mr *MatrixRain) Init()

func (*MatrixRain) Render

func (mr *MatrixRain) Render() image.Image

type PaddleBallVisualizer

type PaddleBallVisualizer struct {
	c.BaseComponent

	XMLName      xml.Name `xml:"pong"`
	BallRadius   float64  `xml:"ballRadius,attr"`
	BallSpeedX   float64
	BallSpeedY   float64
	BallX        float64
	BallY        float64
	PaddleHeight float64 `xml:"paddleHeight,attr"`
	PaddleWidth  float64 `xml:"paddleWidth,attr"`
	LeftPaddleY  float64
	RightPaddleY float64
	Amplitude    float64   // this will be updated by an external function based on the music beat
	Color        util.RGBA `xml:"color,attr"`
}

func (*PaddleBallVisualizer) Init

func (pbv *PaddleBallVisualizer) Init()

func (*PaddleBallVisualizer) Render

func (pbv *PaddleBallVisualizer) Render() image.Image

type Particle

type Particle struct {
	X, Y   float64
	SpeedX float64
	SpeedY float64
	Color  color.RGBA
	Radius float64
}

type PulsingCircles

type PulsingCircles struct {
	c.BaseComponent

	XMLName    xml.Name `xml:"pulsing-circles"`
	NumCircles int      `xml:"numCircles,attr"`
	MaxRadius  float64  `xml:"maxRadius,attr"`
	Offset     float64
}

func (*PulsingCircles) Init

func (pc *PulsingCircles) Init()

func (*PulsingCircles) Render

func (pc *PulsingCircles) Render() image.Image

type Scroller

type Scroller struct {
	c.BaseComponent

	XMLName xml.Name    `xml:"scroller"`
	ScrollX int         `xml:"scroll-x,attr"`
	ScrollY int         `xml:"scroll-y,attr"`
	Slot    *c.Template `xml:"template"`
}

func (*Scroller) Init

func (s *Scroller) Init()

func (*Scroller) Render

func (s *Scroller) Render() image.Image

type SpiralGallery

type SpiralGallery struct {
	c.BaseComponent

	XMLName     xml.Name     `xml:"spiral"`
	Slots       []c.Template `xml:"template"`
	Angle       float64      // Rotation angle in degrees
	CurrentSlot int
}

func (*SpiralGallery) Init

func (sg *SpiralGallery) Init()

func (*SpiralGallery) Render

func (sg *SpiralGallery) Render() image.Image

type Text

type Text struct {
	c.BaseComponent

	XMLName   xml.Name  `xml:"text"`
	Font      string    `xml:"font,attr"`
	FontStyle string    `xml:"style,attr"`
	FontSize  float64   `xml:"size,attr"`
	Color     util.RGBA `xml:"color,attr"`
	Text      string    `xml:",chardata"`
	// contains filtered or unexported fields
}

func (*Text) Init

func (t *Text) Init()

func (*Text) Render

func (t *Text) Render() image.Image

Jump to

Keyboard shortcuts

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