{"id":24429127,"url":"https://github.com/sofianhw/roboeyes","last_synced_at":"2025-10-27T16:23:08.367Z","repository":{"id":270734669,"uuid":"911304491","full_name":"sofianhw/RoboEyes","owner":"sofianhw","description":"RoboEyes is a Python code that creates smoothly animated robot eyes for GUI displays","archived":false,"fork":false,"pushed_at":"2025-01-02T17:56:51.000Z","size":23,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-13T18:15:56.636Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sofianhw.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-02T17:48:46.000Z","updated_at":"2025-01-23T12:05:08.000Z","dependencies_parsed_at":null,"dependency_job_id":"5df1b626-d46f-4fd2-9686-eff756d0d29e","html_url":"https://github.com/sofianhw/RoboEyes","commit_stats":null,"previous_names":["sofianhw/roboeyes"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sofianhw/RoboEyes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sofianhw%2FRoboEyes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sofianhw%2FRoboEyes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sofianhw%2FRoboEyes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sofianhw%2FRoboEyes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sofianhw","download_url":"https://codeload.github.com/sofianhw/RoboEyes/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sofianhw%2FRoboEyes/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274434047,"owners_count":25284429,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-10T02:00:12.551Z","response_time":83,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-20T13:33:28.939Z","updated_at":"2025-10-27T16:23:03.314Z","avatar_url":"https://github.com/sofianhw.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RoboEyes Library\n\nRoboEyes is a Python library that creates smoothly animated robot eyes for GUI displays using **Pygame**. It provides configurable eye shapes and various moods and animations, making it ideal for robotics, art installations, and interactive applications.\n\n---\n\n## Installation\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/sofianhw/RoboEyes.git\n   ```\n2. Install required dependencies:\n   ```bash\n   pip install pygame\n   ```\n3. Run:\n   ```bash\n   python main.py\n   ```\n\n---\n\n## API Reference\n\n### General\n\n- **`begin(screen_width, screen_height, max_framerate)`**: Initialize RoboEyes.\n- **`update()`**: Update eye animations with frame rate limiting.\n- **`drawEyes()`**: Draw eyes without frame rate limiting.\n\n### Configurations\n\n- **`setWidth(left, right)`**: Set width of eyes.\n- **`setHeight(left, right)`**: Set height of eyes.\n- **`setBorderradius(left, right)`**: Set border radius.\n- **`setSpacebetween(space)`**: Adjust spacing between eyes.\n- **`setCyclops(on_off)`**: Toggle single-eye mode.\n\n### Expressions and Animations\n\n- **`setMood(mood)`**: Set mood (`HAPPY`, `TIRED`, `ANGRY`, `DEFAULT`).\n- **`anim_confused()`**: Confused animation.\n- **`anim_laugh()`**: Laughing animation.\n- **`blink(left=1, right=1)`**: Blink one or both eyes.\n\n### Macro Animators\n\n- **`setAutoblinker(on_off, interval, variation)`**: Random blinking.\n- **`setIdleMode(on_off, interval, variation)`**: Random repositioning.\n\n---\n\n## License\n\nThis project is licensed under the **GNU General Public License (GPL)**.\n\n---\n\n## Credits\n\nThe RoboEyes library is inspired by the [FluxGarage RoboEyes project](https://github.com/FluxGarage/RoboEyes/) by FluxGarage. Special thanks for the original work that inspired this project.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsofianhw%2Froboeyes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsofianhw%2Froboeyes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsofianhw%2Froboeyes/lists"}