{"id":26647555,"url":"https://github.com/scriptlinestudios/pygame_gifs","last_synced_at":"2025-03-24T23:52:30.974Z","repository":{"id":283968199,"uuid":"953185324","full_name":"ScriptLineStudios/pygame_gifs","owner":"ScriptLineStudios","description":"simple library for recording gifs in pygame","archived":false,"fork":false,"pushed_at":"2025-03-23T11:24:04.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-23T11:33:07.627Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ScriptLineStudios.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-03-22T19:05:20.000Z","updated_at":"2025-03-23T11:24:07.000Z","dependencies_parsed_at":"2025-03-23T11:33:13.467Z","dependency_job_id":"f82ab40c-ece4-4d14-bb7e-fd61634058bc","html_url":"https://github.com/ScriptLineStudios/pygame_gifs","commit_stats":null,"previous_names":["scriptlinestudios/pygame_gifs"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScriptLineStudios%2Fpygame_gifs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScriptLineStudios%2Fpygame_gifs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScriptLineStudios%2Fpygame_gifs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ScriptLineStudios%2Fpygame_gifs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ScriptLineStudios","download_url":"https://codeload.github.com/ScriptLineStudios/pygame_gifs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245372340,"owners_count":20604490,"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","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-03-24T23:52:30.310Z","updated_at":"2025-03-24T23:52:30.948Z","avatar_url":"https://github.com/ScriptLineStudios.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pygame_gifs\nsimple library for recording gifs in pygame\n\n## install\n\n```bash\npip install pygame_gifs\n```\n\n## example\n\n```python\nimport pygame\nimport pygame_gifs\n\nwidth = 600\nheight = 600\ndisplay = pygame.display.set_mode((width, height))\ngf = pygame_gifs.GifRecorder(\"output2.gif\", width, height, threads=8)\ngf.start_recording()\n\nclock = pygame.time.Clock()\n\nx = 0\nwhile True:\n    display.fill((0, 0, 0))\n\n    for event in pygame.event.get():\n        if event.type == pygame.QUIT:\n            pygame.quit()\n            gf.stop_recording()\n            raise SystemExit\n\n    x += 1\n    pygame.draw.rect(display, \"red\", (x, 40, 32, 32))\n\n    gf.upload_frame(display)\n\n    pygame.display.set_caption(f\"{clock.get_fps()}\")\n    pygame.display.update()\n    clock.tick(60)\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscriptlinestudios%2Fpygame_gifs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscriptlinestudios%2Fpygame_gifs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscriptlinestudios%2Fpygame_gifs/lists"}