ws

package
v0.0.0-...-d0bc179 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

package ws provides a websocket interface for sending real-time color updates.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeColor

func MakeColor(m State) colorful.Color

func Scale

func Scale(src uint16, max float64) float64

func Serve

func Serve(addr, path string, messages chan State)

Types

type State

type State struct {
	Effect string
	H      uint16
	S      uint16
	V      uint16
	Adjust uint16
}

Jump to

Keyboard shortcuts

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