Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 1.23 KB

dw-random.colorrandom.md

File metadata and controls

32 lines (22 loc) · 1.23 KB

Home > @antv/dw-random > ColorRandom

ColorRandom class

Generator for color

Signature:

export declare class ColorRandom extends BasicRandom 

Properties

Property Modifiers Type Description
database ColorDB

Methods

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