ProcessingJS implementation of examples from Nature Of Code book