1
Fork 0
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:
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 # Binaries for programs and plugins
main main
VColor color
*.exe *.exe
*.exe~ *.exe~
*.so *.so

View file

@ -1,6 +1,6 @@
MIT License MIT License
Copyright (c) 2022 RGBCube Copyright (c) 2022-present RGBCube
Permission is hereby granted, free of charge, to any person obtaining a copy Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal of this software and associated documentation files (the "Software"), to deal

View file

@ -1,6 +1,6 @@
# v-color # v-color
An easier way to print colored text to the terminal An easier way to print colored text to the terminal.
# Example # Example
@ -9,8 +9,8 @@ An easier way to print colored text to the terminal
```v ```v
import color import color
println(color.red.color('Hello World')) color.red.cprintln('Hello World')
println(color.bold.color('Hello World')) color.bold.cprintln('Hello World')
``` ```
## Advanced ## Advanced
@ -18,11 +18,11 @@ println(color.bold.color('Hello World'))
```v ```v
import color import color
p := color.PaintBrush{ brush := color.PaintBrush{
fg: color.rgb(0, 0, 0)!, fg: color.rgb(0, 0, 0)!,
bg: color.hex(0xffffff)!, bg: color.hex(0xffffff)!,
styles: [color.bold, color.underline, color.italic] 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 { Module {
name: 'color' name: 'color'
description: 'An easier way to print colored text to the terminal' description: 'An easier way to print colored text to the terminal.'
version: '1.0.0' version: '1.1.0'
license: 'MIT' license: 'MIT'
dependencies: [] dependencies: []
} }