Execute(
  Flatten(
    Sequence(
      Sequence({
          “st_{”+k+“+”+j+“}=Segment((”+k+“,”+j+“+tri(”+k+“)),(”+k+“,”+j+“+tri(”+k+“)+h+wave(”+k+“)^0.75))”,
          “SetColor(st_{”+k+“+”+j+“}, lut(Mod(ceil(”+j+“ h), Length(lut))))”,
          “SetLineThickness(st_{”+k+“+”+j+“}, 64)”
        }, j, 1, h*n_v, h
      ), k, 0, n_h, gap
    )
  )
)

Bargello tikandist inspireeritud muster.
GeoGebra ei taha lasta loendi elemente värvida individuaalselt, 
seega peame ise genereerima kõik käsud mis looksid individuaalseid lõike ja need ära värvima.
Muster sõltub funktsioonidest wave(x) ja tri(t) ning muutujatest:
n_v (kogus vertikaalselt), 
n_h (kogus horisontaalselt), 
gap (kahe lõiku vaheline horisontaalne kaugus),
h (lõigu kõrgus)

Kõik lõigud saab kustutada selle käsuga:
Execute(Flatten(Sequence(Sequence(“Delete(st_{”+k+“+”+j+“})”, j, 1, h*n_v, h), k, 0, n_h, gap)))

Genereeri

Kustuta

