q5play
    Preparing search index...

    Function createColorPicker

    • 📑 Creates a color input element.

      Use the value property to get or set the color value.

      Parameters

      • Optionalvalue: string

        initial color value

      Returns HTMLInputElement

      await Canvas(200, 100);

      let picker = createColorPicker();
      picker.value = '#fd7575';

      q5.draw = function () {
      background(picker.value);
      };