memegen

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2021 License: ISC Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Caption

func Caption(w, h int, text string) (image.Image, image.Point)

Caption makes an iFunny-like caption meant to have another image overlayed onto it. The returned image and point are meant to be used as dest and sp for a call to draw.Draw with draw.Over as the op.

func Impact

func Impact(w, h int, top, bot string) image.Image

Impact generates the text for an Impact font meme. The returned image is meant to be used as an src for a call to draw.Draw with draw.Over as the op.

func Motivate

func Motivate(w, h int, top, bot string) (image.Image, image.Point)

Motivate makes a "motivational meme" frame meant to have another image overlayed onto it. The returned image and point are meant to be used as dest and sp for a call to draw.Draw with draw.Over as the op.

Types

This section is empty.

Jump to

Keyboard shortcuts

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