Skip to content

Commit

Permalink
Merge pull request #105 from faissaloux/hex-documentation
Browse files Browse the repository at this point in the history
[2.x] HEX documentation
  • Loading branch information
faissaloux authored Jul 11, 2024
2 parents f0dc89a + d0e2961 commit ca4207e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
- [separator](#separator)
- [`Termspark().line()`](#line-1)
- [RGB](#rgb)
- [HEX](#hex)
- [style](#style)
- [hyperlinks](#hyperlinks)
- [supported colors](#supported-colors)
Expand Down Expand Up @@ -263,7 +264,6 @@ termspark.spark()
![](https://github.com/faissaloux/termspark/assets/60013703/41be7d15-4cab-4f73-a460-89c6d254db78)

### RGB
We support RGB too!
```python
from termspark import print, line

Expand All @@ -276,6 +276,14 @@ print(" Tuple RGB! ", color=(255, 255, 255), highlight=(36, 114, 200))
line(highlight=(36,114,200))
```

### HEX
```python
from termspark import print, line

print(" HEX! ", color="#FFF", highlight="#2472C8")
line(highlight="#2472C8")
```

### Style
You can style your text by passing it to `print() style parameter` or to `spark([]) fourth list element`.

Expand Down
9 changes: 8 additions & 1 deletion docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,6 @@ termspark.spark()
![](https://github.com/faissaloux/termspark/assets/60013703/41be7d15-4cab-4f73-a460-89c6d254db78)

### RGB
We support RGB too!
```python
from termspark import print, line

Expand All @@ -252,6 +251,14 @@ print(" Tuple RGB! ", color=(255, 255, 255), highlight=(36, 114, 200))
line(highlight=(36,114,200))
```

### HEX
```python
from termspark import print, line

print(" HEX! ", color="#FFF", highlight="#2472C8")
line(highlight="#2472C8")
```

### Style
You can style your text by passing it to `print() style parameter` or to `spark([]) fourth list element`.

Expand Down

0 comments on commit ca4207e

Please sign in to comment.