I am trying to make this pattern in python but stuck, any help please?

Ashley

http://images.colourbox.com/thumb_COLOURBOX3492089.jpg

Recommended Answers

All 2 Replies

Just do the black triangles on white background or vice versa.

Hint: if there is a vertex at a point (x0, y0), the other vertices are at points

x, y = (x0+ a * i + b * j, y0 + c * j)

where a, b, c are 3 given numbers and i, j are varying integers.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.