mirror of
https://github.com/RGBCube/color.v
synced 2025-08-01 10:27:45 +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
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,6 +1,6 @@
|
|||
# Binaries for programs and plugins
|
||||
main
|
||||
VColor
|
||||
color
|
||||
*.exe
|
||||
*.exe~
|
||||
*.so
|
||||
|
|
2
LICENSE
2
LICENSE
|
@ -1,6 +1,6 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) 2022 RGBCube
|
||||
Copyright (c) 2022-present RGBCube
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
|
|
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')
|
||||
```
|
||||
|
|
4
v.mod
4
v.mod
|
@ -1,7 +1,7 @@
|
|||
Module {
|
||||
name: 'color'
|
||||
description: 'An easier way to print colored text to the terminal'
|
||||
version: '1.0.0'
|
||||
description: 'An easier way to print colored text to the terminal.'
|
||||
version: '1.1.0'
|
||||
license: 'MIT'
|
||||
dependencies: []
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue