import type { THcl , TLab } from '@fantasy-color/types' ; export default ( { luminance , hue , chroma } ) : TLab => { const h = hue * ( Math . PI / 180 ) ; return { luminance , a : Math . cos ( h ) * chroma , b : Math . sin ( h ) * chroma , } ; } ;