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-margin: 1
right-margin: 1

left:
  image: b0
  height: 14
  ascent: 7
  width: 1

right:
  image: b0
  height: 14
  ascent: 7
  width: 1

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

left-margin and right-margin determines the size of the blank area

Last updated