mirror of
https://github.com/RGBCube/color.v
synced 2025-07-31 09:57:47 +00:00
Update misc files and bump version
This commit is contained in:
parent
ed70f4a236
commit
150c1f65f7
4 changed files with 9 additions and 9 deletions
10
README.md
10
README.md
|
@ -1,6 +1,6 @@
|
|||
# v-color
|
||||
|
||||
An easier way to print colored text to the terminal
|
||||
An easier way to print colored text to the terminal.
|
||||
|
||||
# Example
|
||||
|
||||
|
@ -9,8 +9,8 @@ An easier way to print colored text to the terminal
|
|||
```v
|
||||
import color
|
||||
|
||||
println(color.red.color('Hello World'))
|
||||
println(color.bold.color('Hello World'))
|
||||
color.red.cprintln('Hello World')
|
||||
color.bold.cprintln('Hello World')
|
||||
```
|
||||
|
||||
## Advanced
|
||||
|
@ -18,11 +18,11 @@ println(color.bold.color('Hello World'))
|
|||
```v
|
||||
import color
|
||||
|
||||
p := color.PaintBrush{
|
||||
brush := color.PaintBrush{
|
||||
fg: color.rgb(0, 0, 0)!,
|
||||
bg: color.hex(0xffffff)!,
|
||||
styles: [color.bold, color.underline, color.italic]
|
||||
}
|
||||
|
||||
print(p.color('Hello World'))
|
||||
brush.cprintln('Hello World')
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue