Files
pixx.cz/index.html
David Zálešák 3470b18388
All checks were successful
Build and Deploy / build-and-push (push) Successful in 29s
přidání šrafování
2026-04-30 14:28:16 +02:00

53 lines
1.4 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>pixx</title>
<style>
html,
body {
margin: 0;
padding: 0;
height: 100%;
width: 100%;
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
background-color: #00224D;
}
svg {
width: 100%;
height: 100%;
viewBox: 0 0 300 200;
}
</style>
</head>
<body>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 300 200">
<defs>
<!-- Definice šrafovacího vzoru: šikmé čáry v rozestupu 10 px -->
<pattern id="hatchPattern" width="10" height="10"
patternUnits="userSpaceOnUse" patternTransform="rotate(45)">
<line x1="0" y1="0" x2="0" y2="10"
stroke="white" stroke-width="1"/>
</pattern>
</defs>
<circle cx="150" cy="100" r="50" stroke="white" stroke-width="2" fill="url(#hatchPattern)" />
<line x1="150" y1="95" x2="150" y2="105" stroke="white" stroke-width="1" />
<line x1="145" y1="100" x2="155" y2="100" stroke="white" stroke-width="1" />
<line x1="150" y1="100" x2="200" y2="100" stroke="#FF204E" stroke-width="1.5" />
<text x="170" y="95" font-size="16" fill="#FF204E">x</text>
<text x="75" y="180" font-size="18" fill="white">A = π ⋅ x²</text>
</svg>
</body>
</html>