braille

package
v0.0.0-...-6d4d12d Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2017 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package braille composites bitmaps as braille.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bounds

func Bounds(r image.Rectangle) image.Rectangle

Bounds takes a rectangle describing cells on a display to the cells of a braille bitmap covering the cells of the display.

func BrailleAt

func BrailleAt(src cops.BitmapReader, sp image.Point) string

BrailleAt returns the braille bitmap that coresponds to the 2x4 grid at the given point in a bitmap.

func Draw

func Draw(dst *display.Display, r image.Rectangle, src image.Image, sp image.Point, on, off color.Color)

Draw composites a bitmap into the text and foreground layer of a display based on whether the colors of the source image more closely resemble the on or off colors of a bitmap palette.

Types

This section is empty.

Jump to

Keyboard shortcuts

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