You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
2.3 KiB

2 years ago
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.7.2/p5.min.js" type="text/javascript"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.7.2/addons/p5.dom.min.js" type="text/javascript"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.7.2/addons/p5.sound.min.js" type="text/javascript"></script>
<script src="https://code.jquery.com/jquery-3.3.1.min.js" type="text/javascript"></script>
<script src="data/scripts/lib/benjo_library.js" type="text/javascript"></script>
<script src="data/scripts/events.js" type="text/javascript"></script>
<script src="data/scripts/sketch.js" type="text/javascript"></script>
<link href="styles.css" rel="stylesheet">
<link href="data/styles/color_picker.css" rel="stylesheet">
<link href="data/images/favicon.ico" rel="icon" type="image/x-icon">
<title>Colorpicker</title>
</head>
<body>
<div id="color_picker_holder">
<div id="color_picker">
<div id="saturation">
<div id="value">
<div id="sb_picker"></div>
</div>
</div>
<div id="hue">
<div id="hue_picker"></div>
</div>
</div>
</div>
<div id="color_picker_numeric_holder">
<div id="color_picker_numeric">
<div id="color_picker_rgb">
<input max="255" min="0" onchange="colorPicker.updateFromRGB()" oninput="colorPicker.updateFromRGB()" type="number"/>
<input max="255" min="0" onchange="colorPicker.updateFromRGB()" oninput="colorPicker.updateFromRGB()" type="number"/>
<input max="255" min="0" onchange="colorPicker.updateFromRGB()" oninput="colorPicker.updateFromRGB()" type="number"/>
</div>
<div id="color_picker_hsv">
<input max="360" min="0" onchange="colorPicker.updateFromHSV()" oninput="colorPicker.updateFromHSV()" type="number"/>
<input max="100" min="0" onchange="colorPicker.updateFromHSV()" oninput="colorPicker.updateFromHSV()" type="number"/>
<input max="100" min="0" onchange="colorPicker.updateFromHSV()" oninput="colorPicker.updateFromHSV()" type="number"/>
</div>
<input id="color_picker_hex" onchange="colorPicker.updateFromHEX(this, false)" style="background-color: #F00;" style="background-color: #F00;" type="text"/>
<div id="color_picker_final"></div>
</div>
</div>
</body>
</html>