It's a simple spelling error. serpinskyTriangle is not declared. serpinskiTriangle is (y=i). Please post your question in the Discussions section next time, it will be picked up sooner than in the Activity section