generateColorByString function creates a hexadecimal color code from an input string. The function calculates a hash of the string and uses it to derive the RGB values, which are then converted to a hexadecimal color code.ts
import { generateColorByString } from "@arkyn/shared";
propstring"#a1b2c3") derived from the input string.javascript
import { generateColorByString } from "./generateColorByString";const color = generateColorByString("example");console.log(color); // Generates a consistent hexadecimal color, such as "#5e8f9a"