Line

class text_renderer.effect.Line(p=0.5, thickness=1, 3, lr_in_offset=0, 10, lr_out_offset=0, 5, tb_in_offset=0, 3, tb_out_offset=0, 3, line_pos_p=0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, color_cfg: TextColorCfg = None)[source]

Draw lines around text

Parameters
  • p (float) – probability to apply effect

  • thickness (int, int) – line thickness

  • lr_in_offset (int, int) – left-right line inner offset

  • lr_out_offset (int, int) – left-right line outer offset

  • tb_in_offset (int, int) – top-bottom line inner offset

  • tb_out_offset (int, int) – top-bottom line outer offset

  • line_pos_p (tuple) – Each value corresponds a line position. Must sum to 1. top, bottom, left, right, top_left, top_right, bottom_left, bottom_right, horizontal_middle, vertical_middle

  • color_cfg (TextColorCfg) – if not None, get color from cfg