code

package
v0.0.0-...-c5bcced Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

The image/code package generates qr code images.

var col = require('colour');
var lib = require('image/code');
var fgc = col.Hex('#00bfff');
var bgc = col.Hex('#cccccc');
var img = lib('https://abcum.com', 500, fgc, bgc);
img.pipe(context.res.body, image.PNG);

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(orb *orbit.Orbit) interface{}

Types

type Module

type Module struct {
	// contains filtered or unexported fields
}

func (*Module) Init

func (this *Module) Init(content string, size int, cols ...*colour.Colour) *image.Image

Jump to

Keyboard shortcuts

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