Background

Basics

Background is made up of three parts: left middle and right. I think it's easy to understand how the background works. The plugin obtains the width of your text and uses the binary search method to piece together a background image that adapts to the text.

Add a new background configuration

Background config contains 9 images and a YAML config file.

left:
  image: b0
  height: 14
  ascent: 7

right:
  image: b0
  height: 14
  ascent: 7

middle:
  height: 14
  ascent: 7
  1: b1
  2: b2
  4: b4
  8: b8
  16: b16
  32: b32
  64: b64
  128: b128

height/ascent:

  • height: The height of the character, measured in pixels. Can be negative. This tag is separate from the area used in the source texture and just rescales the displayed result.

  • ascent: The ascent of the character, measured in pixels. This value adds a vertical shift to the displayed result.

Last updated