Figure — physics free-body diagram
Free-body diagram of a block on an inclined plane — pure 2D schematic. Typed FlowScript for 2-D figure composition. Keywords: figure, schematic, diagram, annotation.
Make it your own.
// Free-body diagram of a block on an inclined plane — pure 2D
// schematic. No typed data, just shapes / labels / arrows.
figure free_body {
title: "Block on an incline — free-body diagram"
width: 800
height: 500
background: "transparent"
}
// Incline as a right triangle.
shape {
kind: triangle
x: 120
y: 220
w: 480
h: 220
fill: "#e2e8f0"
stroke: "#475569"
strokeWidth: 1.4
}
// The block, sitting on the incline (rotated to match the slope).
group_2d block {
x: 360
y: 285
rotate: -25
}
shape block_body {
kind: rect
x: 360
y: 285
w: 80
h: 56
r: 4
fill: "#a78bfa"
stroke: "#4c1d95"
strokeWidth: 1.6
label: "m"
rotate: -25
}
// Weight (mg) — straight down from the block.
arrow_2d {
x1: 400
y1: 313
x2: 400
y2: 460
color: "#dc2626"
label: "mg"
}
// Normal force — perpendicular to the incline.
arrow_2d {
x1: 400
y1: 313
x2: 470
y2: 200
color: "#2563eb"
label: "N"
}
// Friction — along the incline, opposing motion.
arrow_2d {
x1: 400
y1: 313
x2: 290
y2: 363
color: "#16a34a"
label: "f"
}
// Angle theta annotation at the base of the incline.
label_2d {
text: "θ"
x: 175
y: 425
size: 18
weight: bold
color: "#475569"
}
annotation {
target: block_body
text: "ΣF = ma"
offsetX: 180
offsetY: -120
style: footnote
}
view diagram: figure(free_body)