Documentation ¶
Index ¶
Constants ¶
View Source
const ( TermBlack = iota + 40 TermRed TermGreen TermYellow TermBlue TermMagenta TermCyan TermWhite )
View Source
const ( TermBlackBright = iota + 100 TermRedBright TermGreenBright TermYellowBright TermBlueBright TermMagentaBright TermCyanBright TermWhiteBright )
Variables ¶
View Source
var ( DefaultCircleProcessor = func(s *svg.SVG, x, y, block int, v uint8) { if v == qrencode.ElWhite { s.Circle(x+block/2, y+block/2, block/2, "fill:white;stroke:none") } else { s.Circle(x+block/2, y+block/2, block/2, "fill:black;stroke:none") } } DefaultRectangleProcessor = func(s *svg.SVG, x, y, block int, v uint8) { if v == qrencode.ElWhite { s.Rect(x, y, block, block, "fill:white;stroke:none") } else { s.Rect(x, y, block, block, "fill:black;stroke:none") } } )
Functions ¶
This section is empty.
Types ¶
type GifOutput ¶
type GifOutput struct {
// contains filtered or unexported fields
}
func NewGifOutput ¶
type JpegOutput ¶
type JpegOutput struct {
// contains filtered or unexported fields
}
func NewJpegOutput ¶
type TerminalOutput ¶
type TerminalOutput struct {
// contains filtered or unexported fields
}
func NewTerminalOutput ¶
func NewTerminalOutput(black, white *TerminalSymbol) *TerminalOutput
type TerminalSymbol ¶
type VectorImage ¶
type VectorOutput ¶
type VectorOutput struct {
// contains filtered or unexported fields
}
func NewVectorOutput ¶
func NewVectorOutput(block, x, y int, processor VectorProcessor, image *VectorImage) *VectorOutput
Click to show internal directories.
Click to hide internal directories.