{"id":25013910,"url":"https://github.com/prodev717/particle-life","last_synced_at":"2026-05-17T08:33:28.243Z","repository":{"id":275306728,"uuid":"925706753","full_name":"prodev717/particle-life","owner":"prodev717","description":"simulation of particle life in processing ( java )","archived":false,"fork":false,"pushed_at":"2025-02-05T14:19:01.000Z","size":4049,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-11T20:44:49.155Z","etag":null,"topics":["java","particle-life","processing"],"latest_commit_sha":null,"homepage":"","language":"Processing","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/prodev717.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,"zenodo":null}},"created_at":"2025-02-01T14:49:04.000Z","updated_at":"2025-02-05T14:19:07.000Z","dependencies_parsed_at":"2025-02-01T15:37:11.542Z","dependency_job_id":"204391ea-7719-46e1-8661-e2bc0abeb89b","html_url":"https://github.com/prodev717/particle-life","commit_stats":null,"previous_names":["prodev717/particle-life"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/prodev717/particle-life","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prodev717%2Fparticle-life","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prodev717%2Fparticle-life/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prodev717%2Fparticle-life/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prodev717%2Fparticle-life/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prodev717","download_url":"https://codeload.github.com/prodev717/particle-life/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prodev717%2Fparticle-life/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33131941,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-17T06:27:06.342Z","status":"ssl_error","status_checked_at":"2026-05-17T06:26:59.432Z","response_time":107,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["java","particle-life","processing"],"created_at":"2025-02-05T07:16:49.371Z","updated_at":"2026-05-17T08:33:28.221Z","avatar_url":"https://github.com/prodev717.png","language":"Processing","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Particle Simulation in Processing (Java)\n\n## Overview\nThis project is a simple particle simulation implemented in Processing (Java). The particles interact with each other based on a randomly generated interaction matrix, influencing their movement and behavior in a dynamic environment.\n\n## Features\n- **Particle Interactions**: Particles are assigned different types, each influencing the movement of others based on an interaction matrix.\n- **Random Forces**: The attraction and repulsion between particles are determined by a randomly generated force matrix.\n- **Realistic Motion**: Particles exhibit smooth motion with velocity damping and collision handling at the boundaries.\n- **Customizable Parameters**: Easily modify the number of particles, interaction strengths, and simulation dimensions.\n\n## Demo\n![Particle Simulation](demo.gif) \n\n## Installation \u0026 Usage\n### Requirements\n- [Processing](https://processing.org/) (Java Mode)\n\n### Running the Simulation\n1. Download or clone this repository:\n   ```sh\n   git clone https://github.com/prodev717/particle-simulation.git\n   ```\n2. Open the `particle_life.pde` file in Processing.\n3. Click the **Run** button to start the simulation.\n\n## Code Explanation\n### Core Components\n- **`Particle` Class**: Represents an individual particle with position, velocity, type, and behavior.\n- **`interactionMatrix`**: Defines how different types of particles interact with each other.\n- **`setup()`**: Initializes the simulation environment and particles.\n- **`draw()`**: Continuously updates and renders the particles on the canvas.\n\n### Key Functions\n- `randomForce()`: Generates random attraction/repulsion forces.\n- `display()`: Draws the particle on the screen.\n- `update()`: Updates the particle's position based on interactions and velocity.\n\n## Customization\nYou can modify the following parameters to tweak the simulation:\n- **Particle count**: Change `count = 1000` to increase or decrease the number of particles.\n- **Interaction strength**: Modify values inside `interactionMatrix` for different behaviors.\n- **Canvas size**: Adjust `size(1200, 900)` in `setup()` to change the simulation area.\n\n## License\nThis project is open-source under the [MIT License](LICENSE).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprodev717%2Fparticle-life","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprodev717%2Fparticle-life","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprodev717%2Fparticle-life/lists"}