Skip to content

Instantly share code, notes, and snippets.

View NazimMertBilgi's full-sized avatar
😎
working

Nazım Mert BİLGİ NazimMertBilgi

😎
working
View GitHub Profile
@0x263b
0x263b / colors.md
Last active November 4, 2024 22:56
Random color from string in javascript

Random color from string in javascript

Consider a list of strings you need to permanently assign a random color.

First you should turn the string into a hash.

var string = "string"
var hash = 0