denoland / denoland/std

Suggestion: Noise functions for @std/random

Open
#6,694 0 comments 2 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
3.6k
Forks
681
PR merge metrics
No merged PRs in 30d

Description

Add the following noise functions to `@std/random` with function signatures like:

```typescript
function perlin(x: number, y?: number, z?: number): number

function simplex(x: number, y?: number, z?: number, w?: number): number
```

I’ve been looking for a stable implementation of noise functions for some graphical use cases. It would be great if they supported seeding. There are more noise algorithms that are also useful for complex graphics but these two would be a good starting point.

Contributor guide

Open the contributing guide

Research direction

The issue names the @std/random package entry point but no files or tests. Start by locating that package and reviewing how the proposed perlin and simplex signatures, optional dimensions, and seeding requirement should fit its API. Done means both functions are available with the requested signatures and stable seeded behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.