This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Number.* | |
import com.soywiz.korge.view.* | |
import com.soywiz.korim.color.* | |
fun Container.block(number: Number) = Block(number).addTo(this) | |
class Block(val number: Number) : Container() { | |
init { | |
roundRect(cellSize, cellSize, 5.0, fill = number.color) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Number.* | |
import com.soywiz.korge.view.* | |
import com.soywiz.korim.color.* | |
fun Container.block(number: Number) = Block(number).addTo(this) | |
class Block(val number: Number) : Container() { | |
init { | |
roundRect(cellSize, cellSize, 5.0, fill = number.color) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Number.* | |
import com.soywiz.korge.view.* | |
import com.soywiz.korim.color.* | |
fun Container.block(number: Number) = Block(number).addTo(this) | |
class Block(val number: Number) : Container() { | |
init { | |
roundRect(cellSize, cellSize, 5.0, fill = number.color) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import com.soywiz.korge.* | |
import com.soywiz.korge.html.* | |
import com.soywiz.korge.view.* | |
import com.soywiz.korim.color.* | |
import com.soywiz.korim.font.* | |
import com.soywiz.korim.format.* | |
import com.soywiz.korio.file.std.* | |
import com.soywiz.korma.geom.* | |
import com.soywiz.korma.geom.vector.* |