Skip to main content

I just built a featurehave opened a pull request to Please.js that fits the bill in Pleaseallows generating a color from a hash.js, it still isn't merged with the main repo, but you can see it here:

https://github.com/ibarrajo/PleaseJS

You can map the string to a color like so:

varconst color = Please.make_color({
    from_hash: 'any"any string goes here'here"
});

For example, "any string goes here" will return as "#47291b"
and "another!" returns as "#1f0c3d"

I just built a feature that fits the bill in Please.js, it still isn't merged with the main repo, but you can see it here:

https://github.com/ibarrajo/PleaseJS

You can map the string to a color like so:

var color = Please.make_color({from_hash: 'any string goes here'});

"any string goes here" will return as "#47291b"
and "another!" returns as "#1f0c3d"

I have opened a pull request to Please.js that allows generating a color from a hash.

You can map the string to a color like so:

const color = Please.make_color({
    from_hash: "any string goes here"
});

For example, "any string goes here" will return as "#47291b"
and "another!" returns as "#1f0c3d"

Source Link

I just built a feature that fits the bill in Please.js, it still isn't merged with the main repo, but you can see it here:

https://github.com/ibarrajo/PleaseJS

You can map the string to a color like so:

var color = Please.make_color({from_hash: 'any string goes here'});

"any string goes here" will return as "#47291b"
and "another!" returns as "#1f0c3d"