{"id":51063583,"url":"https://github.com/deblasis/zionoise","last_synced_at":"2026-06-23T04:30:28.047Z","repository":{"id":355020367,"uuid":"1226237010","full_name":"deblasis/zionoise","owner":"deblasis","description":"Noise generation for Zig: Perlin, Simplex, fBm. Seedable, comptime generic. 40 tests.","archived":false,"fork":false,"pushed_at":"2026-05-01T12:27:42.000Z","size":19,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-01T14:14:00.060Z","etag":null,"topics":["game-engine","gamedev","gamedev-library","zig","zig-lang"],"latest_commit_sha":null,"homepage":null,"language":"Zig","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/deblasis.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","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,"notice":null,"maintainers":null,"copyright":null,"agents":"AGENTS.md","dco":null,"cla":null},"funding":{"github":"deblasis","ko_fi":"deblasis","custom":["https://etherscan.io/address/0x9664E083C380F3b655f76B37D73d419F49bD7e8b"]}},"created_at":"2026-05-01T06:13:42.000Z","updated_at":"2026-05-01T12:27:46.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/deblasis/zionoise","commit_stats":null,"previous_names":["deblasis/zionoise"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/deblasis/zionoise","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deblasis%2Fzionoise","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deblasis%2Fzionoise/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deblasis%2Fzionoise/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deblasis%2Fzionoise/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/deblasis","download_url":"https://codeload.github.com/deblasis/zionoise/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/deblasis%2Fzionoise/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34675970,"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-23T02:00:07.161Z","response_time":65,"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":["game-engine","gamedev","gamedev-library","zig","zig-lang"],"created_at":"2026-06-23T04:30:26.748Z","updated_at":"2026-06-23T04:30:28.040Z","avatar_url":"https://github.com/deblasis.png","language":"Zig","funding_links":["https://github.com/sponsors/deblasis","https://ko-fi.com/deblasis","https://etherscan.io/address/0x9664E083C380F3b655f76B37D73d419F49bD7e8b"],"categories":[],"sub_categories":[],"readme":"# zionoise\n\n\u003e Noise generation for Zig: Perlin, Simplex, fBm. Seedable, pure functions.\n\nPart of the [zio-zig](https://github.com/deblasis/zio-zig) ecosystem.\n\n## Quick start\n\n```zig\nconst noise = @import(\"zionoise\");\n\n// Perlin noise 2D\nconst v1 = noise.perlin2D(f32, 1.5, 2.5, 42);  // seed=42\n\n// Simplex noise 2D and 3D\nconst v2 = noise.simplex2D(f32, 1.5, 2.5, 42);\nconst v3 = noise.simplex3D(f32, 1.0, 2.0, 3.0, 42);\n\n// Fractal Brownian Motion (layered noise)\nconst terrain = noise.fbm2D(f32, 10.0, 10.0, 42, 4, 2.0, 0.5);\n//                        coords    seed  octaves lacunarity persistence\n\n// Generate a terrain heightmap\nfor (0..height) |y| {\n    for (0..width) |x| {\n        const h = noise.fbm2D(f32,\n            @floatFromInt(x) * 0.05,\n            @floatFromInt(y) * 0.05,\n            seed, 6, 2.0, 0.5);\n        heightmap[y * width + x] = h;\n    }\n}\n```\n\n```bash\nzig build test          # Run 40 tests\nzig build run-example   # Run example\n```\n\n## Example output\n\n```\n$ zig build run-example\nPerlin 2D at (0.5, 0.5): 0.7500\nSimplex 2D at (1.0, 1.0): 0.8805\nfBm (4 octaves): 0.4000\n\n2D Perlin noise:\n.+++++++++....     ..+###++....++#####++\n+++####++++++..    .++####++++++#####++.\n+###########++..  ..++#####++++######++.\n#############++....++###############+...\n```\n\n## API\n\nAll functions are pure — no state, no allocation.\n\n### Perlin noise\n- `perlin2D(T, x, y, seed)` — 2D Perlin noise, returns `T`\n\n### Simplex noise\n- `simplex2D(T, x, y, seed)` — 2D Simplex noise\n- `simplex3D(T, x, y, z, seed)` — 3D Simplex noise\n\n### Fractal Brownian Motion\n- `fbm2D(T, x, y, seed, octaves, lacunarity, persistence)` — Layered Perlin noise for terrain/clouds\n\n### Properties\n- Perlin noise: zero at integer coordinates, range ≈ [-1, 1]\n- Simplex noise: range ≈ [-1, 1]\n- Same seed + same coords = same result (deterministic)\n\n## License\n\nMIT. Copyright (c) 2026 Alessandro De Blasis.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeblasis%2Fzionoise","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdeblasis%2Fzionoise","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdeblasis%2Fzionoise/lists"}