Sensory pathaway class predestination i want 15 slides matter
mkdir -p /home/daytona/workspace/sensory-pathway-ppt
~/sensory-pathway-ppt/build.js
const pptxgen = require("pptxgenjs");
const pres = new pptxgen();
pres.layout = "LAYOUT_16x9";
pres.title = "Sensory Pathways";
pres.author = "Medical Education";
// ── Palette ──────────────────────────────────────────────────────────────────
const NAVY = "0D1B3E"; // dominant dark
const TEAL = "1A7B8C"; // accent/header bar
const GOLD = "F0A500"; // highlight / icon colour
const WHITE = "FFFFFF";
const LIGHT = "E8F4F7"; // light body background
const GREY = "6B7280"; // subdued text
const DARK = "1E293B"; // body text
const CORAL = "E05A4E"; // important callout
// ── Helpers ───────────────────────────────────────────────────────────────────
function darkSlide(slide) {
slide.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: NAVY } });
}
function lightSlide(slide) {
slide.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 5.625, fill: { color: LIGHT } });
}
function headerBar(slide, label) {
slide.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 0.75, fill: { color: TEAL } });
slide.addText(label, {
x: 0.25, y: 0, w: 9.5, h: 0.75,
fontSize: 18, bold: true, color: WHITE, valign: "middle", margin: 0
});
}
function accentBar(slide) {
slide.addShape(pres.shapes.RECTANGLE, { x: 0, y: 5.25, w: 10, h: 0.375, fill: { color: GOLD } });
}
function footerText(slide, txt) {
slide.addShape(pres.shapes.RECTANGLE, { x: 0, y: 5.25, w: 10, h: 0.375, fill: { color: DARK } });
slide.addText(txt, {
x: 0.2, y: 5.25, w: 9.6, h: 0.375,
fontSize: 9, color: WHITE, valign: "middle", margin: 0
});
}
// ── SLIDE 1: Title ────────────────────────────────────────────────────────────
{
const s = pres.addSlide();
darkSlide(s);
// gold accent top bar
s.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 0.08, fill: { color: GOLD } });
// large decorative circle
s.addShape(pres.shapes.OVAL, { x: 6.8, y: -0.5, w: 4.2, h: 4.2, fill: { color: "122A5E" }, line: { color: "122A5E" } });
s.addShape(pres.shapes.OVAL, { x: 7.2, y: -0.1, w: 3.2, h: 3.2, fill: { color: "1A3A70" }, line: { color: "1A3A70" } });
// Title
s.addText("SENSORY PATHWAYS", {
x: 0.5, y: 1.4, w: 7, h: 1.0,
fontSize: 40, bold: true, color: WHITE, charSpacing: 4
});
s.addShape(pres.shapes.RECTANGLE, { x: 0.5, y: 2.5, w: 3.5, h: 0.06, fill: { color: GOLD } });
s.addText("From Receptor to Cortex", {
x: 0.5, y: 2.65, w: 7, h: 0.5,
fontSize: 20, color: GOLD, italic: true
});
s.addText("Neuroscience & Physiology | Medical Education", {
x: 0.5, y: 3.4, w: 7, h: 0.4,
fontSize: 13, color: "A0B4C8"
});
s.addShape(pres.shapes.RECTANGLE, { x: 0, y: 5.42, w: 10, h: 0.2, fill: { color: TEAL } });
}
// ── SLIDE 2: Overview / Learning Objectives ───────────────────────────────────
{
const s = pres.addSlide();
lightSlide(s);
headerBar(s, "Learning Objectives");
accentBar(s);
const items = [
"Describe the two major sensory pathways: Dorsal Column–Medial Lemniscal & Anterolateral",
"Trace each pathway from first-order neuron to somatosensory cortex",
"Identify sensory modalities carried by each tract",
"Explain decussation and its clinical significance",
"Understand the somatosensory cortex (Brodmann areas 1, 2, 3) and homunculus",
"Recognize special senses: visual, auditory, olfactory pathways",
"Apply pathway anatomy to explain clinical deficits",
];
s.addText(items.map((t, i) => ({ text: `${i + 1}. ${t}`, options: { bullet: false, breakLine: true, paraSpaceAfter: 6 } })), {
x: 0.5, y: 0.9, w: 9, h: 4.2,
fontSize: 13.5, color: DARK, valign: "top"
});
}
// ── SLIDE 3: Classification of Sensory Receptors ─────────────────────────────
{
const s = pres.addSlide();
lightSlide(s);
headerBar(s, "Sensory Receptors – Classification");
accentBar(s);
const cols = [
{ label: "Mechanoreceptors", color: "1A7B8C", items: ["Meissner's corpuscles\n(light touch)", "Pacinian corpuscles\n(vibration)", "Merkel's discs\n(pressure)", "Ruffini endings\n(skin stretch)"] },
{ label: "Thermoreceptors", color: "2E86AB", items: ["Warm receptors\n(C-fibres)", "Cold receptors\n(Aδ + C fibres)", "Respond to temp\nchange, not pain"] },
{ label: "Nociceptors", color: CORAL, items: ["Free nerve endings", "Aδ fibres – sharp pain", "C fibres – slow\ndull aching pain"] },
{ label: "Proprioceptors", color: "5C6BC0", items: ["Muscle spindles\n(Ia, II fibres)", "Golgi tendon organs\n(Ib fibres)", "Joint receptors"] },
];
const boxW = 2.1, boxH = 3.8, startX = 0.35, startY = 0.9, gap = 0.2;
cols.forEach((col, i) => {
const x = startX + i * (boxW + gap);
s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x, y: startY, w: boxW, h: boxH, fill: { color: WHITE }, rectRadius: 0.1,
shadow: { type: "outer", color: "000000", blur: 6, offset: 2, angle: 135, opacity: 0.1 } });
s.addShape(pres.shapes.RECTANGLE, { x, y: startY, w: boxW, h: 0.5, fill: { color: col.color } });
s.addText(col.label, { x, y: startY, w: boxW, h: 0.5, fontSize: 11, bold: true, color: WHITE, align: "center", valign: "middle", margin: 0 });
s.addText(col.items.map(t => ({ text: "• " + t, options: { breakLine: true, paraSpaceAfter: 5 } })), {
x: x + 0.1, y: startY + 0.6, w: boxW - 0.2, h: boxH - 0.7,
fontSize: 10.5, color: DARK, valign: "top"
});
});
}
// ── SLIDE 4: Sensory Nerve Fibre Types ────────────────────────────────────────
{
const s = pres.addSlide();
darkSlide(s);
s.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 0.75, fill: { color: GOLD } });
s.addText("Sensory Nerve Fibre Types", { x: 0.25, y: 0, w: 9.5, h: 0.75, fontSize: 18, bold: true, color: NAVY, valign: "middle", margin: 0 });
const rows = [
["Fibre Type", "Myelin", "Diameter", "Velocity", "Modality", "Receptor"],
["Aα (Ia/Ib)", "Heavy", "12–20 µm", "70–120 m/s", "Proprioception", "Spindle / GTO"],
["Aβ (II)", "Medium", "6–12 µm", "30–70 m/s", "Touch, Pressure, Vibration", "Meissner, Pacinian"],
["Aδ (III)", "Light", "2–6 µm", "5–30 m/s", "Sharp pain, Cold", "Free endings"],
["C (IV)", "None", "0.2–1.5 µm", "0.5–2 m/s", "Slow pain, Warm, Itch", "Free endings"],
];
const colW = [1.2, 1.0, 1.3, 1.5, 2.3, 2.0];
const startX = 0.3, rowH = 0.68, startY = 0.85;
rows.forEach((row, ri) => {
let cx = startX;
row.forEach((cell, ci) => {
const isHeader = ri === 0;
s.addShape(pres.shapes.RECTANGLE, { x: cx, y: startY + ri * rowH, w: colW[ci], h: rowH,
fill: { color: isHeader ? TEAL : (ri % 2 === 0 ? "162547" : "1E3060") },
line: { color: "2A4080", pt: 0.5 }
});
s.addText(cell, { x: cx + 0.05, y: startY + ri * rowH, w: colW[ci] - 0.1, h: rowH,
fontSize: isHeader ? 11 : 10.5, bold: isHeader, color: isHeader ? WHITE : (ri % 2 === 0 ? "D0E8F0" : WHITE),
align: "center", valign: "middle", margin: 0
});
cx += colW[ci];
});
});
s.addShape(pres.shapes.RECTANGLE, { x: 0, y: 5.42, w: 10, h: 0.2, fill: { color: GOLD } });
}
// ── SLIDE 5: Two Major Ascending Pathways ─────────────────────────────────────
{
const s = pres.addSlide();
lightSlide(s);
headerBar(s, "Two Major Ascending Sensory Pathways");
accentBar(s);
// Left card
s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: 0.3, y: 0.9, w: 4.4, h: 4.2, fill: { color: WHITE }, rectRadius: 0.12,
shadow: { type: "outer", color: "000000", blur: 8, offset: 2, angle: 135, opacity: 0.12 } });
s.addShape(pres.shapes.RECTANGLE, { x: 0.3, y: 0.9, w: 4.4, h: 0.55, fill: { color: TEAL } });
s.addText("Dorsal Column – Medial Lemniscal", { x: 0.3, y: 0.9, w: 4.4, h: 0.55, fontSize: 12, bold: true, color: WHITE, align: "center", valign: "middle", margin: 0 });
const dcItems = [
"Fine touch & pressure",
"Two-point discrimination",
"Vibration sense",
"Proprioception (joint position)",
"Movement against skin",
"Large myelinated Aβ fibres",
"Decussates in medulla (gracile & cuneate nuclei)",
"Synapse in VPL of thalamus",
];
s.addText(dcItems.map(t => ({ text: "✦ " + t, options: { breakLine: true, paraSpaceAfter: 4 } })), {
x: 0.45, y: 1.55, w: 4.1, h: 3.4, fontSize: 11, color: DARK, valign: "top"
});
// Right card
s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: 5.3, y: 0.9, w: 4.4, h: 4.2, fill: { color: WHITE }, rectRadius: 0.12,
shadow: { type: "outer", color: "000000", blur: 8, offset: 2, angle: 135, opacity: 0.12 } });
s.addShape(pres.shapes.RECTANGLE, { x: 5.3, y: 0.9, w: 4.4, h: 0.55, fill: { color: CORAL } });
s.addText("Anterolateral (Spinothalamic)", { x: 5.3, y: 0.9, w: 4.4, h: 0.55, fontSize: 12, bold: true, color: WHITE, align: "center", valign: "middle", margin: 0 });
const alItems = [
"Pain (sharp & dull)",
"Temperature (warm & cold)",
"Crude touch & pressure",
"Tickle and itch",
"Sexual sensations",
"Aδ and C fibres",
"Decussates in spinal cord (1–2 segments above entry)",
"Synapse in VPL / intralaminar thalamus",
];
s.addText(alItems.map(t => ({ text: "✦ " + t, options: { breakLine: true, paraSpaceAfter: 4 } })), {
x: 5.45, y: 1.55, w: 4.1, h: 3.4, fontSize: 11, color: DARK, valign: "top"
});
// VS badge
s.addShape(pres.shapes.OVAL, { x: 4.6, y: 2.6, w: 0.8, h: 0.8, fill: { color: NAVY } });
s.addText("VS", { x: 4.6, y: 2.6, w: 0.8, h: 0.8, fontSize: 13, bold: true, color: GOLD, align: "center", valign: "middle", margin: 0 });
}
// ── SLIDE 6: Dorsal Column Pathway (detailed) ──────────────────────────────────
{
const s = pres.addSlide();
lightSlide(s);
headerBar(s, "Dorsal Column – Medial Lemniscal Pathway (Detailed)");
accentBar(s);
const steps = [
{ label: "1st Order Neuron", detail: "Receptor → dorsal root ganglion → enters spinal cord via dorsal root → ascends IPSILATERAL in dorsal column (fasciculus gracilis or cuneatus)" },
{ label: "Decussation", detail: "Synapses in gracile nucleus (lower body, T6+) or cuneate nucleus (upper body, above T6) in the medulla oblongata → 2nd order axon CROSSES in medulla" },
{ label: "2nd Order Neuron", detail: "Medial lemniscus ascends contralaterally through medulla, pons, and midbrain → joined by trigeminal fibres for face → reaches VPL of thalamus" },
{ label: "3rd Order Neuron", detail: "VPL thalamus → thalamic somatosensory radiations → PRIMARY somatosensory cortex (SI) Brodmann areas 3, 1, 2 – postcentral gyrus" },
];
steps.forEach((step, i) => {
const y = 0.9 + i * 1.05;
s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: 0.3, y, w: 9.4, h: 0.9, fill: { color: WHITE }, rectRadius: 0.1,
shadow: { type: "outer", color: "000000", blur: 5, offset: 1, angle: 135, opacity: 0.1 } });
s.addShape(pres.shapes.RECTANGLE, { x: 0.3, y, w: 2.4, h: 0.9, fill: { color: TEAL } });
s.addText(step.label, { x: 0.3, y, w: 2.4, h: 0.9, fontSize: 11.5, bold: true, color: WHITE, align: "center", valign: "middle", margin: 0 });
s.addText(step.detail, { x: 2.85, y: y + 0.05, w: 6.75, h: 0.8, fontSize: 11, color: DARK, valign: "middle" });
if (i < 3) {
s.addShape(pres.shapes.RECTANGLE, { x: 1.2, y: y + 0.9, w: 0.06, h: 0.15, fill: { color: TEAL } });
}
});
s.addText("Source: Guyton & Hall Textbook of Medical Physiology", {
x: 0.3, y: 5.1, w: 9.4, h: 0.2, fontSize: 8, color: GREY, italic: true
});
}
// ── SLIDE 7: Anterolateral / Spinothalamic Pathway ────────────────────────────
{
const s = pres.addSlide();
lightSlide(s);
headerBar(s, "Anterolateral (Spinothalamic) Pathway – Detailed");
accentBar(s);
const steps = [
{ label: "1st Order Neuron", detail: "Free nerve endings → dorsal root ganglion → enters dorsal horn → synapses in lamina I (marginal zone) & lamina V of dorsal horn (Rexed)" },
{ label: "Decussation", detail: "2nd order axon crosses in ANTERIOR (ventral) commissure of spinal cord – takes 2–3 segments to reach opposite side → ascends in anterolateral white matter" },
{ label: "2nd Order Neuron", detail: "Ascends contralaterally: spinothalamic (VPL thalamus), spinoreticular (reticular formation → intralaminar thalamus), spinomesencephalic (midbrain, periaqueductal grey)" },
{ label: "3rd Order Neuron", detail: "VPL → somatosensory radiations → primary somatosensory cortex (SI, Brodmann 3,1,2); intralaminar nuclei → diffuse cortical projections (arousal, affect of pain)" },
];
steps.forEach((step, i) => {
const y = 0.9 + i * 1.05;
s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: 0.3, y, w: 9.4, h: 0.9, fill: { color: WHITE }, rectRadius: 0.1,
shadow: { type: "outer", color: "000000", blur: 5, offset: 1, angle: 135, opacity: 0.1 } });
s.addShape(pres.shapes.RECTANGLE, { x: 0.3, y, w: 2.4, h: 0.9, fill: { color: CORAL } });
s.addText(step.label, { x: 0.3, y, w: 2.4, h: 0.9, fontSize: 11.5, bold: true, color: WHITE, align: "center", valign: "middle", margin: 0 });
s.addText(step.detail, { x: 2.85, y: y + 0.05, w: 6.75, h: 0.8, fontSize: 11, color: DARK, valign: "middle" });
if (i < 3) {
s.addShape(pres.shapes.RECTANGLE, { x: 1.2, y: y + 0.9, w: 0.06, h: 0.15, fill: { color: CORAL } });
}
});
s.addText("Source: Neuroanatomy through Clinical Cases, 3rd Edition", {
x: 0.3, y: 5.1, w: 9.4, h: 0.2, fontSize: 8, color: GREY, italic: true
});
}
// ── SLIDE 8: Somatotopic Organization ─────────────────────────────────────────
{
const s = pres.addSlide();
darkSlide(s);
s.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 0.75, fill: { color: TEAL } });
s.addText("Somatotopic Organization", { x: 0.25, y: 0, w: 9.5, h: 0.75, fontSize: 18, bold: true, color: WHITE, valign: "middle", margin: 0 });
// Dorsal columns box
s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: 0.3, y: 0.9, w: 4.3, h: 4.2, fill: { color: "162547" }, rectRadius: 0.1 });
s.addText("Dorsal Columns", { x: 0.3, y: 0.9, w: 4.3, h: 0.45, fontSize: 12, bold: true, color: GOLD, align: "center", valign: "middle" });
const dcOrg = [
"Fasciculus Gracilis – medial",
" → Lower limb & lower trunk (T6 and below)",
"Fasciculus Cuneatus – lateral",
" → Upper limb & upper trunk (above T6)",
"",
"In thalamus (VPL):",
" Tail = most lateral",
" Head/face = medial",
"",
"Medial lemniscus crosses in MEDULLA",
"→ Left body = Right thalamus",
];
s.addText(dcOrg.map(t => ({ text: t, options: { breakLine: true, paraSpaceAfter: 3 } })), {
x: 0.5, y: 1.45, w: 3.9, h: 3.5, fontSize: 10.5, color: "C8DFF0", valign: "top"
});
// Anterolateral box
s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: 5.3, y: 0.9, w: 4.3, h: 4.2, fill: { color: "3B1A1A" }, rectRadius: 0.1 });
s.addText("Anterolateral System", { x: 5.3, y: 0.9, w: 4.3, h: 0.45, fontSize: 12, bold: true, color: CORAL, align: "center", valign: "middle" });
const alOrg = [
"Legs – most lateral (outer)",
"Arms – more medial (inner)",
"",
"Decussation takes 2–3 segments",
"→ Cord lesion: contralateral pain/temp loss begins a few segments below lesion",
"",
"Passes through:",
" Medulla – lateral (beside inferior olives)",
" Pons – just lateral to medial lemniscus",
" Midbrain – lateral tegmentum",
];
s.addText(alOrg.map(t => ({ text: t, options: { breakLine: true, paraSpaceAfter: 3 } })), {
x: 5.5, y: 1.45, w: 3.9, h: 3.5, fontSize: 10.5, color: "F0C8C4", valign: "top"
});
s.addShape(pres.shapes.RECTANGLE, { x: 0, y: 5.42, w: 10, h: 0.2, fill: { color: GOLD } });
}
// ── SLIDE 9: Somatosensory Cortex ─────────────────────────────────────────────
{
const s = pres.addSlide();
lightSlide(s);
headerBar(s, "Somatosensory Cortex");
accentBar(s);
// Left info panel
s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: 0.3, y: 0.9, w: 5.3, h: 4.2, fill: { color: WHITE }, rectRadius: 0.1,
shadow: { type: "outer", color: "000000", blur: 6, offset: 2, angle: 135, opacity: 0.1 } });
s.addShape(pres.shapes.RECTANGLE, { x: 0.3, y: 0.9, w: 5.3, h: 0.48, fill: { color: TEAL } });
s.addText("Primary Somatosensory Cortex (SI)", { x: 0.3, y: 0.9, w: 5.3, h: 0.48, fontSize: 12, bold: true, color: WHITE, align: "center", valign: "middle", margin: 0 });
const siItems = [
"Location: Postcentral gyrus (parietal lobe)",
"Brodmann areas 3a, 3b, 1, 2",
"Area 3b – primary receiving area (similar to SI)",
"Area 1 – texture discrimination",
"Area 2 – size, shape, pressure",
"Area 3a – deep pressure & proprioception",
"",
"Receives from: VPL thalamus (body) & VPM (face)",
"Contralateral body representation",
"Somatotopic map = Sensory Homunculus",
" Lips, tongue, hands = LARGE area",
" Trunk, leg = smaller area",
];
s.addText(siItems.map(t => ({ text: t, options: { breakLine: true, paraSpaceAfter: 3 } })), {
x: 0.5, y: 1.45, w: 4.9, h: 3.5, fontSize: 10.5, color: DARK, valign: "top"
});
// Right info panel
s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: 6.0, y: 0.9, w: 3.7, h: 4.2, fill: { color: WHITE }, rectRadius: 0.1,
shadow: { type: "outer", color: "000000", blur: 6, offset: 2, angle: 135, opacity: 0.1 } });
s.addShape(pres.shapes.RECTANGLE, { x: 6.0, y: 0.9, w: 3.7, h: 0.48, fill: { color: "5C6BC0" } });
s.addText("Secondary Cortex (SII)", { x: 6.0, y: 0.9, w: 3.7, h: 0.48, fontSize: 12, bold: true, color: WHITE, align: "center", valign: "middle", margin: 0 });
const siiItems = [
"Location: Lateral sulcus",
"Receives bilateral input",
"Important for tactile learning",
"& object recognition",
"",
"Somatosensory Association Cortex",
"Brodmann areas 5 & 7",
"Higher interpretation",
"Shape, texture, pattern recognition",
"Body image & spatial awareness",
];
s.addText(siiItems.map(t => ({ text: t, options: { breakLine: true, paraSpaceAfter: 3 } })), {
x: 6.15, y: 1.45, w: 3.4, h: 3.5, fontSize: 10.5, color: DARK, valign: "top"
});
}
// ── SLIDE 10: Pain Pathways ────────────────────────────────────────────────────
{
const s = pres.addSlide();
darkSlide(s);
s.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 0.75, fill: { color: CORAL } });
s.addText("Pain Pathways – Neospinothalamic vs. Paleospinothalamic", {
x: 0.25, y: 0, w: 9.5, h: 0.75, fontSize: 16, bold: true, color: WHITE, valign: "middle", margin: 0
});
// Neo
s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: 0.3, y: 0.9, w: 4.3, h: 4.2, fill: { color: "2A0D0D" }, rectRadius: 0.1 });
s.addText("Neospinothalamic", { x: 0.3, y: 0.9, w: 4.3, h: 0.48, fontSize: 13, bold: true, color: CORAL, align: "center", valign: "middle" });
const neoItems = [
"Fibre: Aδ (fast, sharp, pricking pain)",
"1st order → dorsal horn lamina I & V",
"2nd order crosses → VPL thalamus",
"3rd order → primary somatosensory cortex",
"Function: Discriminative – localize & identify pain intensity",
"Gate control: can be modulated by Aβ fibres (substantia gelatinosa)",
];
s.addText(neoItems.map(t => ({ text: "► " + t, options: { breakLine: true, paraSpaceAfter: 5 } })), {
x: 0.5, y: 1.5, w: 3.9, h: 3.4, fontSize: 10.5, color: "FFC5BE", valign: "top"
});
// Paleo
s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: 5.3, y: 0.9, w: 4.3, h: 4.2, fill: { color: "1A0D2E" }, rectRadius: 0.1 });
s.addText("Paleospinothalamic", { x: 5.3, y: 0.9, w: 4.3, h: 0.48, fontSize: 13, bold: true, color: GOLD, align: "center", valign: "middle" });
const paleoItems = [
"Fibre: C fibres (slow, dull, burning pain)",
"1st order → dorsal horn lamina I, II, V",
"2nd order: spinoreticular + spinomesencephalic",
"Reticular formation → intralaminar thalamus → diffuse cortex",
"PAG → descending inhibition (enkephalins)",
"Function: Emotional/suffering aspect of pain, arousal",
];
s.addText(paleoItems.map(t => ({ text: "► " + t, options: { breakLine: true, paraSpaceAfter: 5 } })), {
x: 5.5, y: 1.5, w: 3.9, h: 3.4, fontSize: 10.5, color: "D4B8F0", valign: "top"
});
s.addShape(pres.shapes.RECTANGLE, { x: 0, y: 5.42, w: 10, h: 0.2, fill: { color: CORAL } });
}
// ── SLIDE 11: Trigeminal Sensory Pathway ──────────────────────────────────────
{
const s = pres.addSlide();
lightSlide(s);
headerBar(s, "Trigeminal Sensory Pathway – Sensation from the Face");
accentBar(s);
s.addText([
{ text: "The trigeminal nerve (CN V) is the primary sensory nerve of the face. It has three divisions:", options: { breakLine: true, paraSpaceAfter: 8 } },
{ text: " V1 – Ophthalmic | V2 – Maxillary | V3 – Mandibular", options: { breakLine: true, bold: true, paraSpaceAfter: 12 } },
], { x: 0.4, y: 0.85, w: 9.2, h: 0.8, fontSize: 12, color: DARK });
const triRows = [
{ mod: "Touch / Pressure\n(fine, discriminative)", path: "Trigeminal ganglion → PRINCIPAL sensory nucleus (pons) → CROSSES → joins medial lemniscus → VPM thalamus → postcentral gyrus SI" },
{ mod: "Pain / Temperature", path: "Trigeminal ganglion → descends in SPINAL TRIGEMINAL TRACT → nucleus caudalis (medulla/C2) → crosses → trigeminothalamic tract → VPM → SI cortex" },
{ mod: "Proprioception\n(jaw, masticatory)", path: "Unique: cell bodies in MESENCEPHALIC nucleus of CN V (only primary afferent neurons inside CNS) → cerebellum & motor nucleus V" },
{ mod: "Corneal Reflex", path: "Afferent: V1 ophthalmic → principal nucleus → bilateral VII (facial) motor → blink" },
];
triRows.forEach((row, i) => {
const y = 1.7 + i * 0.9;
s.addShape(pres.shapes.RECTANGLE, { x: 0.3, y, w: 2.3, h: 0.82, fill: { color: i % 2 === 0 ? TEAL : "2E86AB" } });
s.addText(row.mod, { x: 0.3, y, w: 2.3, h: 0.82, fontSize: 10.5, bold: true, color: WHITE, align: "center", valign: "middle", margin: 0 });
s.addShape(pres.shapes.RECTANGLE, { x: 2.6, y, w: 7.1, h: 0.82, fill: { color: i % 2 === 0 ? WHITE : "F0F8FF" }, line: { color: "D0E0EA", pt: 0.5 } });
s.addText(row.path, { x: 2.7, y: y + 0.05, w: 6.9, h: 0.72, fontSize: 10, color: DARK, valign: "middle" });
});
}
// ── SLIDE 12: Visual Pathway ───────────────────────────────────────────────────
{
const s = pres.addSlide();
lightSlide(s);
headerBar(s, "Visual Sensory Pathway");
accentBar(s);
const steps = [
{ n: "01", label: "Photoreceptors", detail: "Rods (dim light, scotopic) & Cones (colour, photopic) – outer retina" },
{ n: "02", label: "Retinal Ganglion Cells", detail: "Axons form optic nerve (CN II); M-cells (motion/depth) and P-cells (colour/detail)" },
{ n: "03", label: "Optic Chiasm", detail: "Nasal fibres cross → contralateral optic tract; temporal fibres stay ipsilateral → each optic tract carries CONTRALATERAL visual field" },
{ n: "04", label: "Lateral Geniculate Nucleus", detail: "LGN of thalamus – 6 layers (magnocellular 1–2, parvocellular 3–6); somatotopic retinotopic map maintained" },
{ n: "05", label: "Primary Visual Cortex (V1)", detail: "Calcarine fissure, occipital lobe, Brodmann area 17; macula = large representation (macular sparing in PCA stroke)" },
{ n: "06", label: "Higher Visual Areas", detail: "V2–V5: Ventral stream (what – temporal lobe), Dorsal stream (where/how – parietal lobe)" },
];
steps.forEach((step, i) => {
const col = i < 3 ? 0 : 1;
const row = i % 3;
const x = 0.3 + col * 4.85;
const y = 0.9 + row * 1.5;
s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x, y, w: 4.55, h: 1.35, fill: { color: WHITE }, rectRadius: 0.08,
shadow: { type: "outer", color: "000000", blur: 5, offset: 1, angle: 135, opacity: 0.08 } });
s.addShape(pres.shapes.OVAL, { x: x + 0.1, y: y + 0.28, w: 0.5, h: 0.5, fill: { color: TEAL } });
s.addText(step.n, { x: x + 0.1, y: y + 0.28, w: 0.5, h: 0.5, fontSize: 11, bold: true, color: WHITE, align: "center", valign: "middle", margin: 0 });
s.addText(step.label, { x: x + 0.7, y: y + 0.08, w: 3.7, h: 0.35, fontSize: 11.5, bold: true, color: NAVY });
s.addText(step.detail, { x: x + 0.7, y: y + 0.45, w: 3.7, h: 0.8, fontSize: 10, color: GREY, valign: "top" });
});
}
// ── SLIDE 13: Auditory & Olfactory Pathways ───────────────────────────────────
{
const s = pres.addSlide();
darkSlide(s);
s.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 0.75, fill: { color: "5C6BC0" } });
s.addText("Auditory & Olfactory Pathways", { x: 0.25, y: 0, w: 9.5, h: 0.75, fontSize: 18, bold: true, color: WHITE, valign: "middle", margin: 0 });
// Auditory
s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: 0.3, y: 0.85, w: 4.3, h: 4.55, fill: { color: "162547" }, rectRadius: 0.1 });
s.addText("AUDITORY PATHWAY", { x: 0.3, y: 0.85, w: 4.3, h: 0.4, fontSize: 12, bold: true, color: GOLD, align: "center", valign: "middle" });
const audItems = [
"Hair cells (organ of Corti, cochlea)",
"→ CN VIII (cochlear nerve)",
"→ Cochlear nuclei (medulla)",
"→ Superior olivary complex (bilateral)",
"→ Lateral lemniscus",
"→ Inferior colliculus (midbrain)",
"→ Medial geniculate nucleus (thalamus)",
"→ Primary auditory cortex – Heschl's gyrus (A1, Brodmann 41, 42) – superior temporal gyrus",
"",
"Note: BILATERAL representation – unilateral cortex lesion does NOT cause deafness",
];
s.addText(audItems.map(t => ({ text: t, options: { breakLine: true, paraSpaceAfter: 4 } })), {
x: 0.5, y: 1.32, w: 3.9, h: 3.9, fontSize: 10.5, color: "C8DFF0", valign: "top"
});
// Olfactory
s.addShape(pres.shapes.ROUNDED_RECTANGLE, { x: 5.3, y: 0.85, w: 4.3, h: 4.55, fill: { color: "1A2B1A" }, rectRadius: 0.1 });
s.addText("OLFACTORY PATHWAY", { x: 5.3, y: 0.85, w: 4.3, h: 0.4, fontSize: 12, bold: true, color: "#90EE90", align: "center", valign: "middle" });
const olfItems = [
"Olfactory receptor neurons (nasal mucosa)",
"→ CN I (olfactory nerve) – through cribriform plate",
"→ Olfactory bulb (glomeruli, mitral cells)",
"→ Olfactory tract → lateral olfactory stria",
"→ PRIMARY OLFACTORY CORTEX:",
" Piriform cortex, uncus, entorhinal cortex",
" Amygdala, anterior hippocampus",
"",
"UNIQUE: Only special sense that does NOT relay via thalamus first",
"Direct access to limbic system → emotion-smell memory link",
"Bilateral CN I lesion → anosmia",
];
s.addText(olfItems.map(t => ({ text: t, options: { breakLine: true, paraSpaceAfter: 4 } })), {
x: 5.5, y: 1.32, w: 3.9, h: 3.9, fontSize: 10.5, color: "C8F0C8", valign: "top"
});
s.addShape(pres.shapes.RECTANGLE, { x: 0, y: 5.42, w: 10, h: 0.2, fill: { color: "5C6BC0" } });
}
// ── SLIDE 14: Clinical Correlations ───────────────────────────────────────────
{
const s = pres.addSlide();
lightSlide(s);
headerBar(s, "Clinical Correlations – Sensory Pathway Lesions");
accentBar(s);
const cases = [
{ site: "Dorsal Column (Spinal cord)", deficit: "Loss of fine touch, vibration, proprioception IPSILATERAL below lesion; preserved pain/temp", cause: "B12 deficiency, MS, SACD, Tabes dorsalis" },
{ site: "Anterolateral (Spinal cord)", deficit: "Loss of pain & temperature CONTRALATERAL, 2–3 levels below lesion; preserved fine touch", cause: "Anterior spinal artery occlusion, Brown-Séquard" },
{ site: "Brown-Séquard Syndrome", deficit: "Ipsilateral: fine touch/proprioception loss + motor weakness; Contralateral: pain/temp loss", cause: "Hemisection of cord (stab wound, MS)" },
{ site: "Thalamus (VPL)", deficit: "Contralateral hemisensory loss – ALL modalities; thalamic pain syndrome (burning pain)", cause: "Lacunar infarct, thalamic haemorrhage" },
{ site: "Parietal Cortex (SI)", deficit: "Contralateral sensory loss, astereognosis, loss of two-point discrimination, sensory neglect", cause: "MCA territory stroke, parietal tumour" },
{ site: "Syringomyelia", deficit: "Cape-like bilateral loss of pain/temp (crosses in ventral commissure); preserved DCML", cause: "Central cord cavitation" },
];
cases.forEach((c, i) => {
const y = 0.88 + i * 0.73;
s.addShape(pres.shapes.RECTANGLE, { x: 0.3, y, w: 2.5, h: 0.65, fill: { color: i % 2 === 0 ? TEAL : CORAL } });
s.addText(c.site, { x: 0.3, y, w: 2.5, h: 0.65, fontSize: 9.5, bold: true, color: WHITE, align: "center", valign: "middle", margin: 0 });
s.addShape(pres.shapes.RECTANGLE, { x: 2.82, y, w: 3.8, h: 0.65, fill: { color: WHITE }, line: { color: "DDE8EE", pt: 0.5 } });
s.addText(c.deficit, { x: 2.9, y: y + 0.03, w: 3.65, h: 0.59, fontSize: 9.5, color: DARK, valign: "middle" });
s.addShape(pres.shapes.RECTANGLE, { x: 6.64, y, w: 3.06, h: 0.65, fill: { color: LIGHT }, line: { color: "DDE8EE", pt: 0.5 } });
s.addText(c.cause, { x: 6.72, y: y + 0.03, w: 2.9, h: 0.59, fontSize: 9.5, color: GREY, valign: "middle", italic: true });
});
// Column headers
s.addText("Site of Lesion", { x: 0.3, y: 0.78, w: 2.5, h: 0.12, fontSize: 8, bold: true, color: GREY, align: "center" });
s.addText("Sensory Deficit", { x: 2.82, y: 0.78, w: 3.8, h: 0.12, fontSize: 8, bold: true, color: GREY, align: "center" });
s.addText("Causes", { x: 6.64, y: 0.78, w: 3.06, h: 0.12, fontSize: 8, bold: true, color: GREY, align: "center" });
}
// ── SLIDE 15: Summary ──────────────────────────────────────────────────────────
{
const s = pres.addSlide();
darkSlide(s);
s.addShape(pres.shapes.RECTANGLE, { x: 0, y: 0, w: 10, h: 0.08, fill: { color: GOLD } });
s.addShape(pres.shapes.RECTANGLE, { x: 0, y: 5.54, w: 10, h: 0.08, fill: { color: GOLD } });
s.addText("KEY TAKEAWAYS", {
x: 0.5, y: 0.2, w: 9, h: 0.55,
fontSize: 22, bold: true, color: GOLD, align: "center", charSpacing: 3
});
s.addShape(pres.shapes.RECTANGLE, { x: 3.5, y: 0.78, w: 3, h: 0.06, fill: { color: TEAL } });
const pts = [
["DCML Pathway", "Ipsilateral in spinal cord → decussates in MEDULLA → mediates fine touch, vibration, proprioception"],
["Anterolateral Pathway", "Decussates in SPINAL CORD → mediates pain, temperature, crude touch; 2–3 segments delay"],
["Thalamus (VPL/VPM)", "Critical relay for ALL somatic sensory modalities before reaching cortex"],
["SI Cortex (Areas 3,1,2)", "Postcentral gyrus; somatotopic homunculus; contralateral body representation"],
["Olfaction is unique", "Only special sense bypassing the thalamus; direct limbic input"],
["Visual pathway", "Partial decussation at chiasm; each optic tract = contralateral visual field; LGN → V1 (area 17)"],
["Clinical rule", "Cord lesion above decussation → ipsilateral DCML + contralateral anterolateral deficits (Brown-Séquard)"],
];
pts.forEach((pt, i) => {
const y = 0.95 + i * 0.65;
s.addShape(pres.shapes.RECTANGLE, { x: 0.4, y: y + 0.08, w: 0.35, h: 0.35, fill: { color: GOLD } });
s.addText(pt[0], { x: 0.85, y, w: 2.8, h: 0.55, fontSize: 11.5, bold: true, color: GOLD, valign: "middle" });
s.addText(pt[1], { x: 3.7, y, w: 5.9, h: 0.55, fontSize: 10.5, color: "C8DFF0", valign: "middle" });
});
}
// ── Write file ────────────────────────────────────────────────────────────────
pres.writeFile({ fileName: "/home/daytona/workspace/sensory-pathway-ppt/Sensory_Pathways.pptx" })
.then(() => console.log("DONE: Sensory_Pathways.pptx created"))
.catch(err => console.error("ERROR:", err));
cd /home/daytona/workspace/sensory-pathway-ppt && node build.js 2>&1
ls -lh /home/daytona/workspace/sensory-pathway-ppt/Sensory_Pathways.pptx
Sensory Pathways
Presentation · PPTX
| # | Slide Title |
|---|---|
| 1 | Title slide - Sensory Pathways: From Receptor to Cortex |
| 2 | Learning Objectives (7 objectives) |
| 3 | Sensory Receptors - Classification (4 types in cards) |
| 4 | Sensory Nerve Fibre Types (Aα, Aβ, Aδ, C - full table) |
| 5 | Two Major Ascending Pathways - DCML vs. Anterolateral (side by side) |
| 6 | Dorsal Column - Medial Lemniscal Pathway (detailed 4-step) |
| 7 | Anterolateral (Spinothalamic) Pathway (detailed 4-step) |
| 8 | Somatotopic Organization in both pathways |
| 9 | Somatosensory Cortex - SI (Brodmann areas 3,1,2) + SII |
| 10 | Pain Pathways - Neospinothalamic vs. Paleospinothalamic |
| 11 | Trigeminal Sensory Pathway (face sensation, CN V) |
| 12 | Visual Sensory Pathway (retina → LGN → V1) |
| 13 | Auditory & Olfactory Pathways |
| 14 | Clinical Correlations - 6 lesion syndromes (Brown-Séquard, thalamic, cord, etc.) |
| 15 | Key Takeaways summary |