Fun project: Baby vision simulator
I was curious how my newborn daughter, Klara, experiences the world. So I vibe-coded this simulator. Try the demo image or turn on your camera, then move the age slider to see what changes. In birth date mode, the default is Klara’s birthday.

What do these numbers mean?
Fine detail, also called visual acuity, is how tightly black and white stripes can be packed before they blend together. One stripe pair is one black stripe and one white stripe. A degree is a measure of how much of your view the pattern takes up, not how big it is in pixels. The simulator uses this number to set the strength of a blur: fewer stripe pairs means more blur.
The contrast threshold describes how different the light and dark stripes in a broad pattern need to be before the pattern is detectable. This estimate combines two types of experiments: one observed where newborns looked, the other measured the brain’s electrical response. The percentage is not a slider for how much contrast the picture keeps.
Click or tap the image to move the focus point. With the preview selected, use the arrow keys. Newborn focus barely follows the target. Camera focus requires enabling Depth-aware focus.
What the simulator shows
This is not a literal view through child’s eyes. I’m changing a camera image so an adult can get a feel for which fine details, weak contrasts, and color differences might be easier or harder for a baby to pick up. The studies measure what babies can detect or distinguish under specific conditions, not what the world looks like to them.
The stripe number sets the strength of a Gaussian blur. The lower the number, the more the filter softens fine patterns. It does not erase detail at an exact cutoff. Real infant vision depends on how the eye focuses light, how the retina responds, and how the developing brain processes those signals. A filter on an adult’s screen can illustrate some of those limits without recreating the experience.
A few ages to try
- Week 0. Start here and hold the compare button. The blur starts from a newborn median of about 0.8 cycles per degree in a looking test with black and white stripes. The filter also tones down contrast and color, but the image is not black and white.
- Around week 4. Try moving the focus point from a hand to a face. In the model, focus moves only part of the way toward the new target. At week 0, moving the point does not change the focus plane at all.
- Around weeks 8 to 13. Blue-yellow differences become more visible in the demo. By week 13, the model is at about 3 cycles per degree, so more of the fine detail comes through.
- Week 52. The model is at about 9 cycles per degree. There is still a difference when you compare it with the unfiltered image.
The slider interpolates between age points. These are useful stops to try, not week-by-week measurements or milestones for an individual child. The optional focus effect estimates which parts of the scene are nearer or farther. It does not measure their distance from the camera. The demo image was generated with Gemini.
How I limited color
In one study, more newborns picked out a large, saturated red patch against gray than picked out blue under the same test conditions. That does not mean newborns see only red, or that the study tells us how saturated a red object looks to them.
In the shader, I separate brightness from two color differences: red versus green and blue versus yellow. At birth, I keep just 15% of the first difference and 2% of the second, before applying a separate saturation adjustment. As you move the slider, the red-green difference comes back sooner. The blue-yellow difference rises more gradually and reaches its full setting at about 12 weeks, with some overall desaturation still applied. Those percentages are my filter settings, not measurements of what babies see. The contrast filter is also an interpretation: a threshold for detecting a test pattern does not tell you how much to dim the contrast of a whole image.
Sources and what I used them for
- Brown AM, Opoku FO, Stenger MR. "Neonatal Contrast Sensitivity and Visual Acuity: Basic Psychophysics." Transl Vis Sci Technol 2018, 7(3):18. - The newborn starting points for grating acuity (0.783 cycles per degree) and low-frequency contrast detection (about 46% in that experiment).
- Neijzen CM, de Wit FM, Hettinga YM, de Boer JH, van Genderen MM, de Wit GC. "Reference values for the Teller Acuity Cards II (TAC II) in infants and preverbal children, a meta-analysis." Acta Ophthalmol 2025, 103(4):479–485. - The binocular grating acuity points from 1 to 12 months, calculated from the fitted reference ranges in Appendix A.
- Norcia AM, Tyler CW, Hamer RD. "Development of contrast sensitivity in the human infant." Vision Res 1990, 30(10):1475–1486. - The early low-frequency contrast thresholds (about 7% at 2 to 3 weeks and 0.5% around week 9), plus a separate adult reference. These electrical-response measurements use a different method from Brown’s looking test.
- Adams RJ, Courage ML, Mercer ME. "Systematic measurement of human neonatal color vision." Vision Res 1994, 34(13):1691–1701. - Evidence that newborns can distinguish some saturated colors from gray, with red detected more often than blue in this task. This informed the starting color balance, not the shader percentages.
- Varner D, Cook JE, Schneck ME, McDonald MA, Teller DY. "Tritan discriminations by 1- and 2-month-old human infants." Vision Res 1985, 25(6):821–831. - The improvement in blue-yellow discrimination between the first and second months, which informed the slower color ramp.
- Skelton AE, Maule J, Franklin A. "Infant colour perception: Insight into perceptual development." Child Dev Perspect 2022, 16(2):90–95. - The broader timeline for both color mechanisms to be active by about 3 months, and evidence that saturation discrimination keeps developing. Neither gives a saturation slider value.
- Haynes H, White BL, Held R. "Visual accommodation in human infants." Science 1965, 148(3669):528–530. - The measured median focus distance of 19 cm in alert newborns, used as the starting focus plane in the model.
- Banks MS. "The development of visual accommodation during early infancy." Child Dev 1980, 51(3):646–666. - How strongly focus responds to a change in target distance at 1 to 3 months, and the early pupil sizes used in the blur calculation.
- Braddick O, Atkinson J, French J, Howland HC. "A photorefractive study of infant accommodation." Vision Res 1979, 19:1319–1330. - Evidence of more consistent focusing at the tested distance later in infancy. The model’s full response at about 6 months is a simplification, not a measured universal value.
- Isenberg SJ, Dang Y, Jotterand V. "The pupils of term and preterm infants." Am J Ophthalmol 1989, 108(1):75–79. - Newborn pupil size, used to set the starting strength of optical defocus.
- MacLachlan C, Howland HC. "Normal values and standard deviations for pupil diameter and interpupillary distance in subjects aged 1 month to 19 years." Ophthalmic Physiol Opt 2002, 22(3):175–182. - Pupil-size reference data used for the later infancy setting.
- Green DG, Powers MK, Banks MS. "Depth of focus, eye size and visual acuity." Vision Res 1980, 20:827–835. - The optical relationship between pupil diameter, focus error, and the angular size of the blur circle. The shader uses a Gaussian approximation of that circle.