{"id":29555866,"url":"https://github.com/tripledoublev/fungal-growth","last_synced_at":"2025-07-18T09:41:34.253Z","repository":{"id":303686603,"uuid":"1016294044","full_name":"tripledoublev/fungal-growth","owner":"tripledoublev","description":"generating hyphae","archived":false,"fork":false,"pushed_at":"2025-07-08T21:48:17.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-08T22:35:46.844Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://tripledoublev.github.io/fungal-growth/","language":"JavaScript","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/tripledoublev.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,"zenodo":null}},"created_at":"2025-07-08T19:34:10.000Z","updated_at":"2025-07-08T21:48:20.000Z","dependencies_parsed_at":"2025-07-08T22:35:51.454Z","dependency_job_id":"478147dc-0a73-4f9d-a89d-f3e8d1f4aaa2","html_url":"https://github.com/tripledoublev/fungal-growth","commit_stats":null,"previous_names":["tripledoublev/fungal-growth"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tripledoublev/fungal-growth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tripledoublev%2Ffungal-growth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tripledoublev%2Ffungal-growth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tripledoublev%2Ffungal-growth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tripledoublev%2Ffungal-growth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tripledoublev","download_url":"https://codeload.github.com/tripledoublev/fungal-growth/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tripledoublev%2Ffungal-growth/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265736312,"owners_count":23819928,"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-07-18T09:41:30.527Z","updated_at":"2025-07-18T09:41:34.218Z","avatar_url":"https://github.com/tripledoublev.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fungal Growth Simulation\n\nThis project simulates fungal hyphae growth patterns and exports them as SVG files.\n\n## Features\n\n- Simulates fungal hyphae growth with branching, attraction points, and septa formation\n- Highly configurable parameters for growth behavior\n- Exports SVG visualizations with color customization\n- Includes a randomization engine to generate thousands of varied outputs\n\n## Scripts\n\n### index.js\n\nThe main simulation script that generates a single SVG based on configuration parameters.\n\n#### Usage\n\n```bash\nnode index.js [options]\n```\n\n#### Options\n\n- `--config \u003cjson\u003e`: JSON string with configuration parameters\n- `--colors \u003cjson\u003e`: JSON string with color parameters\n- `--output \u003cpath\u003e`: Output SVG file path (default: fungal_hyphae.svg)\n\n#### Example\n\n```bash\nnode index.js --config '{\"width\":1000,\"height\":800,\"iterations\":400}' --output custom_growth.svg\n```\n\n### randomization-engine.js\n\nA script to generate multiple SVG exports with randomized parameters.\n\n#### Usage\n\n```bash\nnode randomization-engine.js [count]\n```\n\n- `count`: Number of SVG files to generate (default: 10)\n\n#### Configuration\n\nEdit the `engineConfig` object in the script to customize:\n\n- Number of iterations\n- Output directory\n- Parameter ranges for randomization\n\n## Configuration Parameters\n\nThe growth simulation accepts the following configuration parameters:\n\n| Parameter | Description | Default |\n|-----------|-------------|---------|\n| width | SVG canvas width | 800 |\n| height | SVG canvas height | 600 |\n| initialHyphae | Number of starting hyphae | 3 |\n| iterations | Number of growth iterations | 300 |\n| growthSpeed | How far each hypha grows per iteration | 2 |\n| branchProbability | Chance of branching per iteration | 0.03 |\n| maxBranchAngle | Maximum angle of branching (radians) | Math.PI / 4 |\n| maxBranchAngleDegrees | Alternative way to specify maxBranchAngle in degrees | - |\n| septaSpacing | Distance between septa (cross-walls) | 30 |\n| maxHyphae | Maximum number of hyphae to generate | 500 |\n| attractionPoints | Array of points that influence growth direction | See code |\n\n## Color Parameters\n\nThe following color parameters can be customized:\n\n| Parameter | Description | Default |\n|-----------|-------------|---------|\n| background | Background color | '#f8f8f8' |\n| hypha | Main hypha color | '#436b31' |\n| septa | Septa (cross-walls) color | '#547a3e' |\n| tip | Hyphal tip color | '#7aa364' |\n| spitzenkorper | Spitzenkörper (growth organelle) color | '#d98032' |\n\n## Generated Output\n\nThe randomization engine creates:\n- SVG files in the specified output directory\n- JSON metadata files with the corresponding parameters\n\n## Example\n\nTo generate 1000 random SVG files:\n\n```bash\nnode randomization-engine.js 1000\n```\n\nThe files will be saved in the `generated/` directory by default.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftripledoublev%2Ffungal-growth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftripledoublev%2Ffungal-growth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftripledoublev%2Ffungal-growth/lists"}