diff --git a/.gitignore b/.gitignore index 8f15bf5..d871423 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,6 @@ # Binaries for programs and plugins main -VColor +color *.exe *.exe~ *.so diff --git a/LICENSE b/LICENSE index 53f94cb..8fd1bb8 100644 --- a/LICENSE +++ b/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 diff --git a/README.md b/README.md index 42cb4e8..88e02aa 100644 --- a/README.md +++ b/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') ``` diff --git a/v.mod b/v.mod index af28c94..35f76b0 100644 --- a/v.mod +++ b/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: [] }