from hooman import Hooman
import numpy
from math import pow
from math import sqrt
import pygame
window_width, window_height = 500, 500
hapi = Hooman(window_width, window_height)
bg_col = (255, 255, 255)
def handle_events(event):
if event.type == pygame.QUIT:
hapi.is_running = False
if event.type == pygame.KEYDOWN:
if event.key == pygame.K_ESCAPE:
hapi.is_running = False
hapi.handle_events = handle_events
clock = pygame.time.Clock()
while hapi.is_running:
hapi.background(bg_col)
hapi.fill(hapi.color['red'])
#hapi.text(n1, 10+hapi.mouseX(), 10+hapi.mouseY())
hapi.smooth_star(100, 100, 100, 100)
hapi.oil_drop(100, 250, 100, 100)
hapi.flowing_star(100, 350, 100, 100)
hapi.flip_display()
hapi.event_loop()
pygame.quit()