UNPKG

molstar

Version:

A comprehensive macromolecular library.

23 lines (22 loc) 968 B
/** * Copyright (c) 2019 mol* contributors, licensed under MIT, See LICENSE file for more info. * * @author Alexander Rose <alexander.rose@weirdbyte.de> * * adapted from https://github.com/internalfx/distinct-colors (ISC License Copyright (c) 2015, InternalFX Inc.) * which is heavily inspired by http://tools.medialab.sciences-po.fr/iwanthue/ */ import { ParamDefinition as PD } from '../../mol-util/param-definition'; export declare const DistinctColorsParams: { hue: PD.Interval; chroma: PD.Interval; luminance: PD.Interval; clusteringStepCount: PD.Numeric; minSampleCount: PD.Numeric; }; export declare type DistinctColorsParams = typeof DistinctColorsParams; export declare type DistinctColorsProps = PD.Values<typeof DistinctColorsParams>; /** * Create a list of visually distinct colors */ export declare function distinctColors(count: number, props?: Partial<DistinctColorsProps>): import("./color").Color[];