Home > @antv/dw-random > ColorRandom
Generator for color
Signature:
export declare class ColorRandom extends BasicRandom
Property | Modifiers | Type | Description |
---|---|---|---|
database | ColorDB |
Method | Modifiers | Description |
---|---|---|
colorname() | return a Color Keyword | |
decimalcolor(options) | return a decimal color | |
hexcolor(options) | return a hex color | |
hsl(options) | return a hsl color | |
hsla(options) | return a hsl color with alpha | |
rgb(options) | return a rag color | |
rgba(optios) | return a rag color with alpha |