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.1 KiB
47 lines
2.1 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://code.jquery.com/jquery-3.3.1.min.js" type="text/javascript"></script>
|
||
|
<script src="scripts/lib/benjo_library.js" type="text/javascript"></script>
|
||
|
<script src="scripts/events.js" type="text/javascript"></script>
|
||
|
<script src="scripts/sketch.js" type="text/javascript"></script>
|
||
|
<script src="scripts/ball.js" type="text/javascript"></script>
|
||
|
<script src="scripts/attraction.js" type="text/javascript"></script>
|
||
|
<link href="styles.css" rel="stylesheet">
|
||
|
<link href="color_picker_styles.css" rel="stylesheet">
|
||
|
<title>Physics</title>
|
||
|
</head>
|
||
|
<body>
|
||
|
<div id="canvasHolder"></div>
|
||
|
<div id="mainInterface">
|
||
|
<select id="itemSelector">
|
||
|
<option value="ball">Ball</option>
|
||
|
<option value="attractor">Magnet</option>
|
||
|
</select>
|
||
|
<input id="radiusRange" max="75" min="5" oninput="updateRadius(this);" type="range" value="20"/>
|
||
|
<center>
|
||
|
<span>Radius in Pixeln: </span>
|
||
|
<input id="radiusInput" max="75" min="5" oninput="updateRadius(this)" type="number" value="20">
|
||
|
</center>
|
||
|
<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 id="color_picker_numeric">
|
||
|
<input class="color_picker_rgb" max="255" min="0" onchange="colorPicker.updateFromRGB()" oninput="colorPicker.updateFromRGB()" type="number"/>
|
||
|
<input class="color_picker_rgb" max="255" min="0" onchange="colorPicker.updateFromRGB()" oninput="colorPicker.updateFromRGB()" type="number"/>
|
||
|
<input class="color_picker_rgb" max="255" min="0" onchange="colorPicker.updateFromRGB()" oninput="colorPicker.updateFromRGB()" type="number"/>
|
||
|
<input id="color_picker_hex" onchange="colorPicker.updateFromHEX(this, false)" style="background-color: #F00;" style="background-color: #F00;" type="text"/>
|
||
|
</div>
|
||
|
<div id="slot"></div>
|
||
|
</div>
|
||
|
</body>
|
||
|
</html>
|