The film is loosely based on the 1943 science fiction short story by Lewis Padgett (a pseudonym for the husband-and-wife team of Henry Kuttner and C.L. Moore). The original story explores the concept of children's minds being uniquely receptive to alien logic and non-Euclidean geometry, ideas that are central to the film.