package
Version:
v0.0.0-...-39b93c0
Opens a new window with list of versions in this module.
Published: Jun 18, 2020
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
- Variables
-
func IsSet(el rune, p Point) bool
-
func PlotRune(el *rune, p Point, shouldSet bool)
-
func Scaler(inlowx, inlowy, inhighx, inhighy float64, ...) func(x, y float64) Point
-
func ScatterPlot(tm *Map, topLeft, size Point, f *os.File)
-
type Alignment
-
type Map
-
type Point
IsSet returns true of point (x: 0-1, y: 0-3) is set in the Braille
character provided. Returns false if the character is not Braille.
func Scaler(inlowx, inlowy, inhighx, inhighy float64,
outlowx, outlowy, outhighx, outhighy int) func(x, y float64) Point
Scaler returns a scaling function translating values from the input
rectange to the output rectangle.
ScatterPlot draws the data in the passed open file within the given
rectangle of the given Map.
Alignment specifies the justification of drawn text.
Values for text alignment in PlotText
type Map struct {
W, H int
}
TextMap is a grid of characters on which to draw.
NewMap returns a pointer to a text map of the given dimensions.
Plot sets or unsets the Braille pixel at the passed point.
PlotText places text at the given refernece point, expanding eith
to the left or right, or centered, based on the passed alignment.
type Point struct {
X, Y int
}
Point is a location in either a Map or Braille coordinate space.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.