Colors
randColor
Generate a random color.
import { randColor } from '@ngneat/falso';
randColor()
randColor({ length: 10 })
Live Editor
Result
Loading...
randHex
Generate a random hex.
import { randHex } from '@ngneat/falso';
randHex()
randHex({ length: 10 })
Live Editor
Result
Loading...
randHsl
Generate a random hsl color.
import { randHsl } from '@ngneat/falso';
randHsl()
randHsl({ length: 3 })
randHsl({ alpha: true }) // default is false
Live Editor
Result
Loading...
randRgb
Generate a random rgb.
import { randRgb } from '@ngneat/falso';
randRgb()
randRgb({ alpha: true }) // default is false
randRgb({ length: 10 })
Live Editor
Result
Loading...