added some minor stuff to the doc

This commit is contained in:
Win 2025-03-26 17:14:14 +07:00
parent cdcbaf288e
commit 260e2d479f
5 changed files with 114 additions and 0 deletions

View File

@ -0,0 +1,86 @@
const canvas = d3.select(".canva");
// Add SVG element
const svg = canvas.append("svg")
.attr('width', '800')
.attr('height', '800');
// Hat
svg.append("rect")
.attr("width", 70)
.attr("height", 45)
.attr("x", "165")
.attr("y", "80")
svg.append("line")
.attr("x1", 150)
.attr("x2", 250)
.attr("y1", 125)
.attr("y2", 125)
.attr("stroke", "black")
// Body
svg.append("circle")
.attr("cx", "200")
.attr("cy", "170")
.attr("r", "45")
.attr("stroke", "black")
.attr("stroke-width", 5)
.attr("fill", "white")
svg.append("circle")
.attr("cx", "200")
.attr("cy", "270")
.attr("r", "60")
.attr("stroke", "black")
.attr("stroke-width", 5)
.attr("fill", "white")
svg.append("circle")
.attr("cx", "200")
.attr("cy", "400")
.attr("r", "80")
.attr("stroke", "black")
.attr("stroke-width", 5)
.attr("fill", "white")
svg.append("rect")
.attr("width", 10)
.attr("height", 50)
.attr("x", 120)
.attr("y", 0)
.attr("fill", "green")
.attr("rx", 15)
.attr("ry", 15);
// Face
svg.append("circle")
.attr("cx", "180")
.attr("cy", "170")
.attr("r", "5")
.attr("fill", "black")
svg.append("circle")
.attr("cx", "220")
.attr("cy", "170")
.attr("r", "5")
.attr("fill", "black")
// Shirt
svg.append("circle")
.attr("cx", "200")
.attr("cy", "240")
.attr("r", "5")
.attr("fill", "black")
svg.append("circle")
.attr("cx", "200")
.attr("cy", "270")
.attr("r", "5")
.attr("fill", "black")
svg.append("circle")
.attr("cx", "200")
.attr("cy", "300")
.attr("r", "5")
.attr("fill", "black")

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,25 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Lab 1</title>
<!-- LIBRARIES -->
<script src="d3.v7.min.js"></script>
<style>
html, body {
background-color: lightgray;
}
</style>
</head>
<body>
<h1>Snowman</h1>
<div class="canva">
</div>
</body>
<script src="app.js"></script>
</html>

View File

@ -0,0 +1 @@
,winsdominoes,bluefin,26.03.2025 17:13,file:///var/home/winsdominoes/.var/app/org.libreoffice.LibreOffice/config/libreoffice/4;