import sys

from gi.repository import Clutter

# create a window
Clutter.init(sys.argv)
stage = Clutter.Stage.get_default()
stage.set_size(1024, 768)

# create an environment
layout = Clutter.FixedLayout()
environment = Clutter.Box.new(layout)
w, h = stage.get_size()
environment.set_size(w, h)
stage.add_actor(environment)

# add a blackhole
black = Clutter.Rectangle()
black.set_color(Clutter.Color.new(0, 0, 0, 255))
black.props.rotation_angle_z = 45
black.set_size(200, 200)
black.set_reactive(True)
black.add_action(
    Clutter.DragAction.new()
)
environment.add_actor(black)

# show everything and run
stage.show_all()
Clutter.main()

