Hayy ibn Yaqdhan
A similar problem was also addressed earlier in the 12th century by Ibn Tufail (Abubacer), in his philosophical novel, "Hayy ibn Yaqdhan" ("Philosophus Autodidactus"). His version of the problem, however, dealt mainly with colors rather than shapes: