Pencil Sketch of Linear Function with Slope and Intercept
Scene Overview
- Scene Class: Single Manim
Scene(e.g.,PencilGraphScene). - Purpose: Visually illustrate the linear function being drawn as if by a handâheld pencil, emphasizing the slope and intercept.
- Duration: Approximately 12 seconds total.
1. Animation Description & Flow
- Setup (0â¯s â 2â¯s)
- Fade in a Cartesian coordinate plane with axes ranging from to and to .
- Axes are drawn in a light gray color; tick marks and numeric labels appear instantly.
- Pencil Introduction (2â¯s â 3â¯s)
- A thin, semiâtransparent pencil tip (a small brown ellipse with a subtle shadow) slides in from the left edge of the screen to the origin . This motion lasts 1â¯second.
- Drawing the Line (3â¯s â 9â¯s)
- The pencil tip follows the graph of from (point clipped to the visible frame) to (point ).
- As the tip moves, a dark gray line is progressively revealed behind it, mimicking a pencil stroke.
- The line width is set to mimic a real pencil (â3â¯pt) with a slight texture effect (optional shading).
- Highlight Key Points (9â¯s â 11â¯s)
- Small, semiâtransparent circles appear at the intercepts:
- Yâintercept at â a blue dot that fades in over 0.5â¯s.
- Xâintercept at â a red dot that fades in over 0.5â¯s.
- Tiny, handâdrawn style arrows (thin lines with arrowheads) label the slope "2" and the intercept "-1" near the line, each appearing with a quick sketch animation (0.5â¯s each).
- Small, semiâtransparent circles appear at the intercepts:
- Conclusion (11â¯s â 12â¯s)
- The pencil tip lifts off the screen, moving upward and fading out.
- The completed graph remains on screen for a brief pause, then all elements fade out together.
2. Mathematical Elements & Formulas
- Function:
- Key Points:
- Yâintercept:
- Xâintercept:
- Slope Indicator: The label "2" placed parallel to the line segment between and .
3. Visual Elements
| Element | Description | Color / Style |
|---|---|---|
| Axes | Light gray, thin lines; tick marks visible | #CCCCCC |
| Pencil tip | Small brown ellipse with subtle shadow, semiâtransparent | #8B4513 |
| Drawn line | Dark gray, textured to resemble graphite | #333333 |
| Yâintercept dot | Blue, radius â0.08 units, semiâtransparent | #1E90FF |
| Xâintercept dot | Red, radius â0.08 units, semiâtransparent | #FF4500 |
| Slope label "2" | Handâsketched style number, black | #000000 |
| Intercept label "-1" | Handâsketched style number, black | #000000 |
4. Timing & Transitions
- Fadeâin / Fadeâout: 0.5â¯s each for axes and final exit.
- Pencil movement: Linear easing for the tip travel; line reveal follows the tip exactly.
- Dot appearances: Opacity transition from 0â¯% to 100â¯% over 0.5â¯s.
- Arrow/label sketches: Quick âdrawâonâairâ effect (stroke appears from start to end) over 0.5â¯s.
- Overall pacing: Keep a steady rhythm; no pause longer than 0.5â¯s between steps.
5. Camera Angles & Perspective
- Static camera: Fixed orthographic view centered on the origin; no zoom or pan.
- Optional subtle zoom: At 3â¯s, a slight (â5â¯%) zoomâin to emphasize the pencil tip, then return to original framing by 9â¯s.
6. Additional Details
- Background: Plain white canvas to emulate paper.
- Texture: Optional faint paper grain overlay (very low opacity) to enhance the âpencil on paperâ feel.
- No text blocks: All information conveyed visually; only the small handâdrawn numeric labels are used.
- Scene length: 12â¯seconds, well within the 30âsecond limit.
äœæè
説æ
A Cartesian plane fades in, then a brown pencil tip slides to the origin and draws the line y equals two x minus one from left to right. As the line is traced, blue and red dots appear at the y-intercept and x-intercept, and hand-drawn arrows label the slope of two and the intercept of minus one. The pencil lifts off and the completed graph fades out.
äœææ¥æ
Feb 1, 2026, 07:20 AM
é·ã
0:12
ã¿ã°
linear-functionpencil-drawinggraphingslope-intercept