Colour bars/Display: Difference between revisions

→‎{{header|Kotlin}}: Updated example see https://github.com/dkandalov/rosettacode-kotlin for details
(→‎{{header|Kotlin}}: Updated example see https://github.com/dkandalov/rosettacode-kotlin for details)
Line 769:
defaultCloseOperation = EXIT_ON_CLOSE
setSize(width, height)
setVisible(isVisible = true)
}
 
Line 780:
g.fillRect(width / size * i, 0, width / size, height)
}
}
}
 
fun main(args: Array<String>) {