CodingTrain / CodingTrain/Suggestion-Box
multi color brayer matrix for a Coding challange?
- Lingua principale
- Nessun dato sulla lingua
- Stelle
- 570
- Fork
- 85
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
I had this idea because I haven’t found any good Brayer matrix functions that let you work with a custom color array instead of just sticking to the typical R, G, B values that are either 0 or 255. Usually, the threshold is applied like this:
```
const threshold = ditherMatrix[x % 4][y % 4] / 15;
let newR = r > threshold * 255 ? 255 : 0;
let newG = g > threshold * 255 ? 255 : 0;
let newB = b > threshold * 255 ? 255 : 0;
```
This limits the colors to either full on or off, but I wanted a way to use more nuanced colors and still get that cool dithered effect, like using a set color array instead.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Non sono identificati file del repository, test o entry point. Inizia esaminando la logica di soglia proposta e definisci come un array di colori personalizzato dovrebbe influire sul Bayer-matrix dithering; done deve includere un ambito chiaramente specificato per il coding challenge e l'output previsto.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- javascript
- Ambito
- computer-graphics
- Tipo di issue
- Funzionalità
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100