UNPKG

@jbrowse/plugin-wiggle

Version:

JBrowse 2 wiggle adapters, tracks, etc.

11 lines (10 loc) 283 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.randomColor = randomColor; function randomColor(str) { let sum = 0; for (let i = 0; i < str.length; i++) { sum += str.charCodeAt(i); } return `hsl(${sum * 10}, 20%, 50%)`; }