From d5b3a82df8410471bb553d99f855dad1efe782d7 Mon Sep 17 00:00:00 2001 From: kareena14 <77340236+kareena14@users.noreply.github.com> Date: Sat, 8 Oct 2022 14:19:09 +0400 Subject: [PATCH] Add files via upload --- hooman/demos/rubix_code.py | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 hooman/demos/rubix_code.py diff --git a/hooman/demos/rubix_code.py b/hooman/demos/rubix_code.py new file mode 100644 index 0000000..8433174 --- /dev/null +++ b/hooman/demos/rubix_code.py @@ -0,0 +1,20 @@ +from hooman import Hooman + +import pygame + +hapi = Hooman(500, 500) + +len = 20 +wid = 10 + +while hapi.is_running: + hapi.background((0,0,0)) + + hapi.fill((255,0,0)) + hapi.rect(250,250,len,wid) + + hapi.flip_display() + hapi.event_loop() + +pygame.quit() +