{"id":18228785,"url":"https://github.com/zig-gamedev/znoise","last_synced_at":"2025-10-29T07:31:05.230Z","repository":{"id":260971084,"uuid":"882856898","full_name":"zig-gamedev/znoise","owner":"zig-gamedev","description":"Zig build package and bindings for https://github.com/Auburn/FastNoiseLite","archived":false,"fork":false,"pushed_at":"2025-01-03T00:49:38.000Z","size":27,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-03T01:31:35.383Z","etag":null,"topics":["bindings","fastnoiselite","gamedev","noise-generator","zig"],"latest_commit_sha":null,"homepage":"","language":"C","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/zig-gamedev.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":"2024-11-03T23:25:49.000Z","updated_at":"2025-01-03T00:49:42.000Z","dependencies_parsed_at":"2025-01-03T01:28:32.923Z","dependency_job_id":"04944f84-218f-437d-986f-aaacdb0b148e","html_url":"https://github.com/zig-gamedev/znoise","commit_stats":{"total_commits":4,"total_committers":1,"mean_commits":4.0,"dds":0.0,"last_synced_commit":"a52da9babfe6d14a0b3e3bfcaabb2907cc2c4e3b"},"previous_names":["zig-gamedev/znoise"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zig-gamedev%2Fznoise","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zig-gamedev%2Fznoise/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zig-gamedev%2Fznoise/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zig-gamedev%2Fznoise/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zig-gamedev","download_url":"https://codeload.github.com/zig-gamedev/znoise/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238786324,"owners_count":19530113,"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":["bindings","fastnoiselite","gamedev","noise-generator","zig"],"created_at":"2024-11-04T08:03:28.551Z","updated_at":"2025-10-29T07:30:59.971Z","avatar_url":"https://github.com/zig-gamedev.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# [znoise](https://github.com/zig-gamedev/znoise)\n\nZig build package and bindings for [FastNoiseLite](https://github.com/Auburn/FastNoiseLite)\n\n## Getting started\n\nExample `build.zig`:\n\n```zig\npub fn build(b: *std.Build) void {\n    const exe = b.addExecutable(.{ ... });\n\n    const znoise = b.dependency(\"znoise\", .{});\n    exe.root_module.addImport(\"znoise\", znoise.module(\"root\"));\n    exe.linkLibrary(znoise.artifact(\"FastNoiseLite\"));\n}\n```\n\nNow in your code you may import and use znoise:\n\n```zig\nconst znoise = @import(\"znoise\");\n\npub fn main() !void {\n    ...\n    {\n        const gen = znoise.FnlGenerator{};\n        const n2 = gen.noise2(0.1, 0.2);\n        const n3 = gen.noise3(1.0, 2.0, 3.0);\n\n        var x: f32 = 1.0;\n        var y: f32 = 2.0;\n        var z: f32 = 3.0;\n        gen.domainWarp3(\u0026x, \u0026y, \u0026z);\n    }\n\n    {\n        const gen = znoise.FnlGenerator{\n            .seed = 1337,\n            .frequency = 0.01,\n            .noise_type = .opensimplex2,\n            .rotation_type3 = .none,\n            .fractal_type = .none,\n            .octaves = 3,\n            .lacunarity = 2.0,\n            .gain = 0.5,\n            .weighted_strength = 0.0,\n            .ping_pong_strength = 2.0,\n            .cellular_distance_func = .euclideansq,\n            .cellular_return_type = .distance,\n            .cellular_jitter_mod = 1.0,\n            .domain_warp_type = .opensimplex2,\n            .domain_warp_amp = 1.0,\n        };\n        const n = gen.noise2(0.1, 0.2);\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzig-gamedev%2Fznoise","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzig-gamedev%2Fznoise","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzig-gamedev%2Fznoise/lists"}