-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtui.kt
More file actions
36 lines (31 loc) · 1.03 KB
/
Copy pathtui.kt
File metadata and controls
36 lines (31 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
package termImage
import java.awt.Image
class TUI {
init {
println("Recommended: Pick an option")
println("Choose an appropriately sized image for your terminal size")
println("and make your terminal as small as possible")
println("so that the image is fully visible.")
}
fun options(){
println("-----------------------------------------------")
println("Recommended image size: 300 x 300")
println("1) Normal image")
println("2) Negative image")
println("3) Greyscale")
println("4) Pixels represented by a charcter of your choice")
val input = readln()
val methods = imageMethods()
when (input){
"1" -> methods.normalImage()
"2" -> methods.negativeImage()
"3" -> methods.greyScaleImage()
"4" -> {
println("Pick a character:")
val c = readln()
methods.charImage(c)
}
else -> println("Invalid")
}
}
}