Can you provide me a ppt on floor of fourth ventricle of brain for 1st year mbbs seminar level
ls /home/daytona/workspace/ 2>/dev/null && echo "OK"
mkdir -p /home/daytona/workspace/fourth-ventricle-ppt
~/fourth-ventricle-ppt/create_ppt.js
const pptxgen = require("pptxgenjs");
const { execSync } = require("child_process");
// Fetch images as base64
const imageUrls = [
"https://cdn.orris.care/cdss_images/662d53871e6a45e8449cdb1c36997039f7eb54f3af754123bc9cf1f3f070f19e.png",
"https://cdn.orris.care/cdss_images/fa9bb1a7b5f9abc6a745819dc04df9d3494b7791716f3c282ae4568f8a164f57.png",
"https://cdn.orris.care/cdss_images/3a03843f23040e9ddd61caa77864caf4c1f75a3c6d6272a7878ea5b689ed4e23.png"
];
let images = [];
try {
const result = execSync(
`node /home/daytona/skills/shared/scripts/fetch_images.js ${imageUrls.map(u => `"${u}"`).join(" ")}`,
{ maxBuffer: 50 * 1024 * 1024 }
).toString();
images = JSON.parse(result);
console.log("Images fetched:", images.map(i => i.error ? `ERROR: ${i.error}` : "OK"));
} catch(e) {
console.error("Image fetch error:", e.message);
images = imageUrls.map(() => ({ base64: null, error: "fetch failed" }));
}
// Color palette - deep navy + teal + gold
const NAVY = "0D1B2A";
const TEAL = "1A7A8A";
const GOLD = "D4A017";
const WHITE = "FFFFFF";
const LIGHT = "E8F4F8";
const ACCENT = "FF6B35";
const DARK_TEAL = "0D5463";
const LIGHT_GREY = "F0F4F8";
let pres = new pptxgen();
pres.layout = "LAYOUT_16x9";
pres.title = "Floor of the Fourth Ventricle";
pres.author = "1st Year MBBS Seminar";
// ─────────────────────────────────────────────
// SLIDE 1: Title Slide
// ─────────────────────────────────────────────
let slide1 = pres.addSlide();
// Background
slide1.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: NAVY } });
// Decorative teal bar left
slide1.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 0.25, h: 5.625, fill: { color: TEAL } });
// Gold accent bottom bar
slide1.addShape(pres.ShapeType.rect, { x: 0, y: 4.9, w: 10, h: 0.15, fill: { color: GOLD } });
// Gold accent line top
slide1.addShape(pres.ShapeType.rect, { x: 0.25, y: 0.5, w: 9.5, h: 0.03, fill: { color: GOLD } });
// Decorative circle
slide1.addShape(pres.ShapeType.ellipse, { x: 7.5, y: -0.5, w: 3.5, h: 3.5, fill: { color: TEAL }, line: { color: TEAL } });
slide1.addShape(pres.ShapeType.ellipse, { x: 7.8, y: -0.2, w: 2.8, h: 2.8, fill: { color: NAVY }, line: { color: NAVY } });
slide1.addText("NEUROANATOMY SEMINAR", {
x: 0.5, y: 0.8, w: 9, h: 0.4,
fontSize: 12, color: GOLD, bold: true, charSpacing: 4, fontFace: "Calibri"
});
slide1.addText("Floor of the\nFourth Ventricle", {
x: 0.5, y: 1.3, w: 7, h: 2.2,
fontSize: 40, color: WHITE, bold: true, fontFace: "Calibri",
lineSpacingMultiple: 1.2
});
slide1.addText("Rhomboid Fossa", {
x: 0.5, y: 3.45, w: 7, h: 0.5,
fontSize: 22, color: TEAL, italic: true, fontFace: "Calibri"
});
slide1.addShape(pres.ShapeType.rect, { x: 0.5, y: 4.0, w: 3.5, h: 0.03, fill: { color: GOLD } });
slide1.addText("1st Year MBBS | Gross Anatomy Seminar", {
x: 0.5, y: 4.2, w: 8, h: 0.35,
fontSize: 12, color: LIGHT, fontFace: "Calibri"
});
// ─────────────────────────────────────────────
// SLIDE 2: Learning Objectives
// ─────────────────────────────────────────────
let slide2 = pres.addSlide();
slide2.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: LIGHT_GREY } });
slide2.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 1.1, fill: { color: NAVY } });
slide2.addShape(pres.ShapeType.rect, { x: 0, y: 1.1, w: 10, h: 0.06, fill: { color: TEAL } });
slide2.addText("LEARNING OBJECTIVES", {
x: 0.4, y: 0.25, w: 9.2, h: 0.65,
fontSize: 26, color: WHITE, bold: true, fontFace: "Calibri"
});
const objectives = [
{ num: "01", text: "Define the fourth ventricle and describe its location in the brainstem" },
{ num: "02", text: "Identify all surface features of the rhomboid fossa (floor)" },
{ num: "03", text: "Explain the significance of the sulcus limitans dividing motor and sensory areas" },
{ num: "04", text: "Describe the clinically important facial colliculus and underlying structures" },
{ num: "05", text: "List the boundaries, communications, and apertures of the fourth ventricle" },
{ num: "06", text: "Correlate anatomy with clinical relevance of floor lesions" },
];
objectives.forEach((obj, i) => {
const x = i < 3 ? 0.3 : 5.2;
const y = 1.35 + (i % 3) * 1.27;
slide2.addShape(pres.ShapeType.rect, { x, y, w: 4.5, h: 1.1, fill: { color: WHITE }, line: { color: TEAL, pt: 1 }, shadow: { type: "outer", blur: 4, offset: 2, angle: 45, color: "aaaaaa" } });
slide2.addShape(pres.ShapeType.rect, { x, y, w: 0.55, h: 1.1, fill: { color: TEAL } });
slide2.addText(obj.num, { x: x + 0.02, y: y + 0.3, w: 0.52, h: 0.5, fontSize: 18, color: WHITE, bold: true, fontFace: "Calibri", align: "center" });
slide2.addText(obj.text, { x: x + 0.65, y: y + 0.1, w: 3.7, h: 0.9, fontSize: 11, color: NAVY, fontFace: "Calibri", valign: "middle", wrap: true });
});
// ─────────────────────────────────────────────
// SLIDE 3: Introduction - What is the Fourth Ventricle?
// ─────────────────────────────────────────────
let slide3 = pres.addSlide();
slide3.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: WHITE } });
slide3.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 0.9, fill: { color: NAVY } });
slide3.addShape(pres.ShapeType.rect, { x: 0, y: 0.9, w: 10, h: 0.05, fill: { color: TEAL } });
slide3.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 0.2, h: 5.625, fill: { color: TEAL } });
slide3.addText("INTRODUCTION: THE FOURTH VENTRICLE", {
x: 0.4, y: 0.15, w: 9.2, h: 0.65,
fontSize: 22, color: WHITE, bold: true, fontFace: "Calibri"
});
// Left content panel
slide3.addShape(pres.ShapeType.rect, { x: 0.3, y: 1.05, w: 5.4, h: 4.3, fill: { color: LIGHT_GREY }, line: { color: LIGHT_GREY } });
const introPoints = [
{ heading: "Definition", text: "A tent-shaped cavity in the posterior cranial fossa, the most caudal of the four ventricles" },
{ heading: "Location", text: "Lies between the brainstem anteriorly and the cerebellum posteriorly; spans pons and rostral medulla" },
{ heading: "Shape", text: "Diamond-shaped (rhomboid) when viewed from above; gives the floor its name - Rhomboid Fossa" },
{ heading: "Roof (Tegmen)", text: "Superior medullary velum (rostral) + inferior medullary velum + choroid plexus (caudal)" },
{ heading: "Key Fact", text: "Communicates rostrally with cerebral aqueduct (Sylvius) and caudally with subarachnoid space via foramina of Luschka and Magendie" },
];
introPoints.forEach((pt, i) => {
const y = 1.18 + i * 0.78;
slide3.addShape(pres.ShapeType.rect, { x: 0.35, y: y, w: 0.12, h: 0.35, fill: { color: TEAL } });
slide3.addText(pt.heading + ": ", { x: 0.55, y: y, w: 5.1, h: 0.3, fontSize: 11, color: TEAL, bold: true, fontFace: "Calibri" });
slide3.addText(pt.text, { x: 0.55, y: y + 0.28, w: 5.0, h: 0.42, fontSize: 10, color: NAVY, fontFace: "Calibri", wrap: true });
});
// Right: brainstem overview image or diagram
if (images[2] && !images[2].error) {
slide3.addImage({ data: images[2].base64, x: 5.85, y: 0.95, w: 3.8, h: 4.4 });
slide3.addText("Lateral view of brainstem\n(Neuroanatomy through Clinical Cases)", {
x: 5.85, y: 5.3, w: 3.9, h: 0.3, fontSize: 7.5, color: "888888", italic: true, fontFace: "Calibri", align: "center"
});
} else {
// Fallback: draw a simple shape label
slide3.addShape(pres.ShapeType.rect, { x: 5.85, y: 1.0, w: 3.8, h: 4.3, fill: { color: LIGHT }, line: { color: TEAL } });
slide3.addText("Lateral View\nBrainstem", { x: 6.35, y: 2.8, w: 2.8, h: 1, fontSize: 14, color: TEAL, align: "center", fontFace: "Calibri" });
}
// ─────────────────────────────────────────────
// SLIDE 4: Boundaries & Overview (Dorsal view with labeled image)
// ─────────────────────────────────────────────
let slide4 = pres.addSlide();
slide4.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: NAVY } });
slide4.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 0.2, h: 5.625, fill: { color: GOLD } });
slide4.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 0.9, fill: { color: DARK_TEAL } });
slide4.addText("BOUNDARIES OF THE FOURTH VENTRICLE", {
x: 0.4, y: 0.1, w: 9.2, h: 0.75,
fontSize: 22, color: WHITE, bold: true, fontFace: "Calibri"
});
// Main image (dorsal view - first image)
if (images[0] && !images[0].error) {
slide4.addImage({ data: images[0].base64, x: 0.3, y: 1.0, w: 5.2, h: 4.4 });
slide4.addText("Dorsal view of brainstem showing floor of 4th ventricle (cerebellum removed)\n– Neuroanatomy through Clinical Cases, 3rd Ed.", {
x: 0.3, y: 5.3, w: 5.2, h: 0.28, fontSize: 7, color: LIGHT, italic: true, fontFace: "Calibri", align: "center"
});
}
// Right side: boundary boxes
const boundaries = [
{ label: "Rostral", val: "Junction of pons and midbrain (cerebral aqueduct opens here)" },
{ label: "Caudal", val: "Obex - narrows into central canal at caudal medulla" },
{ label: "Anterior/Floor", val: "Posterior surface of pons + rostral medulla = Rhomboid Fossa" },
{ label: "Posterior/Roof", val: "Superior medullary velum (rostral) + Inferior medullary velum + Choroid plexus (caudal)" },
{ label: "Lateral Angles", val: "Lateral recesses extend into subarachnoid space at cerebellopontine angles" },
];
boundaries.forEach((b, i) => {
const y = 1.0 + i * 0.89;
slide4.addShape(pres.ShapeType.rect, { x: 5.65, y: y, w: 4.1, h: 0.82, fill: { color: "122436" }, line: { color: TEAL, pt: 1 } });
slide4.addShape(pres.ShapeType.rect, { x: 5.65, y: y, w: 1.1, h: 0.82, fill: { color: TEAL } });
slide4.addText(b.label, { x: 5.67, y: y + 0.18, w: 1.07, h: 0.45, fontSize: 10, color: WHITE, bold: true, fontFace: "Calibri", align: "center" });
slide4.addText(b.val, { x: 6.82, y: y + 0.07, w: 2.85, h: 0.7, fontSize: 9.5, color: LIGHT, fontFace: "Calibri", wrap: true, valign: "middle" });
});
// ─────────────────────────────────────────────
// SLIDE 5: The Rhomboid Fossa - Surface Features
// ─────────────────────────────────────────────
let slide5 = pres.addSlide();
slide5.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: WHITE } });
slide5.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 0.9, fill: { color: NAVY } });
slide5.addShape(pres.ShapeType.rect, { x: 0, y: 0.9, w: 10, h: 0.05, fill: { color: GOLD } });
slide5.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 0.2, h: 5.625, fill: { color: GOLD } });
slide5.addText("THE RHOMBOID FOSSA - SURFACE FEATURES", {
x: 0.4, y: 0.12, w: 9.2, h: 0.65,
fontSize: 22, color: WHITE, bold: true, fontFace: "Calibri"
});
// Subtitle
slide5.addText("Floor of the 4th Ventricle: Diamond-shaped surface formed by posterior pons and rostral medulla", {
x: 0.3, y: 0.98, w: 9.4, h: 0.35,
fontSize: 11, color: TEAL, fontFace: "Calibri", italic: true
});
// Two columns of features
const features_left = [
{ title: "Median Sulcus", desc: "Midline longitudinal groove dividing fossa into right and left halves", color: TEAL },
{ title: "Medial Eminence", desc: "Ridge on each side of median sulcus, containing important nuclei", color: TEAL },
{ title: "Facial Colliculus", desc: "Prominent bulge in pontine part - formed by CN VII fibers winding over abducens nucleus (CN VI)", color: ACCENT },
{ title: "Sulcus Limitans", desc: "Longitudinal groove lateral to medial eminence - divides motor (medial) from sensory (lateral) areas", color: GOLD },
];
const features_right = [
{ title: "Vestibular Area", desc: "Lateral to sulcus limitans in pons - overlies vestibular nuclei", color: TEAL },
{ title: "Medullary Striae", desc: "Transverse white fibers crossing floor - mark pontine-medullary junction", color: TEAL },
{ title: "Hypoglossal Trigone", desc: "In medullary part, medial - overlies hypoglossal nucleus (CN XII)", color: TEAL },
{ title: "Vagal Trigone", desc: "Lateral to hypoglossal trigone - overlies dorsal motor nucleus of vagus (CN X)", color: TEAL },
];
features_left.forEach((f, i) => {
const y = 1.45 + i * 0.99;
slide5.addShape(pres.ShapeType.rect, { x: 0.25, y, w: 4.5, h: 0.92, fill: { color: LIGHT_GREY }, line: { color: f.color, pt: 2 } });
slide5.addShape(pres.ShapeType.rect, { x: 0.25, y, w: 0.18, h: 0.92, fill: { color: f.color } });
slide5.addText(f.title, { x: 0.5, y: y + 0.05, w: 4.1, h: 0.28, fontSize: 11.5, color: NAVY, bold: true, fontFace: "Calibri" });
slide5.addText(f.desc, { x: 0.5, y: y + 0.33, w: 4.1, h: 0.55, fontSize: 9.5, color: "444444", fontFace: "Calibri", wrap: true });
});
features_right.forEach((f, i) => {
const y = 1.45 + i * 0.99;
slide5.addShape(pres.ShapeType.rect, { x: 5.05, y, w: 4.5, h: 0.92, fill: { color: LIGHT_GREY }, line: { color: f.color, pt: 2 } });
slide5.addShape(pres.ShapeType.rect, { x: 5.05, y, w: 0.18, h: 0.92, fill: { color: f.color } });
slide5.addText(f.title, { x: 5.3, y: y + 0.05, w: 4.1, h: 0.28, fontSize: 11.5, color: NAVY, bold: true, fontFace: "Calibri" });
slide5.addText(f.desc, { x: 5.3, y: y + 0.33, w: 4.1, h: 0.55, fontSize: 9.5, color: "444444", fontFace: "Calibri", wrap: true });
});
// Also add obex
slide5.addShape(pres.ShapeType.rect, { x: 0.25, y: 5.33, w: 9.3, h: 0.25, fill: { color: NAVY }, line: { color: NAVY } });
slide5.addText("OBEX: V-shaped notch at the caudal apex of the rhomboid fossa — marks where the 4th ventricle narrows into the central canal of the spinal cord", {
x: 0.3, y: 5.34, w: 9.2, h: 0.22, fontSize: 9, color: WHITE, fontFace: "Calibri", align: "center"
});
// ─────────────────────────────────────────────
// SLIDE 6: Sulcus Limitans - Motor vs Sensory Division
// ─────────────────────────────────────────────
let slide6 = pres.addSlide();
slide6.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: "F5F0FF" } });
slide6.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 0.9, fill: { color: DARK_TEAL } });
slide6.addShape(pres.ShapeType.rect, { x: 0, y: 0.9, w: 10, h: 0.05, fill: { color: GOLD } });
slide6.addText("SULCUS LIMITANS: MOTOR vs SENSORY DIVISION", {
x: 0.4, y: 0.12, w: 9.2, h: 0.65,
fontSize: 22, color: WHITE, bold: true, fontFace: "Calibri"
});
// Central concept box
slide6.addShape(pres.ShapeType.rect, { x: 3.0, y: 1.0, w: 4.0, h: 0.7, fill: { color: DARK_TEAL }, line: { color: DARK_TEAL } });
slide6.addText("Sulcus Limitans", {
x: 3.0, y: 1.0, w: 4.0, h: 0.7,
fontSize: 18, color: WHITE, bold: true, fontFace: "Calibri", align: "center", valign: "middle"
});
slide6.addText("Longitudinal groove dividing floor into medial (motor) and lateral (sensory) zones", {
x: 2.0, y: 1.72, w: 6.0, h: 0.45,
fontSize: 11, color: NAVY, fontFace: "Calibri", italic: true, align: "center"
});
// Motor zone (left)
slide6.addShape(pres.ShapeType.rect, { x: 0.2, y: 2.3, w: 4.4, h: 3.1, fill: { color: "E3F2FD" }, line: { color: "1565C0", pt: 2 } });
slide6.addShape(pres.ShapeType.rect, { x: 0.2, y: 2.3, w: 4.4, h: 0.5, fill: { color: "1565C0" } });
slide6.addText("MOTOR AREA (Medial)", { x: 0.2, y: 2.3, w: 4.4, h: 0.5, fontSize: 13, color: WHITE, bold: true, fontFace: "Calibri", align: "center", valign: "middle" });
const motorNuclei = [
"Abducens nucleus (CN VI) - eye abduction",
"Facial motor nucleus contribution (CN VII genu)",
"Hypoglossal nucleus (CN XII) - tongue",
"Dorsal motor nucleus of vagus (CN X) - parasympathetics",
"Nucleus ambiguus area contribution (CN IX, X, XI)",
"Medial eminence overlies these motor nuclei",
];
motorNuclei.forEach((n, i) => {
slide6.addText([
{ text: "• ", options: { color: "1565C0", bold: true } },
{ text: n, options: { color: NAVY } }
], { x: 0.35, y: 2.88 + i * 0.37, w: 4.1, h: 0.35, fontSize: 9.5, fontFace: "Calibri" });
});
// Sensory zone (right)
slide6.addShape(pres.ShapeType.rect, { x: 5.4, y: 2.3, w: 4.4, h: 3.1, fill: { color: "FFF8E1" }, line: { color: GOLD, pt: 2 } });
slide6.addShape(pres.ShapeType.rect, { x: 5.4, y: 2.3, w: 4.4, h: 0.5, fill: { color: GOLD } });
slide6.addText("SENSORY AREA (Lateral)", { x: 5.4, y: 2.3, w: 4.4, h: 0.5, fontSize: 13, color: WHITE, bold: true, fontFace: "Calibri", align: "center", valign: "middle" });
const sensoryNuclei = [
"Vestibular nuclei - vestibular area (balance)",
"Cochlear nuclei - hearing (dorsal/ventral)",
"Nucleus tractus solitarius (taste/visceral)",
"Trigeminal sensory nucleus (CN V)",
"Lateral to sulcus limitans",
"Corresponds to alar plate in embryology",
];
sensoryNuclei.forEach((n, i) => {
slide6.addText([
{ text: "• ", options: { color: GOLD, bold: true } },
{ text: n, options: { color: NAVY } }
], { x: 5.55, y: 2.88 + i * 0.37, w: 4.1, h: 0.35, fontSize: 9.5, fontFace: "Calibri" });
});
// Arrow between them
slide6.addShape(pres.ShapeType.rect, { x: 4.62, y: 3.5, w: 0.75, h: 0.3, fill: { color: NAVY } });
slide6.addText("← →", { x: 4.62, y: 3.5, w: 0.75, h: 0.3, fontSize: 12, color: WHITE, bold: true, align: "center", valign: "middle", fontFace: "Calibri" });
// ─────────────────────────────────────────────
// SLIDE 7: Facial Colliculus - IMPORTANT!
// ─────────────────────────────────────────────
let slide7 = pres.addSlide();
slide7.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: NAVY } });
slide7.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 0.2, h: 5.625, fill: { color: ACCENT } });
slide7.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 0.9, fill: { color: "1A0A00" } });
slide7.addShape(pres.ShapeType.rect, { x: 0, y: 0.9, w: 10, h: 0.05, fill: { color: ACCENT } });
slide7.addText("FACIAL COLLICULUS - CLINICALLY IMPORTANT", {
x: 0.4, y: 0.12, w: 9.2, h: 0.65,
fontSize: 22, color: WHITE, bold: true, fontFace: "Calibri"
});
// Image left
if (images[1] && !images[1].error) {
slide7.addImage({ data: images[1].base64, x: 0.3, y: 1.0, w: 5.3, h: 4.4 });
slide7.addText("Axial section showing facial colliculus (CN VII fibers winding over CN VI nucleus)\n– Neuroanatomy through Clinical Cases, 3rd Ed.", {
x: 0.3, y: 5.35, w: 5.3, h: 0.25, fontSize: 7, color: LIGHT, italic: true, fontFace: "Calibri", align: "center"
});
}
// Right info panels
const facialPts = [
{ icon: "📍", title: "Location", body: "Most prominent bump on the floor, in the pontine part of the rhomboid fossa" },
{ icon: "🏗", title: "Structure", body: "Formed by CN VII (facial nerve) fibers looping around the CN VI (abducens) nucleus" },
{ icon: "⚠️", title: "Clinical Alert", body: "A lesion at facial colliculus = ipsilateral LMN facial palsy (CN VII) + ipsilateral lateral gaze palsy (CN VI)" },
{ icon: "🔗", title: "Why Together?", body: "CN VII fascicles travel through the pons and wind over the abducens nucleus before exiting at pontomedullary junction" },
];
facialPts.forEach((pt, i) => {
const y = 1.05 + i * 1.1;
slide7.addShape(pres.ShapeType.rect, { x: 5.75, y, w: 4.0, h: 1.0, fill: { color: "122030" }, line: { color: i === 2 ? ACCENT : TEAL, pt: 1 } });
slide7.addText(pt.icon + " " + pt.title, { x: 5.82, y: y + 0.05, w: 3.85, h: 0.3, fontSize: 11, color: i === 2 ? ACCENT : TEAL, bold: true, fontFace: "Calibri" });
slide7.addText(pt.body, { x: 5.82, y: y + 0.35, w: 3.85, h: 0.58, fontSize: 9.5, color: LIGHT, fontFace: "Calibri", wrap: true });
});
// ─────────────────────────────────────────────
// SLIDE 8: Communications & Apertures
// ─────────────────────────────────────────────
let slide8 = pres.addSlide();
slide8.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: WHITE } });
slide8.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 0.9, fill: { color: NAVY } });
slide8.addShape(pres.ShapeType.rect, { x: 0, y: 0.9, w: 10, h: 0.05, fill: { color: TEAL } });
slide8.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 0.2, h: 5.625, fill: { color: TEAL } });
slide8.addText("COMMUNICATIONS & APERTURES", {
x: 0.4, y: 0.12, w: 9.2, h: 0.65,
fontSize: 22, color: WHITE, bold: true, fontFace: "Calibri"
});
// Flowchart-style
// Top connection
slide8.addShape(pres.ShapeType.rect, { x: 3.2, y: 1.05, w: 3.6, h: 0.7, fill: { color: TEAL }, line: { color: TEAL } });
slide8.addText("CEREBRAL AQUEDUCT (of Sylvius)", {
x: 3.2, y: 1.05, w: 3.6, h: 0.7, fontSize: 11, color: WHITE, bold: true, fontFace: "Calibri", align: "center", valign: "middle"
});
slide8.addText("Connects 3rd and 4th ventricles through midbrain\n(Rostral opening)", {
x: 3.2, y: 1.75, w: 3.6, h: 0.4, fontSize: 9, color: NAVY, fontFace: "Calibri", italic: true, align: "center"
});
// Arrow down
slide8.addText("↓", { x: 4.6, y: 2.15, w: 0.8, h: 0.3, fontSize: 20, color: NAVY, bold: true, align: "center", fontFace: "Calibri" });
// Main ventricle box
slide8.addShape(pres.ShapeType.rect, { x: 2.5, y: 2.45, w: 5.0, h: 0.75, fill: { color: NAVY } });
slide8.addText("FOURTH VENTRICLE", {
x: 2.5, y: 2.45, w: 5.0, h: 0.75, fontSize: 16, color: WHITE, bold: true, fontFace: "Calibri", align: "center", valign: "middle"
});
// Arrows to apertures
slide8.addText("↙", { x: 2.7, y: 3.2, w: 0.5, h: 0.4, fontSize: 22, color: NAVY, bold: true, fontFace: "Calibri", align: "center" });
slide8.addText("↓", { x: 4.6, y: 3.2, w: 0.8, h: 0.4, fontSize: 22, color: NAVY, bold: true, fontFace: "Calibri", align: "center" });
slide8.addText("↘", { x: 6.6, y: 3.2, w: 0.6, h: 0.4, fontSize: 22, color: NAVY, bold: true, fontFace: "Calibri", align: "center" });
// Three apertures
const apertures = [
{
title: "Foramina of Luschka", sub: "(Lateral Apertures x2)",
pts: ["Located in lateral recesses", "Open into cerebellopontine angle", "CSF → lateral subarachnoid cisterns"],
x: 0.25, color: TEAL
},
{
title: "Foramen of Magendie", sub: "(Median Aperture x1)",
pts: ["Located in roof over obex", "Opens into cisterna magna", "Largest of the three apertures"],
x: 3.5, color: GOLD
},
{
title: "Central Canal", sub: "(Caudal Continuation)",
pts: ["Leads into central canal of spinal cord", "Continuation at obex", "Usually obliterated in adults"],
x: 6.75, color: ACCENT
}
];
apertures.forEach(ap => {
slide8.addShape(pres.ShapeType.rect, { x: ap.x, y: 3.6, w: 3.1, h: 1.9, fill: { color: LIGHT_GREY }, line: { color: ap.color, pt: 2 } });
slide8.addShape(pres.ShapeType.rect, { x: ap.x, y: 3.6, w: 3.1, h: 0.48, fill: { color: ap.color } });
slide8.addText(ap.title, { x: ap.x + 0.05, y: 3.62, w: 3.0, h: 0.25, fontSize: 10, color: WHITE, bold: true, fontFace: "Calibri", align: "center" });
slide8.addText(ap.sub, { x: ap.x + 0.05, y: 3.87, w: 3.0, h: 0.18, fontSize: 8.5, color: WHITE, fontFace: "Calibri", italic: true, align: "center" });
ap.pts.forEach((p, i) => {
slide8.addText("• " + p, { x: ap.x + 0.1, y: 4.1 + i * 0.43, w: 2.9, h: 0.4, fontSize: 9, color: NAVY, fontFace: "Calibri", wrap: true });
});
});
// ─────────────────────────────────────────────
// SLIDE 9: Area Postrema & Other Features
// ─────────────────────────────────────────────
let slide9 = pres.addSlide();
slide9.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: LIGHT_GREY } });
slide9.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 0.9, fill: { color: DARK_TEAL } });
slide9.addShape(pres.ShapeType.rect, { x: 0, y: 0.9, w: 10, h: 0.05, fill: { color: GOLD } });
slide9.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 0.2, h: 5.625, fill: { color: GOLD } });
slide9.addText("OTHER IMPORTANT FEATURES OF THE FLOOR", {
x: 0.4, y: 0.12, w: 9.2, h: 0.65,
fontSize: 22, color: WHITE, bold: true, fontFace: "Calibri"
});
const otherFeatures = [
{
title: "Area Postrema",
icon: "🔴",
desc: "Paired V-shaped area near obex. A circumventricular organ - LACKS blood-brain barrier. Contains chemoreceptor trigger zone (CTZ) for vomiting. Target of anti-emetic drugs.",
color: ACCENT
},
{
title: "Medullary Striae",
icon: "━",
desc: "Transverse white fibers running across the floor from the median sulcus to lateral recesses. They arise from arcuate nuclei and cross to cerebellum. Mark the pontine-medullary junction.",
color: TEAL
},
{
title: "Locus Coeruleus",
icon: "🔵",
desc: "Bluish pigmented area visible in rostral floor (pons), lateral to sulcus limitans. Major source of norepinephrine in the brain. Important in arousal, anxiety, and sleep.",
color: "2952A3"
},
{
title: "Inferior Fovea",
icon: "◎",
desc: "Depression in sulcus limitans at the pontine-medullary junction. Marks the location where sulcus limitans widens. Localizing landmark on the floor.",
color: GOLD
},
{
title: "Superior Fovea",
icon: "◎",
desc: "Depression in sulcus limitans in pontine portion. Located below the facial colliculus. Another localizing landmark on the floor.",
color: GOLD
},
{
title: "Ala Cinerea (Vagal Trigone)",
icon: "📐",
desc: "Gray-winged area in medullary part overlying dorsal motor nucleus of CN X. Source of preganglionic parasympathetic fibers to thoracic and abdominal viscera.",
color: TEAL
}
];
const cols = [
{ x: 0.28, items: [0, 1] },
{ x: 3.55, items: [2, 3] },
{ x: 6.82, items: [4, 5] }
];
cols.forEach(col => {
col.items.forEach((idx, j) => {
const f = otherFeatures[idx];
const y = 1.1 + j * 2.2;
slide9.addShape(pres.ShapeType.rect, { x: col.x, y, w: 3.0, h: 2.05, fill: { color: WHITE }, line: { color: f.color, pt: 2 }, shadow: { type: "outer", blur: 4, offset: 2, angle: 45, color: "bbbbbb" } });
slide9.addShape(pres.ShapeType.rect, { x: col.x, y, w: 3.0, h: 0.42, fill: { color: f.color } });
slide9.addText(f.title, { x: col.x + 0.08, y: y + 0.07, w: 2.85, h: 0.3, fontSize: 11, color: WHITE, bold: true, fontFace: "Calibri" });
slide9.addText(f.desc, { x: col.x + 0.08, y: y + 0.48, w: 2.85, h: 1.5, fontSize: 9, color: NAVY, fontFace: "Calibri", wrap: true });
});
});
// ─────────────────────────────────────────────
// SLIDE 10: Clinical Correlations
// ─────────────────────────────────────────────
let slide10 = pres.addSlide();
slide10.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: NAVY } });
slide10.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 0.2, h: 5.625, fill: { color: ACCENT } });
slide10.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 0.9, fill: { color: "1A0000" } });
slide10.addShape(pres.ShapeType.rect, { x: 0, y: 0.9, w: 10, h: 0.05, fill: { color: ACCENT } });
slide10.addText("CLINICAL CORRELATIONS", {
x: 0.4, y: 0.12, w: 9.2, h: 0.65,
fontSize: 22, color: WHITE, bold: true, fontFace: "Calibri"
});
const clinicals = [
{
condition: "Facial Colliculus Lesion",
features: "Ipsilateral LMN facial palsy (CN VII) + ipsilateral conjugate horizontal gaze palsy (CN VI nucleus/PPRF)",
example: "Pontine infarct, MS plaque",
color: ACCENT
},
{
condition: "Dorsal Pons Lesion (Locked-in Syndrome)",
features: "Bilateral ventral pontine infarct → quadriplegia + loss of horizontal eye movements; preserved vertical gaze and blinking; consciousness intact",
example: "Basilar artery thrombosis",
color: "CC4400"
},
{
condition: "Area Postrema Lesion (NMO)",
features: "Intractable hiccups + nausea/vomiting; pathognomonic for Neuromyelitis Optica (NMOSD) with anti-AQP4 antibodies",
example: "NMO spectrum disorder",
color: TEAL
},
{
condition: "4th Ventricle Tumors (Medulloblastoma/Ependymoma)",
features: "Obstructive hydrocephalus → headache, vomiting, papilledema; cerebellar ataxia; CN palsies from floor compression",
example: "Most common posterior fossa tumor in children",
color: GOLD
},
{
condition: "Dandy-Walker Malformation",
features: "Agenesis of cerebellar vermis, cystic dilation of 4th ventricle, enlarged posterior fossa; neonatal hydrocephalus",
example: "Congenital malformation",
color: "2952A3"
}
];
clinicals.forEach((cl, i) => {
const y = 1.0 + i * 0.9;
slide10.addShape(pres.ShapeType.rect, { x: 0.3, y, w: 9.4, h: 0.84, fill: { color: "0D1E30" }, line: { color: cl.color, pt: 1.5 } });
slide10.addShape(pres.ShapeType.rect, { x: 0.3, y, w: 0.18, h: 0.84, fill: { color: cl.color } });
slide10.addText(cl.condition, { x: 0.55, y: y + 0.04, w: 3.4, h: 0.3, fontSize: 10.5, color: cl.color, bold: true, fontFace: "Calibri" });
slide10.addText("Example: " + cl.example, { x: 0.55, y: y + 0.52, w: 3.4, h: 0.25, fontSize: 8.5, color: LIGHT, fontFace: "Calibri", italic: true });
slide10.addText(cl.features, { x: 4.05, y: y + 0.1, w: 5.55, h: 0.65, fontSize: 9.5, color: WHITE, fontFace: "Calibri", wrap: true, valign: "middle" });
// Divider
slide10.addShape(pres.ShapeType.rect, { x: 4.0, y: y + 0.1, w: 0.03, h: 0.65, fill: { color: cl.color } });
});
// ─────────────────────────────────────────────
// SLIDE 11: Summary Diagram
// ─────────────────────────────────────────────
let slide11 = pres.addSlide();
slide11.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: WHITE } });
slide11.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 0.9, fill: { color: NAVY } });
slide11.addShape(pres.ShapeType.rect, { x: 0, y: 0.9, w: 10, h: 0.05, fill: { color: GOLD } });
slide11.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 0.2, h: 5.625, fill: { color: GOLD } });
slide11.addText("SUMMARY: FLOOR OF 4th VENTRICLE AT A GLANCE", {
x: 0.4, y: 0.12, w: 9.2, h: 0.65,
fontSize: 21, color: WHITE, bold: true, fontFace: "Calibri"
});
// Use the main floor image
if (images[0] && !images[0].error) {
slide11.addImage({ data: images[0].base64, x: 0.28, y: 0.98, w: 4.6, h: 4.5 });
slide11.addText("Dorsal view - Neuroanatomy through Clinical Cases, 3rd Ed.", {
x: 0.28, y: 5.42, w: 4.6, h: 0.18, fontSize: 7, color: "888888", italic: true, fontFace: "Calibri", align: "center"
});
}
// Right side: summary bullet points
const summaryPts = [
{ head: "Floor =", body: "Rhomboid fossa (posterior pons + rostral medulla)" },
{ head: "Midline =", body: "Median sulcus → medial eminence on each side" },
{ head: "Pontine area =", body: "Facial colliculi (CN VII loop + CN VI nucleus)" },
{ head: "Key groove =", body: "Sulcus limitans (motor medial / sensory lateral)" },
{ head: "Lateral to SL =", body: "Vestibular area (pons), CN nuclei" },
{ head: "Medullary striae =", body: "Mark ponto-medullary junction" },
{ head: "Medullary area =", body: "Hypoglossal trigone (CN XII) + Vagal trigone (CN X)" },
{ head: "Area postrema =", body: "CTZ - no BBB, antiemetic target" },
{ head: "Obex =", body: "Caudal apex - entry to central canal" },
{ head: "Apertures =", body: "Magendie (1 median) + Luschka (2 lateral) → CSF drainage" },
];
summaryPts.forEach((pt, i) => {
const y = 1.05 + i * 0.45;
slide11.addText([
{ text: pt.head + " ", options: { color: TEAL, bold: true } },
{ text: pt.body, options: { color: NAVY } }
], { x: 5.1, y, w: 4.7, h: 0.4, fontSize: 10, fontFace: "Calibri", bullet: { indent: 10 } });
});
// ─────────────────────────────────────────────
// SLIDE 12: Thank You / Questions
// ─────────────────────────────────────────────
let slide12 = pres.addSlide();
slide12.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: NAVY } });
slide12.addShape(pres.ShapeType.rect, { x: 0, y: 0, w: 0.25, h: 5.625, fill: { color: TEAL } });
slide12.addShape(pres.ShapeType.rect, { x: 9.75, y: 0, w: 0.25, h: 5.625, fill: { color: TEAL } });
slide12.addShape(pres.ShapeType.rect, { x: 0, y: 5.45, w: 10, h: 0.18, fill: { color: GOLD } });
slide12.addShape(pres.ShapeType.ellipse, { x: 1.0, y: 0.5, w: 8.0, h: 4.6, fill: { color: DARK_TEAL }, line: { color: DARK_TEAL } });
slide12.addShape(pres.ShapeType.ellipse, { x: 1.3, y: 0.7, w: 7.4, h: 4.2, fill: { color: NAVY }, line: { color: NAVY } });
slide12.addText("Thank You", {
x: 1.5, y: 1.4, w: 7.0, h: 1.0,
fontSize: 50, color: GOLD, bold: true, fontFace: "Calibri", align: "center"
});
slide12.addText("Questions & Discussion", {
x: 1.5, y: 2.5, w: 7.0, h: 0.6,
fontSize: 22, color: WHITE, fontFace: "Calibri", align: "center"
});
slide12.addShape(pres.ShapeType.rect, { x: 3.0, y: 3.15, w: 4.0, h: 0.04, fill: { color: TEAL } });
slide12.addText("Key References:", {
x: 1.5, y: 3.3, w: 7.0, h: 0.3,
fontSize: 11, color: TEAL, fontFace: "Calibri", align: "center", bold: true
});
slide12.addText([
{ text: "• Neuroanatomy through Clinical Cases, 3rd Ed. (Blumenfeld) | ", options: {} },
{ text: "• Gray's Anatomy for Students (Drake et al.) | ", options: {} },
{ text: "• Principles of Neural Science (Kandel)", options: {} }
], {
x: 0.8, y: 3.65, w: 8.4, h: 0.5,
fontSize: 9.5, color: LIGHT, fontFace: "Calibri", align: "center"
});
slide12.addText("1st Year MBBS | Gross Anatomy Seminar | " + new Date().toLocaleDateString(), {
x: 1.0, y: 4.25, w: 8.0, h: 0.35,
fontSize: 10, color: "888888", fontFace: "Calibri", align: "center"
});
// ─────────────────────────────────────────────
// WRITE FILE
// ─────────────────────────────────────────────
pres.writeFile({ fileName: "/home/daytona/workspace/fourth-ventricle-ppt/Floor_of_Fourth_Ventricle_MBBS.pptx" })
.then(() => console.log("PPT created successfully!"))
.catch(err => console.error("Error:", err));
cd /home/daytona/workspace/fourth-ventricle-ppt && node create_ppt.js 2>&1
ls -lh /home/daytona/workspace/fourth-ventricle-ppt/Floor_of_Fourth_Ventricle_MB…
Floor of Fourth Ventricle MBBS
Presentation · PPTX
| Slide | Title | Content |
|---|---|---|
| 1 | Title Slide | Topic, institution, seminar label |
| 2 | Learning Objectives | 6 clear, numbered objectives |
| 3 | Introduction | Definition, location, shape, roof vs floor, key communications |
| 4 | Boundaries | Lateral view image + 5 boundary boxes (rostral/caudal/floor/roof/lateral) |
| 5 | Rhomboid Fossa Surface Features | All 8 features: median sulcus, medial eminence, facial colliculus, sulcus limitans, vestibular area, medullary striae, hypoglossal trigone, vagal trigone + obex |
| 6 | Sulcus Limitans | Motor (medial) vs Sensory (lateral) division with full nuclei list |
| 7 | Facial Colliculus | Textbook histology image of CN VII looping over CN VI nucleus; clinical alert for lesion |
| 8 | Communications & Apertures | Flowchart: cerebral aqueduct → 4th ventricle → foramen of Magendie + foramina of Luschka + central canal |
| 9 | Other Features | Area postrema (CTZ), medullary striae, locus coeruleus, foveae, ala cinerea |
| 10 | Clinical Correlations | 5 conditions: facial colliculus lesion, locked-in syndrome, NMO (area postrema), medulloblastoma/ependymoma, Dandy-Walker malformation |
| 11 | Summary | Dorsal view textbook image + 10-point summary of the entire floor |
| 12 | Thank You | References panel (3 textbooks), date, Q&A prompt |
can you resend the ppt bcs the previous one is not downloadable
ls -lh /home/daytona/workspace/fourth-ventricle-ppt/ 2>&1
cd /home/daytona/workspace/fourth-ventricle-ppt && node create_ppt.js 2>&1
Floor of Fourth Ventricle MBBS
Presentation · PPTX