mirror of
https://github.com/RGBCube/color.v
synced 2025-07-31 09:57:47 +00:00
Rename .apply to .color
This commit is contained in:
parent
7a2ae90fb3
commit
a4617fa1e2
8 changed files with 19 additions and 19 deletions
|
@ -9,8 +9,8 @@ An easier way to print colored text to the terminal
|
|||
```v
|
||||
import color
|
||||
|
||||
println(color.red.apply('Hello World'))
|
||||
println(color.bold.apply('Hello World'))
|
||||
println(color.red.color('Hello World'))
|
||||
println(color.bold.color('Hello World'))
|
||||
```
|
||||
|
||||
## Advanced
|
||||
|
@ -24,5 +24,5 @@ p := color.PaintBrush{
|
|||
styles: [color.bold, color.underline, color.italic]
|
||||
}
|
||||
|
||||
print(p.apply('Hello World'))
|
||||
print(p.color('Hello World'))
|
||||
```
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue