eink-radiator-image-source-text

command module
v0.4.40 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2023 License: MIT Imports: 1 Imported by: 0

README

eInk Radiator Image Source: Text

CI

Generates an image from text.

text generate --config config.json --height 300 --width 400

Configuration

The configuration describes the text to render and how to render it

field default required description
text Yes The text to render
wrap false No Automatically add line breaks to fit the text to the width of the image
font Ubuntu No The font to use
size 0 No The font size to use (0 will resize to fit to the size of the image)
color black No The color of the text
background.color white No The color of the background

Examples

All examples are rendered to 400 x 300 resolution

Text alone

Renders the text, resizing to fit the screen

---
text: One Two Three Four Five Six Seven Eight Nine Ten

An image rendering the simple text example

All fields
text: |-
  Shields up!
  Rrrrrred Alert!
color: red
background:
  color: black
font: UbuntuMono
size: 48

An image rendering the full example

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internalfakes
Code generated by counterfeiter.
Code generated by counterfeiter.
pkg
pkgfakes
Code generated by counterfeiter.
Code generated by counterfeiter.

Jump to

Keyboard shortcuts

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