animations

package
v0.0.0-...-ff612b8 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2019 License: MIT Imports: 2 Imported by: 1

Documentation

Overview

Package animations provides preprogrammed animations You can use in github.com/franeklubi/ledgend!

Example usage:

buffer.AddAnimation(animations.FromMiddleFullSweep(
    ledgend.Color{5, 5, 5}, ledgend.Color{8, 8, 8},
    time.Millisecond*1000,
))

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromMiddleFullSweep

func FromMiddleFullSweep(
	start_col, end_col Color,
	duration time.Duration,
	start_time time.Time,
) (Animation, Animation)

func GradientOverTime

func GradientOverTime(
	direction bool,
	start_pos, length float64,
	start_col_a, end_col_a,
	start_col_b, end_col_b Color,
	duration, interval time.Duration,
	start_time time.Time,
) []Animation

func Pulse

func Pulse(
	direction bool,
	start_pos, length float64,
	start_col_a, end_col_a,
	start_col_b, end_col_b Color,
	duration, duration_back time.Duration,
	start_time time.Time,
) (Animation, Animation)

func Strobo

func Strobo(
	start_col_a, end_col_a,
	start_col_b, end_col_b Color,
	duration, interval time.Duration,
	start_time time.Time,
) []Animation

func Sweep

func Sweep(
	direction bool,
	start_pos, length float64,
	start_col, end_col Color,
	duration time.Duration,
	start_time time.Time,
) Animation

Types

This section is empty.

Jump to

Keyboard shortcuts

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