source/colors.js
// and reposition the associated color slider

and reposition the associated color slider
and reposition the associated color slider
function onValueChange(e) {
    switch (e.target) {
      case rValue:
        rSlider.value = rValue.value = validateRGB(rValue.value)
        break;
      case gValue:
        gSlider.value = gValue.value = validateRGB(gValue.value)
        break;
      case bValue:
        bSlider.value = bValue.value = validateRGB(bValue.value)
        break;
    }
    updateColor(rSlider.value, gSlider.value, bSlider.value)
  }
function onValueChange ( e ) { switch ( e . target ) { case rValue : rSlider . value = rValue . value = validateRGB ( rValue . value ) break ; case gValue : gSlider . value = gValue . value = validateRGB ( gValue . value ) break ; case bValue : bSlider . value = bValue . value = validateRGB ( bValue . value ) break ; } updateColor ( rSlider . value , gSlider . value , bSlider . value ) }
and reposition the associated color slider
and reposition the associated color slider