box drawing real

This commit is contained in:
alex-s168
2024-03-29 22:03:44 +01:00
parent 8db5ca9171
commit 5f01479f46
6 changed files with 122 additions and 10 deletions

View File

@@ -12,7 +12,7 @@ repositories {
}
dependencies {
implementation("me.alex_s168:blitz:0.10")
implementation("me.alex_s168:blitz:0.11")
}
```
@@ -185,6 +185,20 @@ list.add(5)
println(list.contents)
// outputs: [1, 5, 9]
```
### Matrix
```kotlin
val mat = Matrix(3, 3) { x, y -> x * (3-y) }
println(mat)
println(mat.transposeCopy())
println(mat.diagonals())
```
### Box drawing
```kotlin
val out = MutMultiColoredMultiLineString(fill = ColoredChar(' '))
out.box(x to y, 20 to 5, BoxDrawingCharSet.ROUND, Terminal.COLORS.WHITE.brighter.fg)
println(out.toString())
```
### Either
No example yet