human

package
v0.0.0-...-c6c79d5 Latest Latest
Warning

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

Go to latest
Published: May 17, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// 1x heart, 1x human
	STRAND_COUNT1 = 8
	STRAND_LEN1   = 60

	// 1 human base
	STRAND_COUNT2 = 5
	STRAND_LEN2   = 30

	LED_COUNT1 = STRAND_COUNT1 * STRAND_LEN1 // 4*60 // 60/m
	LED_COUNT2 = STRAND_COUNT2 * STRAND_LEN2 // 8*60 // 60/m

	LIGHT_COUNT = 6 // 36 total deepPurple lights turned on at a time

	STREAK_LENGTH = 10 // LED_COUNT2 / 2 // 8*60/3 == 160

	// COOLING: How much does the air cool as it rises?
	// Less cooling = taller flames.  More cooling = shorter flames.
	// Default 55, suggested range 20-100
	COOLING = 100

	// SPARKING: What chance (out of 255) is there that a new spark will be lit?
	// Higher chance = more roaring fire.  Lower chance = more flickery fire.
	// Default 120, suggested range 50-200.
	SPARKING = 120
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Human

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

func Init

func Init(level <-chan float64, w *web.Web) *Human

func (*Human) Close

func (h *Human) Close()

func (*Human) Run

func (h *Human) Run()

Jump to

Keyboard shortcuts

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