sf::VertexArray triangleStrip1{};
triangleStrip1.setPrimitiveType(sf::PrimitiveType::TriangleStrip);
triangleStrip1.resize(8u);
triangleStrip1[0u].position = { width * 0.f, bottom };
triangleStrip1[0u].color = colorA;
triangleStrip1[1u].position = { width * 0.f, top };
triangleStrip1[1u].color = colorA;
triangleStrip1[2u].position = { width * 1.f, bottom };
triangleStrip1[2u].color = colorA;
triangleStrip1[3u].position = { width * 1.f, top };
triangleStrip1[3u].color = colorA;
triangleStrip1[4u].position = { width * 2.f, bottom };
triangleStrip1[4u].color = colorB;
triangleStrip1[5u].position = { width * 2.f, top };
triangleStrip1[5u].color = colorB;
triangleStrip1[6u].position = { width * 3.f, bottom };
triangleStrip1[6u].color = colorA;
triangleStrip1[7u].position = { width * 3.f, top };
triangleStrip1[7u].color = colorA;
sf::VertexArray triangleStrip2{};
triangleStrip2.setPrimitiveType(sf::PrimitiveType::TriangleStrip);
triangleStrip2.resize(12u);
triangleStrip2[0u].position = { width * 0.f, bottom };
triangleStrip2[0u].color = colorA;
triangleStrip2[1u].position = { width * 0.f, top };
triangleStrip2[1u].color = colorA;
triangleStrip2[2u].position = { width * 1.f, bottom };
triangleStrip2[2u].color = colorA;
triangleStrip2[3u].position = { width * 1.f, top };
triangleStrip2[3u].color = colorA;
triangleStrip2[4u].position = { width * 1.f, top };
triangleStrip2[4u].color = colorB;
triangleStrip2[5u].position = { width * 1.f, bottom };
triangleStrip2[5u].color = colorB;
triangleStrip2[6u].position = { width * 2.f, top };
triangleStrip2[6u].color = colorB;
triangleStrip2[7u].position = { width * 2.f, bottom };
triangleStrip2[7u].color = colorB;
triangleStrip2[8u].position = { width * 2.f, bottom };
triangleStrip2[8u].color = colorA;
triangleStrip2[9u].position = { width * 2.f, top };
triangleStrip2[9u].color = colorA;
triangleStrip2[10u].position = { width * 3.f, bottom };
triangleStrip2[10u].color = colorA;
triangleStrip2[11u].position = { width * 3.f, top };
triangleStrip2[11u].color = colorA;
sf::VertexArray triangleStrip3{};
triangleStrip3.setPrimitiveType(sf::PrimitiveType::TriangleStrip);
triangleStrip3.resize(12u);
triangleStrip3[0u].position = { width * 0.f, bottom };
triangleStrip3[0u].color = colorA;
triangleStrip3[1u].position = { width * 0.f, top };
triangleStrip3[1u].color = colorA;
triangleStrip3[2u].position = { width * 1.f, bottom };
triangleStrip3[2u].color = colorA;
triangleStrip3[3u].position = { width * 1.f, top };
triangleStrip3[3u].color = colorA;
triangleStrip3[4u].position = { width * 1.f, bottom };
triangleStrip3[4u].color = colorB;
triangleStrip3[5u].position = { width * 1.f, top };
triangleStrip3[5u].color = colorB;
triangleStrip3[6u].position = { width * 2.f, bottom };
triangleStrip3[6u].color = colorB;
triangleStrip3[7u].position = { width * 2.f, top };
triangleStrip3[7u].color = colorB;
triangleStrip3[8u].position = { width * 2.f, bottom };
triangleStrip3[8u].color = colorA;
triangleStrip3[9u].position = { width * 2.f, top };
triangleStrip3[9u].color = colorA;
triangleStrip3[10u].position = { width * 3.f, bottom };
triangleStrip3[10u].color = colorA;
triangleStrip3[11u].position = { width * 3.f, top };
triangleStrip3[11u].color = colorA;
Note that I set each vertex explicitly so it you could see that. However, it is pretty simple to write an algorithm to set them all automatically in a loop.