visual

package
v0.0.0-...-1f8a15b Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2023 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HexFontColors = []string{
	"#000000",
	"#000000",
	"#000000",
	"#000000",
	"#000000",
	"#FFFFFF",
	"#FFFFFF",
	"#000000",
	"#000000",
	"#FFFFFF",
	"#FFFFFF",
	"#000000",
	"#000000",
	"#000000",
	"#FFFFFF",
	"#FFFFFF",
}
View Source
var HexIndexColors = []string{
	"#FFFFFF",
	"#FBF305",
	"#FF6403",
	"#DD0907",
	"#F20884",
	"#4700A5",
	"#0000D3",
	"#02ABEA",
	"#1FB714",
	"#006412",
	"#562C05",
	"#90713A",
	"#C0C0C0",
	"#808080",
	"#404040",
	"#000000",
}
View Source
var QuadFontColors = []string{
	"#000000",
	"#000000",
	"#000000",
	"#000000",
}
View Source
var QuadIndexColors = []string{
	"#FFFFFF",
	"#FBF305",
	"#F20884",
	"#02ABEA",
}

Functions

func Box

func Box(w io.Writer, name string, label string)

func Circle

func Circle(w io.Writer, name string, label string, filled bool)

func EndCluster

func EndCluster(w io.Writer)

func EndGraph

func EndGraph(w io.Writer)

func HexBox

func HexBox(w io.Writer, name string, code []byte, columns int, compressed bool, highlighted bool)

func Horizontal

func Horizontal(w io.Writer, hex []byte, highlighted int, name string, indexColors []string, fontColors []string, compression int)

func QuadHorizontal

func QuadHorizontal(w io.Writer, quad []byte, highlighted bool, name string)

QuadHorizontal produces a horizontal line corresponding to quad digits in key (one byte - one digit) highlighted - whether digits need to be highlighted (contain digits themselves) name - name of the compontent (to be connected to others)

func QuadVertical

func QuadVertical(w io.Writer, quad []byte, highlighted int, name string)

QuadVertical produces a vertical line corresponding to quad digits in key (one byte - one digit) highlighted - number of digits that need to be highlighted (contain digits themselves) name - name of the compontent (to be connected to others)

func StartCluster

func StartCluster(w io.Writer, number int, label string)

func StartGraph

func StartGraph(w io.Writer, tall bool)

func Vertical

func Vertical(w io.Writer, hex []byte, highlighted int, name string, indexColors []string, fontColors []string, compression int)

Vertical produces a vertical line corresponding to hex digits in key (one byte - one digit) highlighted - number of digits that need to be highlighted (contain digits themselves) name - name of the compontent (to be connected to others)

Types

This section is empty.

Jump to

Keyboard shortcuts

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