Commit 06b7e47
committed
new: engine rewrite to provide easier writing of new formats.
These are the biggest API changes:
- attribute ``hex_l`` removed in favor of ``hex`` which is now long (6
hexadigit long). Use ``hexs`` for the possibly shortened version to 3
hexadigit when possible.
- ``LONG_HEX_COLOR`` and ``SHORT_HEX_COLOR`` are not available in
module's scope anymore, but are moved in each corresponding format's
attribute (``Hex.regex``, and ``HexS.regex``).
- ``RGB``, ``HEX``, ``HSL`` helper classes output now again basic python
types output (tuples and strings). And thus are unaware of any formats.
- in a similar way, ``xxx2yyy`` conversion functions are unaware of any
format and work with basic python types and returns basic python types.1 parent 646b96d commit 06b7e47
2 files changed
Lines changed: 694 additions & 372 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
| 134 | + | |
| 135 | + | |
134 | 136 | | |
| 137 | + | |
| 138 | + | |
135 | 139 | | |
136 | 140 | | |
137 | 141 | | |
| |||
158 | 162 | | |
159 | 163 | | |
160 | 164 | | |
161 | | - | |
162 | | - | |
163 | | - | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
164 | 168 | | |
165 | | - | |
166 | | - | |
| 169 | + | |
| 170 | + | |
167 | 171 | | |
168 | 172 | | |
169 | 173 | | |
| |||
0 commit comments