Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexStratou authored Aug 18, 2024
1 parent 519d686 commit 5bbd440
Showing 1 changed file with 12 additions and 7 deletions.
19 changes: 12 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,20 +45,23 @@ print("Package name: "+raia.__name__)
print("Version: " + raia.__version__)

# Default colors
print(raia.Red("Default 'Red' as foreground"))
print(raia.Blue_bg("Default 'Blue' as background"))
print(raia.Red("Default 'Red' as foreground."))
print(raia.Blue_bg("Default 'Blue' as background."))

# Custom color
myColor = raia.Color(0, 150, 150)
print(myColor("Custom foreground color"))
print(myColor("Custom foreground color."))

# Custom background
myBackground = raia.Color(255, 0, 150, as_background=True)
myBackground.fprint('This is a custom background color')
myBackground.fprint('This is a custom background color.')

# Default style
print(raia.Strikethrough('This is a default style.'))

# Custom style
myStyle = raia.Style(('underline', 'italic', 'bold'))
myStyle.fprint('This is custom style.')
myStyle = raia.Style('underline', 'italic', 'bold')
myStyle.fprint('This is a custom style.')

# Custom Full-Style
myFullStyle = raia.FullStyle(foreground=raia.Violet, background=(
Expand All @@ -68,10 +71,12 @@ myFullStyle.fprint('This is a custom fully styled text.')
# Default keys
print(raia.Green('Default color keys: \n'), raia.defaults.keys())
print(raia.Brown_bg('Available styles keys:\n'), raia.styles.keys())

```
Output:

<img width="580" alt="image" src="https://github.com/user-attachments/assets/ac304761-98d5-4446-acda-7d3df64e47f8">
<img width="944" alt="image" src="https://github.com/user-attachments/assets/b035628a-616a-4761-9f39-86c45af07b5a">




Expand Down

0 comments on commit 5bbd440

Please sign in to comment.