File size: 2,670 Bytes
dd4c5da |
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 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>3D ASCII Model Viewer</title>
<meta name="description" content="Interactive 3D ASCII art model viewer with customizable settings">
<link rel="stylesheet" href="assets/css/styles.css">
</head>
<body>
<header>
<h1>3D ASCII Model Viewer</h1>
</header>
<main class="container">
<div class="viewer-container">
<canvas id="ascii-canvas"></canvas>
<div id="loading" class="loading">Loading...</div>
</div>
<div class="controls-panel">
<div class="control-group">
<label for="model-select">Select Model:</label>
<select id="model-select">
<option value="cube">Cube</option>
<option value="sphere">Sphere</option>
<option value="torus">Torus</option>
<option value="teapot">Teapot</option>
</select>
</div>
<div class="control-group">
<h3>ASCII Settings</h3>
<label for="resolution">Resolution:</label>
<input type="range" id="resolution" min="10" max="100" value="50">
<span id="resolution-value">50</span>
<label for="charset">Character Set:</label>
<select id="charset">
<option value="default">@%#*+=-:. </option>
<option value="dense">ββββ </option>
<option value="simple">#*+-. </option>
<option value="numbers">9876543210</option>
</select>
<label for="color-mode">Color Mode:</label>
<select id="color-mode">
<option value="mono">Monochrome</option>
<option value="grayscale">Grayscale</option>
<option value="color">Full Color</option>
</select>
</div>
<div class="control-group">
<h3>Camera Controls</h3>
<label>
<input type="checkbox" id="auto-rotate" checked>
Auto Rotate
</label>
<button id="reset-camera">Reset Camera</button>
</div>
</div>
</main>
<footer>
<p>© 2023 3D ASCII Model Viewer | Built with Three.js</p>
</footer>
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>
<script src="assets/js/script.js"></script>
</body>
</html> |