img

package
v0.0.0-...-5cd0c88 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2018 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

=================================================================

Copyright (C) 2018 Spatial Current, Inc. - All Rights Reserved Released as open source under the MIT License. See LICENSE file.

=================================================================

Index

Constants

This section is empty.

Variables

View Source
var BlankImage = CreateImage(color.RGBA{0, 0, 0, 0})
View Source
var BlueImage = CreateImage(color.RGBA{0, 0, 255, 255})
View Source
var GreenImage = CreateImage(color.RGBA{0, 255, 0, 255})
View Source
var RedImage = CreateImage(color.RGBA{255, 0, 0, 255})

Functions

func CreateImage

func CreateImage(c color.RGBA) *image.RGBA

func RespondWithGrid

func RespondWithGrid(ext string, writer http.ResponseWriter, grid []uint8, width int, height int, f color.RGBA, b color.RGBA) error

func RespondWithImage

func RespondWithImage(ext string, w http.ResponseWriter, img *image.RGBA) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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