Help us shape the future of Go! Take the 2026 Go Developer Survey

drawille

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2019 License: MIT Imports: 1 Imported by: 2

README

drawille-go

A drawille implementation in Go with a more permissive license.

Used in termui.

Documentation

Index

Constants

View Source
const BRAILLE_OFFSET = '\u2800'

Variables

View Source
var BRAILLE = [4][2]rune{
	{'\u0001', '\u0008'},
	{'\u0002', '\u0010'},
	{'\u0004', '\u0020'},
	{'\u0040', '\u0080'},
}

Functions

This section is empty.

Types

type Canvas

type Canvas struct {
	CellMap map[image.Point]Cell
}

func NewCanvas

func NewCanvas() *Canvas

func (*Canvas) GetCells

func (self *Canvas) GetCells() map[image.Point]Cell

func (*Canvas) SetLine

func (self *Canvas) SetLine(p0, p1 image.Point, color Color)

func (*Canvas) SetPoint

func (self *Canvas) SetPoint(p image.Point, color Color)

type Cell

type Cell struct {
	Rune  rune
	Color Color
}

type Color

type Color int

Jump to

Keyboard shortcuts

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