aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Timber <dxdt@dev.snart.me>2025-04-03 01:02:58 +0200
committerDavid Timber <dxdt@dev.snart.me>2025-04-03 01:02:58 +0200
commit7ffb24a6eeb0513702051075decc613d013284db (patch)
treeef2d83deed65edf3752a188757be172b5296245f
parenta3cb688be29ca9d5be4a4cd2959c41d69077c8ad (diff)
Some final touches to the ripple-carry adderHEADmaster
-rw-r--r--linux-casual/mp-int/ripple-carry-adder/README.md5
-rwxr-xr-xlinux-casual/mp-int/ripple-carry-adder/animation-skel.svg37
-rw-r--r--linux-casual/mp-int/ripple-carry-adder/index.html2
3 files changed, 41 insertions, 3 deletions
diff --git a/linux-casual/mp-int/ripple-carry-adder/README.md b/linux-casual/mp-int/ripple-carry-adder/README.md
new file mode 100644
index 0000000..3ae065f
--- /dev/null
+++ b/linux-casual/mp-int/ripple-carry-adder/README.md
@@ -0,0 +1,5 @@
+# Ripple-carry Adder Interactive Animations
+This is CSS animated interactive ripple-carry adder. Made to help you understand
+how computers do math :)
+
+https://en.wikipedia.org/wiki/Adder_(electronics)#Ripple-carry_adder
diff --git a/linux-casual/mp-int/ripple-carry-adder/animation-skel.svg b/linux-casual/mp-int/ripple-carry-adder/animation-skel.svg
index 7cccd50..1f6d732 100755
--- a/linux-casual/mp-int/ripple-carry-adder/animation-skel.svg
+++ b/linux-casual/mp-int/ripple-carry-adder/animation-skel.svg
@@ -26,8 +26,8 @@
inkscape:deskcolor="#d1d1d1"
inkscape:document-units="mm"
inkscape:zoom="1.0333895"
- inkscape:cx="422.88024"
- inkscape:cy="420.94486"
+ inkscape:cx="534.64836"
+ inkscape:cy="310.62828"
inkscape:window-width="2560"
inkscape:window-height="1371"
inkscape:window-x="0"
@@ -227,6 +227,39 @@
</defs>
<text
xml:space="preserve"
+ style="font-size:5.29167px;font-family:Monospace;-inkscape-font-specification:'Monospace, Normal';text-align:start;writing-mode:lr-tb;direction:ltr;text-anchor:start;fill:#ffffff;stroke-width:0.529;stroke-linecap:round;stroke-miterlimit:5"
+ x="289.74066"
+ y="48.83646"
+ id="text24"><tspan
+ sodipodi:role="line"
+ id="tspan24"
+ style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:5.29167px;font-family:Sans;-inkscape-font-specification:'Sans, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;fill:#000000;fill-opacity:1;stroke-width:0.529"
+ x="289.74066"
+ y="48.83646">0</tspan></text>
+ <text
+ xml:space="preserve"
+ style="font-size:5.29167px;font-family:Monospace;-inkscape-font-specification:'Monospace, Normal';text-align:start;writing-mode:lr-tb;direction:ltr;text-anchor:start;fill:#ffffff;stroke-width:0.529;stroke-linecap:round;stroke-miterlimit:5"
+ x="144.3438"
+ y="158.83118"
+ id="text24-6"><tspan
+ sodipodi:role="line"
+ id="tspan24-18"
+ style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:5.29167px;font-family:Sans;-inkscape-font-specification:'Sans, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;fill:#000000;fill-opacity:1;stroke-width:0.529"
+ x="144.3438"
+ y="158.83118">CF</tspan></text>
+ <text
+ xml:space="preserve"
+ style="font-size:5.29167px;font-family:Monospace;-inkscape-font-specification:'Monospace, Normal';text-align:start;writing-mode:lr-tb;direction:ltr;text-anchor:start;fill:#ffffff;stroke-width:0.529;stroke-linecap:round;stroke-miterlimit:5"
+ x="14.740705"
+ y="48.83646"
+ id="text24-9"><tspan
+ sodipodi:role="line"
+ id="tspan24-1"
+ style="font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;font-size:5.29167px;font-family:Sans;-inkscape-font-specification:'Sans, Normal';font-variant-ligatures:normal;font-variant-caps:normal;font-variant-numeric:normal;font-variant-east-asian:normal;fill:#000000;fill-opacity:1;stroke-width:0.529"
+ x="14.740705"
+ y="48.83646">7</tspan></text>
+ <text
+ xml:space="preserve"
style="font-size:11.3248px;font-family:Monospace;-inkscape-font-specification:'Monospace, Normal';text-align:start;writing-mode:lr-tb;direction:ltr;text-anchor:start;display:inline;fill:#ff5733;stroke:#ff5733;stroke-width:0.529;stroke-linecap:round;stroke-miterlimit:5"
x="131.61467"
y="189.02167"
diff --git a/linux-casual/mp-int/ripple-carry-adder/index.html b/linux-casual/mp-int/ripple-carry-adder/index.html
index 6c6311a..3e760eb 100644
--- a/linux-casual/mp-int/ripple-carry-adder/index.html
+++ b/linux-casual/mp-int/ripple-carry-adder/index.html
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
- <title>Multiprecision integer arithmetics, animated</title>
+ <title>Ripple-carry adder, interactive</title>
<link rel="stylesheet" href="index.css">
<script src="index.js"></script>
</head>