type

type - Specifies how the color values are defined. The following values are supported:

  • hex - Hexadecimal color values (example: #FF0000).
  • rgb - RGB color values specified with (red, green, blue - example: rgb(255, 0, 0)).
  • hsl - HSL color values specified with (hue, saturation, lightness - example: hsl(120, 100%, 50%)).

Its default values is hex.


<input id="colorpicker" type="color" />

<script type="text/javascript">

     $(function () {
        $("#colorpicker").shieldColorPicker({
           advancedPalette: {
                  type: "rgb",
           },
           value: rgb(255, 0, 0)
        });
     });

</script>