Pinhole imaging and straight rays
Draw a pinhole image in VectorPaint: straight rays, inversion and distance
Hand-draw an object, point aperture and screen; check straight rays and the inverted image using fictional coordinates.
On this page
Draw a two-dimensional pinhole-image diagram. An upright arrow at left represents an object; rays pass through a small opening and form an inverted arrow on the right-hand screen. Exploratorium and NASA explain that the opening restricts light paths, so light from the object’s top can reach the lower part of the image. Coordinates here are fictional drawing data; no physical experiment or solar observation is needed.
Define the geometry
Treat the pinhole as a point and draw only one straight ray from the top and one from the bottom of the object. Light travels left to right; an opaque plate blocks paths outside the hole. It is not a lens and does not refract the rays at the opening. Real aperture size, brightness, blur and diffraction affect images, so this is not a camera-performance measurement.
Prepare canvas and objects
Create a landscape VectorPaint canvas, for example 1600 × 1000 pixels, and save an editable original. Use the installed version’s visible line, shape and text tools. Keep object, plate, screen, rays, construction guides and notes separately selectable. Leave room for a legend to the right. Dimensions are drawing units, not actual lengths.
Set coordinates and axis
Use local drawing coordinates with x increasing rightward and y downward. Place a light horizontal axis at y=400, pinhole P at (800,400), the object at x=200 and the screen at x=1100. These coordinates help place shapes; the app need not solve the geometry. You may hide construction guides after checking. Label the object, plate and screen on a construction layer and check their left-to-right order. If the canvas is too narrow, scale all coordinates equally rather than compressing only the screen side.
Draw the upright object
At x=200 draw from base A=(200,400) to tip B=(200,200), adding an upward arrowhead at B and the label “object.” Its height is 200 drawing units and its base lies on the axis. This arrow expresses the object’s orientation; it is not a rightward ray. Leave room to the left so neither arrow nor label is clipped.
Draw the plate and opening
At x=800 draw two vertical segments for an opaque plate, leaving a visible gap around P and labelling it “pinhole P.” The gap is enlarged for legibility, while the calculation treats rays as passing through one centre point. Do not cover the hole with a solid stroke or draw the plate as a lens that bends rays.
Place the screen and inverted image
Draw a vertical screen at x=1100 long enough to include y=400 through y=500 with margins. Mark image base A′=(1100,400) and image tip B′=(1100,500); draw the arrow downward from A′ to B′. It is inverted relative to the object in this two-dimensional side view. The exercise does not require building a camera.
Connect the top ray
Draw a straight line from B=(200,200) through P=(800,400) to B′=(1100,500). You may use two editable segments, but zoom in to ensure they meet at P and continue in the same direction. Add small arrowheads pointing right. If there is a visible kink at the opening, adjust endpoints and slope; do not claim the hole refracted the ray. After selecting the top ray, verify the same direction on both sides: for every three units right, the drawing coordinate descends about one unit. Check the two segments with a guide, then hide it.
Connect the base ray
Connect A=(200,400) through P to A′=(1100,400) along the axis and label it as the example ray from the object base. Because this ray overlaps the construction axis, distinguish it with a line style or note instead of implying two different paths. The two example rays show correspondence; real objects send light along many paths.
Check distances and height
Below the diagram write object distance 800−200=600 and image distance 1100−800=300, both in the same drawing units. Their ratio is 300/600=1/2. In this ideal point-aperture geometry the image height is 200×1/2=100, with inverted orientation. The ratio follows similar triangles; it does not guarantee sharpness in any physical pinhole device.
Check labels and layers
Place “object,” “opaque plate,” “pinhole,” “screen” and “inverted image” where they do not obscure the rays, using short leaders. Different line styles can distinguish rays, construction axis and screen, but retain text rather than relying on colour alone. Zoom out to check the arrangement, then zoom in to confirm both top-ray segments meet at P.
Compare a second screen position
Duplicate the working file and move the screen to x=1400, keeping object and pinhole fixed. Extend the same top ray to the new screen. The image distance is now 600, equal to object distance, so ideal image height is 200 and its tip lies at y=600. Do not enlarge only the arrow while leaving the screen behind. This geometry does not test exposure or sharpness. When placing the original and duplicate side by side, label the distance pairs 600 and 300, then 600 and 600. Check the unchanged object distance before the screen position. Keep the object height and pinhole position identical so no third variable is introduced. If the second image points the other way, check that the ray still passes through the same pinhole and then verify the screen position.
Troubleshoot the reading order
If the image still points up, check whether the line from B through P continues to the lower side of the screen. If its height is 200 while the screen remains 300 units from the hole, recompute the one-half ratio. Ray arrowheads show light travelling right; the image arrow shows downward orientation. Place the screen label outside so it does not cover the intersection or image tip.
Save and inspect the export
Keep the editable original and export an image or SVG using options visible in your installed version. Reopen the output to check that the aperture, arrowheads, screen and distance labels are not clipped. Return to the original and select object, screen and rays separately. No physical-device drawing or optical experiment is claimed.
Related guides and sources
Basic shapes; Drawing a line chart. Sources: Exploratorium pinhole camera activity; NASA pinhole projection resource. App information: Apple lookup.