Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct { // Canvas width CanvasW int // Canvas height CanvasH int // Opacity value for the black foreground under the title Opacity float64 // Avatar diameter AvaD int Title string // Title font size TitleSize float64 Author string // Author font size AuthorSize float64 // Logo left part text (optional) LabelL string // Logo right part text (optional) LabelR string // Label font size LabelSize float64 // Either an URL to a remote background image, or filename of the local image, or a HEX-color // An image will be thumbnailed and smart-cropped if it's not of the canvas size Bg string // An URL to an author avatar pic AvaURL string // An URL to a logo image LogoURL string // Logo height LogoH int // Resulting JPEG quality Quality int }
Options defines a set of options required to draw a p.ctx.
Click to show internal directories.
Click to hide internal directories.