Rule๏ƒ

The Rule method will draw a horizontal line. Added on v2023.1

Parameters
  • char Optional[(str)] - Character to be used to draw out the border.

  • lines Optional[(int)] - Indicates the number of lines to be drawn.

  • multicolored Optional[(bool)] - If True, a multicolored border will be applied.

  • color Optional[(str)] - Color to be applied.

from quo.rule import Rule

rule = Rule()

rule.draw()
_images/default1.png
  • Multicolored

from quo.rule import Rule

rule = Rule()

rule.draw(multicolored=True)
_images/multicolored.png
  • Styled

from quo.rule import Rule

rule = Rule()
rule.draw(color="purple")
_images/styled3.png
  • Multiline

Added on v2023.3

from quo.rule import Rule

rule = Rule(lines=4)

rule.draw()
_images/multiline1.png