{"id":18153443,"url":"https://github.com/thinknathan/defold-noise","last_synced_at":"2025-03-31T16:30:27.131Z","repository":{"id":212578214,"uuid":"648905978","full_name":"thinknathan/defold-noise","owner":"thinknathan","description":null,"archived":false,"fork":false,"pushed_at":"2023-12-29T04:07:46.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2023-12-29T05:22:16.086Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"cc0-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thinknathan.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}},"created_at":"2023-06-03T06:45:22.000Z","updated_at":"2023-12-29T05:22:16.087Z","dependencies_parsed_at":"2023-12-21T00:00:17.271Z","dependency_job_id":null,"html_url":"https://github.com/thinknathan/defold-noise","commit_stats":null,"previous_names":["thinknathan/defold-noise"],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinknathan%2Fdefold-noise","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinknathan%2Fdefold-noise/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinknathan%2Fdefold-noise/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thinknathan%2Fdefold-noise/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thinknathan","download_url":"https://codeload.github.com/thinknathan/defold-noise/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":222666828,"owners_count":17019883,"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":"2024-11-02T03:07:04.103Z","updated_at":"2024-11-02T03:07:04.759Z","avatar_url":"https://github.com/thinknathan.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# defold-noise\n\nA defold native extension attempting to implement Open Simplex 2 2d noise and Fractal noise.\n\nNot yet tested.\n\n## Usage\n\n```lua\n-- Generate a single noise value\nlocal x = 0.5\nlocal y = 0.8\nlocal singleValue = noise.noise_2d(x, y)\nprint(\"Single noise value: \", singleValue)\n\n-- Generate fractal noise with multiple octaves\nlocal octaves = 4\nlocal lacunarity = 2.0\nlocal gain = 0.5\nlocal fractalValue = noise.fractal_noise(x, y, octaves, lacunarity, gain)\nprint(\"Fractal noise value: \", fractalValue)\n```\n\n## Background\n\nCreated with Chat-GPT. Prompt:\n\n```\ncreate a defold extension that exposes a module to lua, use c++ that does not use any features newer than 2009, and does not use the standard library, and always uses const char* instead of std::string.\n\nthe name of the module is noise.\n\nimplement open simplex 2 noise.\n\nuse static classes instead of namespaces.\n\nimplement fractal noise with 2d simplex noise as its source.\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinknathan%2Fdefold-noise","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthinknathan%2Fdefold-noise","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthinknathan%2Fdefold-noise/lists"}