Add MemoryView component for memory rendering, refactor BufferedImage for RGB manipulation, and cleanup unused methods and comments in several classes.

This commit is contained in:
2025-08-14 21:03:03 +02:00
parent 9f295b2fb9
commit d5314ce046
11 changed files with 331 additions and 42 deletions

View File

@@ -2,17 +2,28 @@ package mtmc
import kotlinx.browser.document
import kotlinx.html.div
import kotlinx.html.style
import mtmc.emulator.MonTanaMiniComputer
import mtmc.view.MTMCView
import nl.astraeus.komp.HtmlBuilder
import nl.astraeus.komp.Komponent
class HelloKomponent : Komponent() {
override fun HtmlBuilder.render() {
div {
style = "color: red;"
+ "Hello, world!"
}
}
}
fun main() {
Komponent.create(document.body!!, HelloKomponent())
val computer = MonTanaMiniComputer()
computer.speed = 1 // default to 1hz
val view = MTMCView(computer)
Komponent.create(document.body!!, view)
computer.start()
}