Skip to main content
Module

x/color_hash/mod.ts>default#rgb

Generate color based on the given string (using HSL color space and SHA256).
Latest
method default.prototype.rgb
import { default } from "https://deno.land/x/color_hash@v2.0.1/mod.ts";

Returns the hash in [r, g, b]. Note that R, G, B ∈ [0, 255]

Parameters

str: string

string to hash