Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement WebGL shaders #17

Merged
merged 6 commits into from
Aug 19, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions web/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<!DOCTYPE html>
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<title>Anime4K</title>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<link rel='stylesheet' type='text/css' media='screen' href='main.css'>
<script src='main.js'></script>
</head>
<body onload="onLoad();">
<div>
<span>Image/Video :</span>
<input type="text" id="txtSrc" value="input.png" placeholder="URI">
<button onclick="onSourceChanged();">Load from URI</button>
<span>or from</span>
<input type="file" id="fileImg" accept="image/*,video/*" onchange="onSelectFile(this);">
</div>
<div>
<span>Scale :</span>
<input type="number" id="txtScale" value="1.25" min="1.0" max="4.0" step="0.1" onchange="onScaleChanged();">
<span>Bold :</span>
<input type="range" id="sliderBold" value="6" min="0.0001" max="8" step="0.001">
<span>Blur :</span>
<input type="range" id="sliderBlur" value="2" min="0.0001" max="8" step="0.001">
</div>
<br>
<div>
<canvas id="board" width="1280" height="720">Oops!</canvas>
</div>
<video id="movOrig" autoplay loop preload="auto" crossorigin="anonymous">
Oops!
</video>
</body>
</html>
Binary file added web/input.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions web/main.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
body {
background-color: whitesmoke;
}

canvas {
background-color: black;
}

input[type=range] {
width: 200px;
}

video {
display: none;
}
Loading