Bevy shader
by Zatcepin
HTML
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Интерактивная визуализация кисти (WGSL)</title>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<style>
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: #1e1e1e;
color: #e0e0e0;
display: flex;
flex-direction: column;
align-items: center;
padding: 20px;
margin: 0;
}
.container {
width: 95%;
max-width: 900px;
background: #2d2d2d;
padding: 25px;
border-radius: 10px;
box-shadow: 0 8px 20px rgba(0,0,0,0.6);
margin-bottom: 20px;
}
/* --- Стили для Слайдеров --- */
.sliders-panel {
background: #333;
padding: 15px;
border-radius: 8px;
margin-bottom: 20px;
display: flex;
gap: 20px;
flex-wrap: wrap;
justify-content: center;
border: 1px solid #444;
}
.slider-group {
display: flex;
flex-direction: column;
min-width: 200px;
}
.slider-label {
display: flex;
justify-content: space-between;
margin-bottom: 5px;
font-weight: bold;
font-size: 0.9em;
}
input[type=range] {
width: 100%;
cursor: pointer;
accent-color: #4facfe;
}
h2 { text-align: center; color: #4facfe; margin-top: 0; }
p { font-size: 0.95em; color: #ccc; line-height: 1.6; }
.chart-container {
position: relative;
height: 300px;
width: 100%;
}
...