{"id":26886444,"url":"https://github.com/leodeslf/worley-noise","last_synced_at":"2025-10-12T04:43:07.011Z","repository":{"id":127682446,"uuid":"411084817","full_name":"leodeslf/worley-noise","owner":"leodeslf","description":"A Worley Noise library for JavaScript.","archived":false,"fork":false,"pushed_at":"2021-10-01T20:59:55.000Z","size":106,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-12T04:43:06.015Z","etag":null,"topics":["worley-noise"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/@leodeslf/worley-noise","language":"JavaScript","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/leodeslf.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":"2021-09-28T00:31:53.000Z","updated_at":"2024-10-24T06:42:46.000Z","dependencies_parsed_at":"2023-05-26T21:15:37.442Z","dependency_job_id":null,"html_url":"https://github.com/leodeslf/worley-noise","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/leodeslf/worley-noise","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leodeslf%2Fworley-noise","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leodeslf%2Fworley-noise/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leodeslf%2Fworley-noise/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leodeslf%2Fworley-noise/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leodeslf","download_url":"https://codeload.github.com/leodeslf/worley-noise/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leodeslf%2Fworley-noise/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279010282,"owners_count":26084720,"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","status":"online","status_checked_at":"2025-10-12T02:00:06.719Z","response_time":53,"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":["worley-noise"],"created_at":"2025-03-31T19:18:51.849Z","updated_at":"2025-10-12T04:43:07.004Z","avatar_url":"https://github.com/leodeslf.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Worley Noise\n\n```txt\n\n     ____________    ____________ \n    /___________/\\  / ________  /\\\n    \\  ________ \\ \\/ /\\______/ / /\n     \\ \\ \\     \\ \\ \\/ /     / / /\n      \\ \\ \\     \\ \\ \\/     / / /\n       \\ \\ \\    /\\ \\ \\    / / /\n        \\ \\ \\  / /\\ \\ \\  / / /\n         \\ \\ \\/ / /\\ \\ \\/ / /\n          \\ \\ \\/ /  \\ \\ \\/ /\n           \\_\\__/    \\_\\__/\n\n```\n\n## About\n\nA Worley Noise library for JavaScript.\n\n## Feature Shape\n\n|`Worley`\n|---\n|`spots: Vec2[] \\| Vec3[]`\n|`set dimention: '2d' \\| '3d'`\n|`set metric: 'euclidean' \\| 'manhattan' \\| 'chebyshev' \\| 'minkowski'`\n|`st(position: Vec2 \\| Vec3, e?: number = 3): number` (1st closest)\n|`nd(position: Vec2 \\| Vec3, e?: number = 3): number[]` (1st and 2nd closest)\n\n## Install\n\n```bash\nnpm i @leodeslf/worley-noise\n```\n\n## Import\n\n```javascript\nimport Worley from '@leodeslf/worley-noise';\n```\n\n## Usage\n\n```javascript\nconst worley = new Worley(\n  spots,\n  '3d',       // Default '2d' (optional).\n  'manhattan' // Default 'euclidean' (optional).\n);\n\nworley.st(position);\n```\n\n[Live demo here](https://leodeslf.github.io/worley-noise/ \"GitHub Pages\") (3d, euclidean, nd - st).\n\n## Author\n\n[Leonardo de S.L.F](https://github.com/leodeslf \"GitHub profile\").\n\n## License\n\nMIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleodeslf%2Fworley-noise","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleodeslf%2Fworley-noise","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleodeslf%2Fworley-noise/lists"}