Rouge

Verte

Bleue

Nombre\ de\ billes

Rouge

Verte

Bleue

Rouge

Verte

Bleue

Rouge

Verte

Bleue

Rouge = 3 (slider from 1 to 10, step 1)
Verte = 5 (slider from 1 to 10, step 1)
Bleue = 2 (slider from 1 to 10, step 1)
A = (-10, 0)
R = (0, 12)
V = (0, 0)
B = (0, -12)
a = Segment(A, R)
b = Segment(A, V)
c = Segment(A, B)
Total: Rouge + Verte + Bleue
texte1: "\frac{" + (LaTeX[Rouge]) + "}{" + (LaTeX[Total]) + "}"
texte2: "\frac{" + (LaTeX[Verte]) + "}{" + (LaTeX[Total]) + "}"
texte3: "\frac{" + (LaTeX[Bleue]) + "}{" + (LaTeX[Total]) + "}"
G = (12, 16)
h = Segment(R, G)
I = (12, 12)
J = (12, 8)
K = (12, 4)
k = Segment(V, K)
M = (12, 0)
N = (12, -4)
O = (12, -8)
n = Segment(B, O)
Q = (12, -12)
S = (12, -16)
i = Segment(R, I)
j = Segment(R, J)
p = Segment(B, Q)
q = Segment(B, S)
l = Segment(V, M)
m = Segment(V, N)
texte5: "\frac{" + (LaTeX[Rouge - 1]) + "}{" + (LaTeX[Total - 1]) + "}"
texte6: "\frac{" + (LaTeX[Verte]) + "}{" + (LaTeX[Total - 1]) + "}"
texte7: "\frac{" + (LaTeX[Bleue]) + "}{" + (LaTeX[Total - 1]) + "}"
texte8: "\frac{" + (LaTeX[Rouge]) + "}{" + (LaTeX[Total - 1]) + "}"
texte9: "\frac{" + (LaTeX[Verte - 1]) + "}{" + (LaTeX[Total - 1]) + "}"
texte10: "\frac{" + (LaTeX[Bleue]) + "}{" + (LaTeX[Total - 1]) + "}"
texte11: "\frac{" + (LaTeX[Rouge]) + "}{" + (LaTeX[Total - 1]) + "}"
texte12: "\frac{" + (LaTeX[Bleue - 1]) + "}{" + (LaTeX[Total - 1]) + "}"
texte13: "\frac{" + (LaTeX[Verte]) + "}{" + (LaTeX[Total - 1]) + "}"
texte17: "\frac{" + (LaTeX[Verte]) + "}{" + (LaTeX[Total]) + "}×\frac{" + (LaTeX[Rouge]) + "}{" + (LaTeX[Total - 1]) + "}=\frac{" + (LaTeX[Rouge * Verte]) + "}{" + (LaTeX[Total * (Total - 1)]) + "}=" + (LaTeX[FractionText[(Verte * Rouge) / (Total * (Total - 1))]]) + ""
texte14: "\frac{" + (LaTeX[Rouge]) + "}{" + (LaTeX[Total]) + "}×\frac{" + (LaTeX[Rouge - 1]) + "}{" + (LaTeX[Total - 1]) + "}=\frac{" + (LaTeX[Rouge * (Rouge - 1)]) + "}{" + (LaTeX[Total * (Total - 1)]) + "} = " + (LaTeX[FractionText[(Rouge * (Rouge - 1)) / (Total * (Total - 1))]]) + ""
texte15: "\frac{" + (LaTeX[Rouge]) + "}{" + (LaTeX[Total]) + "}×\frac{" + (LaTeX[Verte]) + "}{" + (LaTeX[Total - 1]) + "}=\frac{" + (LaTeX[Rouge * Verte]) + "}{" + (LaTeX[Total * (Total - 1)]) + "} = " + (LaTeX[FractionText[(Rouge * Verte) / (Total * (Total - 1))]]) + ""
texte16: "\frac{" + (LaTeX[Rouge]) + "}{" + (LaTeX[Total]) + "}×\frac{ " + (LaTeX[Bleue]) + "}{" + (LaTeX[Total - 1]) + " }=\frac{" + (LaTeX[Rouge * Bleue]) + "}{" + (LaTeX[Total * (Total - 1)]) + "}=" + (LaTeX[FractionText[(Rouge * Bleue) / (Total * (Total - 1))]]) + ""
texte18: "\frac{" + (LaTeX[Verte]) + "}{" + (LaTeX[Total]) + "}×\frac{" + (LaTeX[Verte - 1]) + "}{" + (LaTeX[Total - 1]) + "}=\frac{" + (LaTeX[Verte * (Verte - 1)]) + "}{" + (LaTeX[Total * (Total - 1)]) + "}=" + (LaTeX[FractionText[(Verte * (Verte - 1)) / (Total * (Total - 1))]]) + ""
texte19: "\frac{" + (LaTeX[Verte]) + "}{" + (LaTeX[Total]) + "}×\frac{" + (LaTeX[Bleue]) + "}{" + (LaTeX[Total - 1]) + "}=\frac{" + (LaTeX[Verte * Bleue]) + "}{" + (LaTeX[Total * (Total - 1)]) + "}=" + (LaTeX[FractionText[(Verte * Bleue) / (Total * (Total - 1))]]) + ""
texte20: "\frac{" + (LaTeX[Bleue]) + "}{" + (LaTeX[Total]) + "}×\frac{" + (LaTeX[Rouge]) + "}{" + (LaTeX[Total - 1]) + "}=\frac{" + (LaTeX[Bleue * Rouge]) + "}{" + (LaTeX[Total * (Total - 1)]) + "}=" + (LaTeX[FractionText[(Bleue * Rouge) / (Total * (Total - 1))]]) + ""
texte21: "\frac{" + (LaTeX[Bleue]) + "}{" + (LaTeX[Total]) + "}×\frac{" + (LaTeX[Verte]) + "}{" + (LaTeX[Total - 1]) + "}=\frac{" + (LaTeX[Bleue * Verte]) + "}{" + (LaTeX[Total * (Total - 1)]) + "}=" + (LaTeX[FractionText[(Bleue * Verte) / (Total * (Total - 1))]]) + ""
texte22: "\frac{" + (LaTeX[Bleue]) + "}{" + (LaTeX[Total]) + "}×\frac{" + (LaTeX[Bleue - 1]) + "}{" + (LaTeX[Total - 1]) + "}=\frac{" + (LaTeX[Bleue * (Bleue - 1)]) + "}{" + (LaTeX[Total * (Total - 1)]) + "}=" + (LaTeX[FractionText[(Bleue * (Bleue - 1)) / (Total * (Total - 1))]]) + ""