Metadata-Version: 2.1
Name: hooman
Version: 0.1.7
Summary: Pygame for humans
Home-page: https://github.com/Abdur-RahmaanJ/hooman
Author: Abdur-Rahmaan Janhangeer
Author-email: arj.python@gmail.com
License: UNKNOWN
Project-URL: Bug Reports, https://github.com/Abdur-RahmaanJ/hooman/issues
Project-URL: Source, https://github.com/Abdur-RahmaanJ/hooman/
Description: # hooman
        ~ pygame for humans
        
        ```
        pip install hooman
        ```
        
        # demos
        
        
        ![](assets/color_change.gif)
        
        ```python
        from hooman import Hooman
        
        import pygame
        
        hapi = Hooman(500, 500)
        
        def handle_events(event):
            if event.type == pygame.QUIT:
                hapi.is_running = False
        
        hapi.handle_events = handle_events
        
        while hapi.is_running:
            hapi.background((255, 255, 255))
        
            hapi.no_stroke()
            mx = (hapi.mouseX() / hapi.WIDTH) * 255
        
            hapi.fill((0, mx, 0))
            for i in range(50 , 200, 60):
                hapi.rect(i, 50, 30, 30)
        
            hapi.fill((255, 0, 0))
            hapi.ellipse(hapi.mouseX(), hapi.mouseY(), 10, 10)
        
            hapi.stroke_size(1)
            hapi.stroke((255, 10, 10))
            hapi.line(0, hapi.mouseY(), hapi.mouseX()-10, hapi.mouseY())
        
            hapi.flip_display()
            hapi.event_loop()
        
        pygame.quit()
        
        ```
        
        ![](assets/line_mouse.gif)
        
        ```python
        from hooman import Hooman
        
        import pygame
        
        hapi = Hooman(500, 500)
        
        def handle_events(event):
            if event.type == pygame.QUIT:
                hapi.is_running = False
        
        hapi.handle_events = handle_events
        
        while hapi.is_running:
            hapi.background((255, 255, 255))
        
            hapi.stroke_weight(5)
            hapi.stroke((0, 255, 0))
        
            for i in range(0, hapi.WIDTH, 20):
                hapi.line(i, 0, hapi.mouseX(), hapi.mouseY())
        
            hapi.flip_display()
            hapi.event_loop()
        
        pygame.quit()
        
        ```
        
        ![](assets/squares.jpg)
        
        ```python
        from hooman import Hooman
        
        import pygame
        
        hapi = Hooman(500, 500)
        
        def handle_events(event):
            if event.type == pygame.QUIT:
                hapi.is_running = False
        
        hapi.handle_events = handle_events
        
        size = 50
        while hapi.is_running:
            hapi.background((255, 255, 255))
        
            hapi.no_stroke()
            hapi.fill((0, 255, 0))
            hapi.rect(10, 10, size, size)
            hapi.fill((255, 255, 0))
            hapi.rect(100, 100, size, size)
            hapi.fill((255, 0, 0))
            hapi.rect(100, 10, size, size)
            hapi.fill((0, 0, 255))
            hapi.rect(10, 100, size, size)
        
            hapi.flip_display()
            hapi.event_loop()
        
        pygame.quit()
        
        ```
        
        # docs
        
        coming soon ...
Keywords: human pygame canvas api wrapper
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
Requires-Python: >=3.4
Description-Content-Type: text/markdown
