-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
28 lines (24 loc) · 898 Bytes
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<meta charset="utf-8">
<title>Color Contrast with Machine Learning</title>
<link rel="stylesheet" href="css/style.css">
<script src="https://code.jquery.com/jquery-3.3.1.min.js" crossorigin="anonymous"></script>
<script src="https://unpkg.com/brain.js@1.1.2/browser.min.js"></script>
<script src="js/rgbMethod.js"></script>
<script src="js/trainBrain.js"></script>
<script src="js/changeBackground.js"></script>
</head>
<body>
<h3>Machine Learning with Brain.JS</h3>
<hr>
<p>
Upon picking a color, the neural network will distinguish between dark and light colors and pick the appropriate text color
</p>
<input type="color" id="color-picker" name="color-picker" value="#ff0000">
Select a color
</input>
<div id="color-background">Nic Tamura</div>
</body>
</html>