import { AnimatedInputValue , RGBColor } from 'src/common' ; export function isNumber ( v ) { return typeof v === 'number' ; } export function isRGB ( value ) { const color = value as RGBColor ; return ( typeof color === 'object' && isNumber ( color . r ) && isNumber ( color . g ) && isNumber ( color . b ) ) ; }