Added more tests
This commit is contained in:
15
README.md
15
README.md
@ -17,11 +17,16 @@ go get git.akyoto.dev/go/color
|
||||
## Usage
|
||||
|
||||
```go
|
||||
red := color.RGB(1.0, 0.0, 0.0)
|
||||
red.Println("red text")
|
||||
// ANSI
|
||||
ansi.Red.Println("red text")
|
||||
|
||||
orange := color.LCH(0.7, 1.0, 65)
|
||||
orange.Println("orange text")
|
||||
// LCH
|
||||
green := color.LCH(0.5, 1.0, 135)
|
||||
green.Println("green text")
|
||||
|
||||
// RGB
|
||||
blue := color.RGB(0, 0, 1)
|
||||
blue.Println("blue text")
|
||||
```
|
||||
|
||||
## Tests
|
||||
@ -30,9 +35,9 @@ orange.Println("orange text")
|
||||
PASS: TestPrint
|
||||
PASS: TestPrintf
|
||||
PASS: TestPrintln
|
||||
PASS: TestRGB
|
||||
PASS: TestLCH
|
||||
PASS: TestLCHSpectrum
|
||||
PASS: TestRGB
|
||||
coverage: 100.0% of statements
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user