mirror of
https://github.com/RGBCube/color.v
synced 2025-07-30 17:37:45 +00:00
Add test file again
This commit is contained in:
parent
f5e42ab0cf
commit
a8949500a3
1 changed files with 17 additions and 0 deletions
17
test.v
Normal file
17
test.v
Normal file
|
@ -0,0 +1,17 @@
|
|||
module main
|
||||
|
||||
import color
|
||||
|
||||
fn main() {
|
||||
color.red.cprintln('Hello World')
|
||||
color.black.cprintln_bg('Hello World')
|
||||
color.bold.cprintln('Hello World')
|
||||
|
||||
brush := color.new_brush(
|
||||
fg: color.rgb(0, 0, 0)
|
||||
bg: color.hex(0xffffff)
|
||||
styles: [color.bold, color.dim, color.italic]
|
||||
)!
|
||||
|
||||
brush.cprintln('Hello World')
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue