Documentation ¶
Overview ¶
Package renderer generates info card images from data templates.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
FaGear = '\uf013'
)
View Source
var StyleCard = Style{ ColorDarkPrimary: color.NRGBA{0xfa, 0xfa, 0xfa, 0xff}, ColorPrimary: color.NRGBA{0xff, 0xff, 0xff, 0xff}, ColorLightPrimary: color.NRGBA{0x72, 0x72, 0x72, 0xff}, ColorText: color.NRGBA{0x21, 0x21, 0x21, 0xff}, ColorAccent: color.NRGBA{0xff, 0x52, 0x52, 0xff}, ColorTextPrimary: color.NRGBA{0x21, 0x21, 0x21, 0xff}, ColorTextSecondary: color.NRGBA{0x72, 0x72, 0x72, 0xff}, ColorDivider: color.NRGBA{0xb6, 0xb6, 0xb6, 0xff}, ColorSecondary: color.NRGBA{0xfa, 0xfa, 0xfa, 0xff}, }
View Source
var StyleDefault = Style{ ColorDarkPrimary: color.NRGBA{0x30, 0x3f, 0x9f, 0xff}, ColorPrimary: color.NRGBA{0x3f, 0x51, 0xb5, 0xff}, ColorLightPrimary: color.NRGBA{0xc5, 0xca, 0xe9, 0xff}, ColorText: color.NRGBA{0xff, 0xff, 0xff, 0xff}, ColorAccent: color.NRGBA{0xff, 0x52, 0x52, 0xff}, ColorTextPrimary: color.NRGBA{0x21, 0x21, 0x21, 0xff}, ColorTextSecondary: color.NRGBA{0x72, 0x72, 0x72, 0xff}, ColorDivider: color.NRGBA{0xb6, 0xb6, 0xb6, 0xff}, ColorSecondary: color.NRGBA{0xfa, 0xfa, 0xfa, 0xff}, }
Functions ¶
Types ¶
type BackgroundLayout ¶
type Context ¶
type Context struct { Image draw.Image *draw2dimg.GraphicContext Style Style }
func NewContext ¶
func NewContext() *Context
func (*Context) SaveToFile ¶
type Converted ¶
Converted implements image.Image, so you can pretend that it is the converted image.
func (*Converted) At ¶
At forwards the call to the original image and then asks the color model to convert it.
func (*Converted) ColorModel ¶
We return the new color model...
type OutputFormat ¶
type OverviewLayout ¶
type PathLayout ¶
Click to show internal directories.
Click to hide internal directories.