Summary Files Commits Branches @commit @diff @stats
path: root / Year 2 / Computer Graphics with WebGL / Project / Project.html
diff options
context:
space:
mode:
Commitd31ecfbf0e16069163e82ee33f815174de2391f6 (patch)
Author
 Syndamia <kamen@syndamia.com>
2023-08-27 16:24:25 +0300
Committer
 Syndamia <kamen@syndamia.com>
2023-08-27 16:24:25 +0300
Filesfff6bea135b5688c2338fdf3745c19c7c324a923 /Year 2/Computer Graphics with WebGL/Project/Project.html
uni-projects-d31ecfbf0e16069163e82ee33f815174de2391f6.tar
uni-projects-d31ecfbf0e16069163e82ee33f815174de2391f6.tar.gz
uni-projects-d31ecfbf0e16069163e82ee33f815174de2391f6.zip
Parent034d9301fdd5cc70648e2cd9a6ae202b89eebe39 (diff)
[WGL/P] Added coordinates in the top left corner
1 files changed, 8 insertions, 0 deletions
-rw-r--r--Year 2/Computer Graphics with WebGL/Project/Project.html8
diff --git a/Year 2/Computer Graphics with WebGL/Project/Project.html b/Year 2/Computer Graphics with WebGL/Project/Project.html
index c4d090c..b4463df 100644
--- a/Year 2/Computer Graphics with WebGL/Project/Project.html
+++ b/Year 2/Computer Graphics with WebGL/Project/Project.html
@@ -59,6 +59,12 @@ h2 {
max-width: 24em;
max-height: calc(100vh - 0.5em);
}
+#coordinates {
+ left: 0;
+ top: 0;
+ color: white;
+ position: absolute;
+}
</style>
<script src="spaceship.js"></script>
@@ -165,10 +171,12 @@ h2 {
<h2>Settings</h2>
<p>
Debug mode: <input type="checkbox" id="debug-mode"><br>
+ Toggle coordinates: <input type="checkbox" id="coordinates-cb"><br>
Only horizontal mouse movement: <input type="checkbox" id="only-horizontal"><br>
Only vertical mouse movement: <input type="checkbox" id="only-vertical">
</p>
</div>
</div>
+ <div id="coordinates"></div>
<script src="menu.js"></script>
</body>