import arcade


def OskarK(x, y):
    # position

    # størrelse
    w = 40
    h = 80

    # åben vindue
    # arcade.open_window(w, h, "stikfigure")
    # arcade.set_background_color((0, 0, 255))

    arcade.draw_rectangle_filled(w / 2 + x, h / 2 + y, w, h / 2, (60, 63, 200))

    arcade.draw_circle_filled(w / 2 + x, h * 0.8 + y, w / 8, (0, 0, 0))

    # krop
    arcade.draw_line(w / 2 + x, h * 0.8 + y, w / 2 + x, h * 0.3 + y, (0, 0, 0), w / 16)

    # arme
    arcade.draw_line(w / 2 + x, h * 0.7 + y, w / 5 + x, h * 0.9 + y, (0, 0, 0), w / 16)

    # ben
    arcade.draw_line(w / 2 + x, h * 0.3 + y, w * 0.6 + x, h * 0.05 + y, (0, 0, 0), w / 16)
    arcade.draw_line(w / 2 + x, h * 0.3 + y, w * 0.4 + x, h * 0.05 + y, (0, 0, 0), w / 16)

    # telefon
    arcade.draw_line(w / 2 + x, h * 0.3 + y, w * 0.33 + x, h * 0.3 + y, (0, 0, 0), w / 16)

    # tegn på vindue
    # arcade.finish_render()
    # hold vindue åbent
    # arcade.run()

# test af funktion
# OskarK(0, 0)
