import guard from './guard' ; param red param green param blue param alpha function rgba ( red , green , blue , alpha ) { return `rgba(${ guard ( 0 , 255 , red ) . toFixed ( ) }, ${ guard ( 0 , 255 , green ) . toFixed ( ) }, ${ guard ( 0 , 255 , blue ) . toFixed ( ) }, ${ parseFloat ( guard ( 0 , 1 , alpha ) . toFixed ( 3 ) ) })` ; } export default rgba ;