1
Fork 0
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:
RGBCube 2022-11-18 20:46:49 +03:00
parent ed70f4a236
commit 150c1f65f7
4 changed files with 9 additions and 9 deletions

2
.gitignore vendored
View file

@ -1,6 +1,6 @@
# Binaries for programs and plugins
main
VColor
color
*.exe
*.exe~
*.so

View file

@ -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

View file

@ -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
View file

@ -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: []
}