import bacon

kitten = bacon.Image('res/kitten.png')
kitten2 = kitten.get_region(50, 256, kitten.width - 50, kitten.height - 10)
kitten3 = kitten2.get_region(50, 100, kitten2.width - 50, kitten2.height - 50)

bacon.window.width = kitten.width
bacon.window.height = kitten.height
bacon.window.resizable = True

class Game(bacon.Game):
    def on_tick(self):
        bacon.clear(0, 0, 0, 1)
        bacon.set_color(1, 0.5, 0.5, 1)
        bacon.draw_image(kitten, 0, 0)
        bacon.set_color(0.5, 1, 0.5, 1)
        bacon.draw_image(kitten2, 50, 256)
        bacon.set_color(0.5, 0.5, 1, 1)
        bacon.draw_image(kitten3, 100, 356)
bacon.run(Game())