Creates a custom shape of lines.
Positional arguments:
width - width of the shape.
height - height of the shape.
lines - an array of tuples, each tuple (x, y).
Keyword arguments:
fg - foreground character.
bg - background character.
Lines system:
The (x, y) of the start of the current line is the last (x, y),
and the end of the current line is the current (x, y).
The start of the first line is the first (x, y) of the lines array.
Little changes
The constant DEFAULT_CHARACTER is now DEFAULT_FGCHARACTER.
Changes in the code style (mostly comments).
In some expressions lists the types of the lists is a set, using {...}, now is a normal list: [...]
Info
README.md and test_termshape.py i changed them for this pull request.
I think that is just this changes, now you just need to filter them.
Some little improvements and a new custom shape
get_lines()
:New shape
get_lines()
This is the implementation of the issue #5:
Example
Documentation
Little changes
DEFAULT_CHARACTER
is nowDEFAULT_FGCHARACTER
.set
, using{...}
, now is a normallist
:[...]
Info
README.md
andtest_termshape.py
i changed them for this pull request. I think that is just this changes, now you just need to filter them.