<div class="ui-container">
  <div>
    <input type="color" id="c" value="#e66465">
    <label for="c">色</label>
  </div>
</div>
html, body {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  background: #292a33;
  overflow: hidden;
}
.ui-container {
  position: absolute;
  left: 10px;
  top: 10px;
  z-index: 1;
  color: #f0f0f0;
}
function setup() {
  createCanvas(windowWidth, windowHeight);

  const inputColor = document.getElementById("c");
  inputColor.oninput = (event) => {
    fill(event.currentTarget.value);
  };
  
  fill(inputColor.value);
}

function draw() {
  clear();
  circle(width / 2, height / 2, 100);
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

  1. https://cdn.jsdelivr.net/npm/[email protected]/lib/p5.min.js