p = 1.5 (slider from -5 to 5)
tri(t) = (2 * abs(t / p - floor(t / p + 1 / 2)))
h = 1.25 (slider from -5 to 5)
gap = 0.2 (slider from -5 to 5)
lut: {"#ff590a1b", "#ffe8290e", "#ffb73d45", "#fff3969c", "#ffefe2c6", "#ffffc643"}
n_{v} = 5 (slider from -5 to 10)
n_{h} = 5 (slider from -5 to 50)
q = 4.2 (slider from -5 to 5)
d = 3.1 (slider from -5 to 5)
wave(x) = cos((x * q) + d) / 2 + 1
st_{0+1} = Segment((0, 1 + tri(0)), (0, 1 + tri(0) + h + (wave(0))^(0.75)))
st_{0+2.25} = Segment((0, 2.25 + tri(0)), (0, 2.25 + tri(0) + h + (wave(0))^(0.75)))
st_{0+3.5} = Segment((0, 3.5 + tri(0)), (0, 3.5 + tri(0) + h + (wave(0))^(0.75)))
st_{0+4.75} = Segment((0, 4.75 + tri(0)), (0, 4.75 + tri(0) + h + (wave(0))^(0.75)))
st_{0+6} = Segment((0, 6 + tri(0)), (0, 6 + tri(0) + h + (wave(0))^(0.75)))
st_{0.2+1} = Segment((0.2, 1 + tri(0.2)), (0.2, 1 + tri(0.2) + h + (wave(0.2))^(0.75)))
st_{0.2+2.25} = Segment((0.2, 2.25 + tri(0.2)), (0.2, 2.25 + tri(0.2) + h + (wave(0.2))^(0.75)))
st_{0.2+3.5} = Segment((0.2, 3.5 + tri(0.2)), (0.2, 3.5 + tri(0.2) + h + (wave(0.2))^(0.75)))
st_{0.2+4.75} = Segment((0.2, 4.75 + tri(0.2)), (0.2, 4.75 + tri(0.2) + h + (wave(0.2))^(0.75)))
st_{0.2+6} = Segment((0.2, 6 + tri(0.2)), (0.2, 6 + tri(0.2) + h + (wave(0.2))^(0.75)))
st_{0.4+1} = Segment((0.4, 1 + tri(0.4)), (0.4, 1 + tri(0.4) + h + (wave(0.4))^(0.75)))
st_{0.4+2.25} = Segment((0.4, 2.25 + tri(0.4)), (0.4, 2.25 + tri(0.4) + h + (wave(0.4))^(0.75)))
st_{0.4+3.5} = Segment((0.4, 3.5 + tri(0.4)), (0.4, 3.5 + tri(0.4) + h + (wave(0.4))^(0.75)))
st_{0.4+4.75} = Segment((0.4, 4.75 + tri(0.4)), (0.4, 4.75 + tri(0.4) + h + (wave(0.4))^(0.75)))
st_{0.4+6} = Segment((0.4, 6 + tri(0.4)), (0.4, 6 + tri(0.4) + h + (wave(0.4))^(0.75)))
st_{0.6+1} = Segment((0.6, 1 + tri(0.6)), (0.6, 1 + tri(0.6) + h + (wave(0.6))^(0.75)))
st_{0.6+2.25} = Segment((0.6, 2.25 + tri(0.6)), (0.6, 2.25 + tri(0.6) + h + (wave(0.6))^(0.75)))
st_{0.6+3.5} = Segment((0.6, 3.5 + tri(0.6)), (0.6, 3.5 + tri(0.6) + h + (wave(0.6))^(0.75)))
st_{0.6+4.75} = Segment((0.6, 4.75 + tri(0.6)), (0.6, 4.75 + tri(0.6) + h + (wave(0.6))^(0.75)))
st_{0.6+6} = Segment((0.6, 6 + tri(0.6)), (0.6, 6 + tri(0.6) + h + (wave(0.6))^(0.75)))
st_{0.8+1} = Segment((0.8, 1 + tri(0.8)), (0.8, 1 + tri(0.8) + h + (wave(0.8))^(0.75)))
st_{0.8+2.25} = Segment((0.8, 2.25 + tri(0.8)), (0.8, 2.25 + tri(0.8) + h + (wave(0.8))^(0.75)))
st_{0.8+3.5} = Segment((0.8, 3.5 + tri(0.8)), (0.8, 3.5 + tri(0.8) + h + (wave(0.8))^(0.75)))
st_{0.8+4.75} = Segment((0.8, 4.75 + tri(0.8)), (0.8, 4.75 + tri(0.8) + h + (wave(0.8))^(0.75)))
st_{0.8+6} = Segment((0.8, 6 + tri(0.8)), (0.8, 6 + tri(0.8) + h + (wave(0.8))^(0.75)))
st_{1+1} = Segment((1, 1 + tri(1)), (1, 1 + tri(1) + h + (wave(1))^(0.75)))
st_{1+2.25} = Segment((1, 2.25 + tri(1)), (1, 2.25 + tri(1) + h + (wave(1))^(0.75)))
st_{1+3.5} = Segment((1, 3.5 + tri(1)), (1, 3.5 + tri(1) + h + (wave(1))^(0.75)))
st_{1+4.75} = Segment((1, 4.75 + tri(1)), (1, 4.75 + tri(1) + h + (wave(1))^(0.75)))
st_{1+6} = Segment((1, 6 + tri(1)), (1, 6 + tri(1) + h + (wave(1))^(0.75)))
st_{1.2+1} = Segment((1.2, 1 + tri(1.2)), (1.2, 1 + tri(1.2) + h + (wave(1.2))^(0.75)))
st_{1.2+2.25} = Segment((1.2, 2.25 + tri(1.2)), (1.2, 2.25 + tri(1.2) + h + (wave(1.2))^(0.75)))
st_{1.2+3.5} = Segment((1.2, 3.5 + tri(1.2)), (1.2, 3.5 + tri(1.2) + h + (wave(1.2))^(0.75)))
st_{1.2+4.75} = Segment((1.2, 4.75 + tri(1.2)), (1.2, 4.75 + tri(1.2) + h + (wave(1.2))^(0.75)))
st_{1.2+6} = Segment((1.2, 6 + tri(1.2)), (1.2, 6 + tri(1.2) + h + (wave(1.2))^(0.75)))
st_{1.4+1} = Segment((1.4, 1 + tri(1.4)), (1.4, 1 + tri(1.4) + h + (wave(1.4))^(0.75)))
st_{1.4+2.25} = Segment((1.4, 2.25 + tri(1.4)), (1.4, 2.25 + tri(1.4) + h + (wave(1.4))^(0.75)))
st_{1.4+3.5} = Segment((1.4, 3.5 + tri(1.4)), (1.4, 3.5 + tri(1.4) + h + (wave(1.4))^(0.75)))
st_{1.4+4.75} = Segment((1.4, 4.75 + tri(1.4)), (1.4, 4.75 + tri(1.4) + h + (wave(1.4))^(0.75)))
st_{1.4+6} = Segment((1.4, 6 + tri(1.4)), (1.4, 6 + tri(1.4) + h + (wave(1.4))^(0.75)))
st_{1.6+1} = Segment((1.6, 1 + tri(1.6)), (1.6, 1 + tri(1.6) + h + (wave(1.6))^(0.75)))
st_{1.6+2.25} = Segment((1.6, 2.25 + tri(1.6)), (1.6, 2.25 + tri(1.6) + h + (wave(1.6))^(0.75)))
st_{1.6+3.5} = Segment((1.6, 3.5 + tri(1.6)), (1.6, 3.5 + tri(1.6) + h + (wave(1.6))^(0.75)))
st_{1.6+4.75} = Segment((1.6, 4.75 + tri(1.6)), (1.6, 4.75 + tri(1.6) + h + (wave(1.6))^(0.75)))
st_{1.6+6} = Segment((1.6, 6 + tri(1.6)), (1.6, 6 + tri(1.6) + h + (wave(1.6))^(0.75)))
st_{1.8+1} = Segment((1.8, 1 + tri(1.8)), (1.8, 1 + tri(1.8) + h + (wave(1.8))^(0.75)))
st_{1.8+2.25} = Segment((1.8, 2.25 + tri(1.8)), (1.8, 2.25 + tri(1.8) + h + (wave(1.8))^(0.75)))
st_{1.8+3.5} = Segment((1.8, 3.5 + tri(1.8)), (1.8, 3.5 + tri(1.8) + h + (wave(1.8))^(0.75)))
st_{1.8+4.75} = Segment((1.8, 4.75 + tri(1.8)), (1.8, 4.75 + tri(1.8) + h + (wave(1.8))^(0.75)))
st_{1.8+6} = Segment((1.8, 6 + tri(1.8)), (1.8, 6 + tri(1.8) + h + (wave(1.8))^(0.75)))
st_{2+1} = Segment((2, 1 + tri(2)), (2, 1 + tri(2) + h + (wave(2))^(0.75)))
st_{2+2.25} = Segment((2, 2.25 + tri(2)), (2, 2.25 + tri(2) + h + (wave(2))^(0.75)))
st_{2+3.5} = Segment((2, 3.5 + tri(2)), (2, 3.5 + tri(2) + h + (wave(2))^(0.75)))
st_{2+4.75} = Segment((2, 4.75 + tri(2)), (2, 4.75 + tri(2) + h + (wave(2))^(0.75)))
st_{2+6} = Segment((2, 6 + tri(2)), (2, 6 + tri(2) + h + (wave(2))^(0.75)))
st_{2.2+1} = Segment((2.2, 1 + tri(2.2)), (2.2, 1 + tri(2.2) + h + (wave(2.2))^(0.75)))
st_{2.2+2.25} = Segment((2.2, 2.25 + tri(2.2)), (2.2, 2.25 + tri(2.2) + h + (wave(2.2))^(0.75)))
st_{2.2+3.5} = Segment((2.2, 3.5 + tri(2.2)), (2.2, 3.5 + tri(2.2) + h + (wave(2.2))^(0.75)))
st_{2.2+4.75} = Segment((2.2, 4.75 + tri(2.2)), (2.2, 4.75 + tri(2.2) + h + (wave(2.2))^(0.75)))
st_{2.2+6} = Segment((2.2, 6 + tri(2.2)), (2.2, 6 + tri(2.2) + h + (wave(2.2))^(0.75)))
st_{2.4+1} = Segment((2.4, 1 + tri(2.4)), (2.4, 1 + tri(2.4) + h + (wave(2.4))^(0.75)))
st_{2.4+2.25} = Segment((2.4, 2.25 + tri(2.4)), (2.4, 2.25 + tri(2.4) + h + (wave(2.4))^(0.75)))
st_{2.4+3.5} = Segment((2.4, 3.5 + tri(2.4)), (2.4, 3.5 + tri(2.4) + h + (wave(2.4))^(0.75)))
st_{2.4+4.75} = Segment((2.4, 4.75 + tri(2.4)), (2.4, 4.75 + tri(2.4) + h + (wave(2.4))^(0.75)))
st_{2.4+6} = Segment((2.4, 6 + tri(2.4)), (2.4, 6 + tri(2.4) + h + (wave(2.4))^(0.75)))
st_{2.6+1} = Segment((2.6, 1 + tri(2.6)), (2.6, 1 + tri(2.6) + h + (wave(2.6))^(0.75)))
st_{2.6+2.25} = Segment((2.6, 2.25 + tri(2.6)), (2.6, 2.25 + tri(2.6) + h + (wave(2.6))^(0.75)))
st_{2.6+3.5} = Segment((2.6, 3.5 + tri(2.6)), (2.6, 3.5 + tri(2.6) + h + (wave(2.6))^(0.75)))
st_{2.6+4.75} = Segment((2.6, 4.75 + tri(2.6)), (2.6, 4.75 + tri(2.6) + h + (wave(2.6))^(0.75)))
st_{2.6+6} = Segment((2.6, 6 + tri(2.6)), (2.6, 6 + tri(2.6) + h + (wave(2.6))^(0.75)))
st_{2.8+1} = Segment((2.8, 1 + tri(2.8)), (2.8, 1 + tri(2.8) + h + (wave(2.8))^(0.75)))
st_{2.8+2.25} = Segment((2.8, 2.25 + tri(2.8)), (2.8, 2.25 + tri(2.8) + h + (wave(2.8))^(0.75)))
st_{2.8+3.5} = Segment((2.8, 3.5 + tri(2.8)), (2.8, 3.5 + tri(2.8) + h + (wave(2.8))^(0.75)))
st_{2.8+4.75} = Segment((2.8, 4.75 + tri(2.8)), (2.8, 4.75 + tri(2.8) + h + (wave(2.8))^(0.75)))
st_{2.8+6} = Segment((2.8, 6 + tri(2.8)), (2.8, 6 + tri(2.8) + h + (wave(2.8))^(0.75)))
st_{3+1} = Segment((3, 1 + tri(3)), (3, 1 + tri(3) + h + (wave(3))^(0.75)))
st_{3+2.25} = Segment((3, 2.25 + tri(3)), (3, 2.25 + tri(3) + h + (wave(3))^(0.75)))
st_{3+3.5} = Segment((3, 3.5 + tri(3)), (3, 3.5 + tri(3) + h + (wave(3))^(0.75)))
st_{3+4.75} = Segment((3, 4.75 + tri(3)), (3, 4.75 + tri(3) + h + (wave(3))^(0.75)))
st_{3+6} = Segment((3, 6 + tri(3)), (3, 6 + tri(3) + h + (wave(3))^(0.75)))
st_{3.2+1} = Segment((3.2, 1 + tri(3.2)), (3.2, 1 + tri(3.2) + h + (wave(3.2))^(0.75)))
st_{3.2+2.25} = Segment((3.2, 2.25 + tri(3.2)), (3.2, 2.25 + tri(3.2) + h + (wave(3.2))^(0.75)))
st_{3.2+3.5} = Segment((3.2, 3.5 + tri(3.2)), (3.2, 3.5 + tri(3.2) + h + (wave(3.2))^(0.75)))
st_{3.2+4.75} = Segment((3.2, 4.75 + tri(3.2)), (3.2, 4.75 + tri(3.2) + h + (wave(3.2))^(0.75)))
st_{3.2+6} = Segment((3.2, 6 + tri(3.2)), (3.2, 6 + tri(3.2) + h + (wave(3.2))^(0.75)))
st_{3.4+1} = Segment((3.4, 1 + tri(3.4)), (3.4, 1 + tri(3.4) + h + (wave(3.4))^(0.75)))
st_{3.4+2.25} = Segment((3.4, 2.25 + tri(3.4)), (3.4, 2.25 + tri(3.4) + h + (wave(3.4))^(0.75)))
st_{3.4+3.5} = Segment((3.4, 3.5 + tri(3.4)), (3.4, 3.5 + tri(3.4) + h + (wave(3.4))^(0.75)))
st_{3.4+4.75} = Segment((3.4, 4.75 + tri(3.4)), (3.4, 4.75 + tri(3.4) + h + (wave(3.4))^(0.75)))
st_{3.4+6} = Segment((3.4, 6 + tri(3.4)), (3.4, 6 + tri(3.4) + h + (wave(3.4))^(0.75)))
st_{3.6+1} = Segment((3.6, 1 + tri(3.6)), (3.6, 1 + tri(3.6) + h + (wave(3.6))^(0.75)))
st_{3.6+2.25} = Segment((3.6, 2.25 + tri(3.6)), (3.6, 2.25 + tri(3.6) + h + (wave(3.6))^(0.75)))
st_{3.6+3.5} = Segment((3.6, 3.5 + tri(3.6)), (3.6, 3.5 + tri(3.6) + h + (wave(3.6))^(0.75)))
st_{3.6+4.75} = Segment((3.6, 4.75 + tri(3.6)), (3.6, 4.75 + tri(3.6) + h + (wave(3.6))^(0.75)))
st_{3.6+6} = Segment((3.6, 6 + tri(3.6)), (3.6, 6 + tri(3.6) + h + (wave(3.6))^(0.75)))
st_{3.8+1} = Segment((3.8, 1 + tri(3.8)), (3.8, 1 + tri(3.8) + h + (wave(3.8))^(0.75)))
st_{3.8+2.25} = Segment((3.8, 2.25 + tri(3.8)), (3.8, 2.25 + tri(3.8) + h + (wave(3.8))^(0.75)))
st_{3.8+3.5} = Segment((3.8, 3.5 + tri(3.8)), (3.8, 3.5 + tri(3.8) + h + (wave(3.8))^(0.75)))
st_{3.8+4.75} = Segment((3.8, 4.75 + tri(3.8)), (3.8, 4.75 + tri(3.8) + h + (wave(3.8))^(0.75)))
st_{3.8+6} = Segment((3.8, 6 + tri(3.8)), (3.8, 6 + tri(3.8) + h + (wave(3.8))^(0.75)))
st_{4+1} = Segment((4, 1 + tri(4)), (4, 1 + tri(4) + h + (wave(4))^(0.75)))
st_{4+2.25} = Segment((4, 2.25 + tri(4)), (4, 2.25 + tri(4) + h + (wave(4))^(0.75)))
st_{4+3.5} = Segment((4, 3.5 + tri(4)), (4, 3.5 + tri(4) + h + (wave(4))^(0.75)))
st_{4+4.75} = Segment((4, 4.75 + tri(4)), (4, 4.75 + tri(4) + h + (wave(4))^(0.75)))
st_{4+6} = Segment((4, 6 + tri(4)), (4, 6 + tri(4) + h + (wave(4))^(0.75)))
st_{4.2+1} = Segment((4.2, 1 + tri(4.2)), (4.2, 1 + tri(4.2) + h + (wave(4.2))^(0.75)))
st_{4.2+2.25} = Segment((4.2, 2.25 + tri(4.2)), (4.2, 2.25 + tri(4.2) + h + (wave(4.2))^(0.75)))
st_{4.2+3.5} = Segment((4.2, 3.5 + tri(4.2)), (4.2, 3.5 + tri(4.2) + h + (wave(4.2))^(0.75)))
st_{4.2+4.75} = Segment((4.2, 4.75 + tri(4.2)), (4.2, 4.75 + tri(4.2) + h + (wave(4.2))^(0.75)))
st_{4.2+6} = Segment((4.2, 6 + tri(4.2)), (4.2, 6 + tri(4.2) + h + (wave(4.2))^(0.75)))
st_{4.4+1} = Segment((4.4, 1 + tri(4.4)), (4.4, 1 + tri(4.4) + h + (wave(4.4))^(0.75)))
st_{4.4+2.25} = Segment((4.4, 2.25 + tri(4.4)), (4.4, 2.25 + tri(4.4) + h + (wave(4.4))^(0.75)))
st_{4.4+3.5} = Segment((4.4, 3.5 + tri(4.4)), (4.4, 3.5 + tri(4.4) + h + (wave(4.4))^(0.75)))
st_{4.4+4.75} = Segment((4.4, 4.75 + tri(4.4)), (4.4, 4.75 + tri(4.4) + h + (wave(4.4))^(0.75)))
st_{4.4+6} = Segment((4.4, 6 + tri(4.4)), (4.4, 6 + tri(4.4) + h + (wave(4.4))^(0.75)))
st_{4.6+1} = Segment((4.6, 1 + tri(4.6)), (4.6, 1 + tri(4.6) + h + (wave(4.6))^(0.75)))
st_{4.6+2.25} = Segment((4.6, 2.25 + tri(4.6)), (4.6, 2.25 + tri(4.6) + h + (wave(4.6))^(0.75)))
st_{4.6+3.5} = Segment((4.6, 3.5 + tri(4.6)), (4.6, 3.5 + tri(4.6) + h + (wave(4.6))^(0.75)))
st_{4.6+4.75} = Segment((4.6, 4.75 + tri(4.6)), (4.6, 4.75 + tri(4.6) + h + (wave(4.6))^(0.75)))
st_{4.6+6} = Segment((4.6, 6 + tri(4.6)), (4.6, 6 + tri(4.6) + h + (wave(4.6))^(0.75)))
st_{4.8+1} = Segment((4.8, 1 + tri(4.8)), (4.8, 1 + tri(4.8) + h + (wave(4.8))^(0.75)))
st_{4.8+2.25} = Segment((4.8, 2.25 + tri(4.8)), (4.8, 2.25 + tri(4.8) + h + (wave(4.8))^(0.75)))
st_{4.8+3.5} = Segment((4.8, 3.5 + tri(4.8)), (4.8, 3.5 + tri(4.8) + h + (wave(4.8))^(0.75)))
st_{4.8+4.75} = Segment((4.8, 4.75 + tri(4.8)), (4.8, 4.75 + tri(4.8) + h + (wave(4.8))^(0.75)))
st_{4.8+6} = Segment((4.8, 6 + tri(4.8)), (4.8, 6 + tri(4.8) + h + (wave(4.8))^(0.75)))
st_{5+1} = Segment((5, 1 + tri(5)), (5, 1 + tri(5) + h + (wave(5))^(0.75)))
st_{5+2.25} = Segment((5, 2.25 + tri(5)), (5, 2.25 + tri(5) + h + (wave(5))^(0.75)))
st_{5+3.5} = Segment((5, 3.5 + tri(5)), (5, 3.5 + tri(5) + h + (wave(5))^(0.75)))
st_{5+4.75} = Segment((5, 4.75 + tri(5)), (5, 4.75 + tri(5) + h + (wave(5))^(0.75)))
st_{5+6} = Segment((5, 6 + tri(5)), (5, 6 + tri(5) + h + (wave(5))^(0.75)))