-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
37 changed files
with
1,172 additions
and
237 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
html, | ||
body { | ||
margin: 0; | ||
background: #1d1f20; | ||
overflow: hidden; | ||
font-family: sans-serif; | ||
font-size: 13px; | ||
} | ||
|
||
#canvas { | ||
position: absolute; | ||
display: block; | ||
top: 0; | ||
left: 0; | ||
width: 100%; | ||
height: 100%; | ||
overflow: hidden; | ||
background: transparent; | ||
} | ||
|
||
#controls { | ||
position: fixed; | ||
left: 0em; | ||
bottom: 0em; | ||
color: #fff; | ||
-webkit-font-smoothing: antialiased; | ||
-moz-osx-font-smoothing: grayscale; | ||
|
||
box-sizing: border-box; | ||
padding: 15px; | ||
} | ||
|
||
label { | ||
display: flex; | ||
flex-flow: row wrap; | ||
margin: 0.75em 0; | ||
} | ||
|
||
label span { | ||
margin-left: 1em; | ||
order: 5; | ||
} | ||
|
||
@media only screen and (max-width: 1200px) and (max-height: 600px) { | ||
#controls label { | ||
display: none; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Gotta Light?</title> | ||
<link rel="stylesheet" type="text/css" href="index.css"> | ||
</head> | ||
|
||
<body> | ||
<canvas id="canvas"></canvas> | ||
<div id="controls"> | ||
<label> | ||
<span>Aperture</span> | ||
<input id="ray-aperture-input" type="range" min="0.5" max="90"> | ||
</label> | ||
<label> | ||
<span>Intensity</span> | ||
<input id="ray-reach-input" type="range" min="5" max="150"> | ||
</label> | ||
<label> | ||
<span>Radius</span> | ||
<input id="light-reach-input" type="range" min="1" max="10"> | ||
</label> | ||
<label> | ||
<span>Font size</span> | ||
<input id="phrase-gap-input" type="range" min="1" max="20"> | ||
</label> | ||
</div> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/redux/3.7.2/redux.min.js" integrity="sha256-Y8AuGIYFWCOBO5/w1oXzcEErW4JALGUWiG5VWleVWyw=" crossorigin="anonymous"></script> | ||
<script src="index.js"></script> | ||
</body> | ||
|
||
</html> |
Oops, something went wrong.