{"id":25055043,"url":"https://github.com/mario-so/pandemicrs","last_synced_at":"2026-06-30T22:32:16.416Z","repository":{"id":237786658,"uuid":"795243132","full_name":"Mario-SO/pandemicrs","owner":"Mario-SO","description":"Pandemic simulation in rust and raylib","archived":false,"fork":false,"pushed_at":"2024-05-16T17:51:07.000Z","size":2366,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-31T07:44:45.799Z","etag":null,"topics":["raylib-rs","rust","simulation"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Mario-SO.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2024-05-02T21:42:51.000Z","updated_at":"2024-06-05T12:44:32.000Z","dependencies_parsed_at":"2024-05-03T06:35:45.774Z","dependency_job_id":"7083bc84-44f0-47c3-b431-15ee7b2ef659","html_url":"https://github.com/Mario-SO/pandemicrs","commit_stats":null,"previous_names":["mario-so/pandemicrs"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Mario-SO/pandemicrs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mario-SO%2Fpandemicrs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mario-SO%2Fpandemicrs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mario-SO%2Fpandemicrs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mario-SO%2Fpandemicrs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mario-SO","download_url":"https://codeload.github.com/Mario-SO/pandemicrs/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mario-SO%2Fpandemicrs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34986248,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-30T02:00:05.919Z","response_time":92,"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":["raylib-rs","rust","simulation"],"created_at":"2025-02-06T12:19:46.111Z","updated_at":"2026-06-30T22:32:16.394Z","avatar_url":"https://github.com/Mario-SO.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🌐 Pandemicrs\n\nWelcome to the **Pandemicrs** project! This interactive simulation visualizes the spread of an infectious disease among a simulated population within a graphical environment, crafted using Rust and Raylib.\n\n\u003c!-- add image from ./resources/pandemicrs.png --\u003e\n\n![Pandemicrs image](./resources/pandemicrs.png)\n\n## 📋 Features\n\n-  **Real-time Simulation**: Watch as a virtual population interacts and experiences the spread of an infection in real-time.\n-  **Infection Dynamics**: Visualize how proximity and time influence the spread of the disease among individuals.\n-  **Customizable Settings**: Adjust parameters such as population size and infection radius to see how they impact the dynamics of the infection.\n-  **Graphical Representation**: Each individual is represented as a pixel on the screen that changes color based on their infection status.\n-  **Performance Metrics**: Real-time display of frames per second (FPS) and a count of healthy vs. infected individuals.\n\n## 🚀 Setup and Run\n\n### Prerequisites\n\n-  Ensure you have [Rust installed](https://www.rust-lang.org/tools/install) on your system.\n-  Run `cargo add raylib`\n\n### Running the Simulation\n\n1. Clone the repository:\n   ```bash\n   git clone https://github.com/yourgithub/pandemic-simulation.git\n   cd pandemic-simulation\n   ```\n\n2. Compile and run the program:\n   ```bash\n   cargo run\n   ```\n\n## ⚙️ Configuration\n\nYou can modify the following constants in the code to tweak the simulation settings:\n\n-  `WINDOW_DIMENSIONS`: Set the dimensions of the window where the simulation runs.\n-  `POPULATION_SIZE`: Define the number of individuals in the simulation.\n-  `INFECTION_RADIUS`: Adjust the radius within which the infection can spread.\n-  `INFECTION_DURATION`: Set the duration an individual remains infectious.\n\n## 📊 Understanding the Output\n\n-  **White Pixel**: Represents a healthy individual.\n-  **Red Pixel**: Represents an infected individual.\n-  **FPS Display**: Shows how many frames per second the simulation is running.\n-  **Infection Counters**: Displays the current number of infected and healthy individuals.\n\nFeel free to explore and modify the behavior of the simulation to understand more about the spread of infectious diseases!\n\n## 🤝 Contributions\n\nContributions are welcome! Please feel free to fork the project, make changes, and submit a pull request.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmario-so%2Fpandemicrs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmario-so%2Fpandemicrs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmario-so%2Fpandemicrs/lists"}