Color Mixture

+1 amarillo

+5 amarillo

+1 azul

+5 azul

Restaurar

¡Se desborda!

+1 amarillo

+5 amarillo

+1 azul

+5 azul

Restaurar

¡Se desborda!

¡Coinciden!

mostrar cantidades

0ml

top: 100
yellow = 0 (slider from 0 to 100, step 1)
e = Ellipse((1, 0), (2.5, 0), 1.5)
F = Point(e)
blue = 0 (slider from 0 to 100, step 1)
ratio2: blue / yellow
ratio: yellow / blue
a = If(yellow + blue ≟ 0, 1, If[ratio ≤ 1, 0, (0.79 * ratio2^(2)) - (1.72 * ratio2) + 0.99])
A1: 20
B1: 0.01
A2: 19
A3 = 18
A4 = 17
A5 = 16
A6 = 15
A7 = 14
A8 = 13
A9: 12
A10: 11
A11: 10
A12: 9
A13: 8
A14: 7
A15: 6
A16: 5
A17: 4
A18: 3
A19: 2
A20: 1
A21: 0
B2: 1
B3: 2
B4: 3
B5: 4
B6: 5
B7: 6
B8: 7
B9: 8
B10: 9
B11: 10
B12: 11
B13: 12
B14: 13
B15: 14
B16: 15
B17: 16
B18: 17
B19: 18
B20: 19
B21: 20
C1: A1 / B1
C2: A2 / B2
C3: A3 / B3
C4: A4 / B4
C5: A5 / B5
C6: A6 / B6
C7: A7 / B7
C8: A8 / B8
C9: A9 / B9
C10: A10 / B10
C11: A11 / B11
C12: A12 / B12
C13: A13 / B13
C14: A14 / B14
C15: A15 / B15
C16: A16 / B16
C17: A17 / B17
C18: A18 / B18
C19: A19 / B19
C20: A20 / B20
C21: A21 / B21
D1: 1
E1: 1
F1: 0
D2: 0.9
E2: 1
F2: 0
D3: 0.8
E3: 1
F3: 0
D4: 0.7
E4: 1
F4: 0
D5: 0.6
E5: 1
F5: 0
D6: 0.5
E6: 1
F6: 0
D7: 0.4
E7: 1
F7: 0
D8: 0.3
E8: 1
F8: 0
D9: 0.2
E9: 1
F9: 0
D10: 0.1
E10: 1
F10: 0
D11: 0
E11: 1
F11: 0
D12: 0
E12: 0.9
F12: 0.1
D13: 0
E13: 0.8
F13: 0.2
D14: 0
E14: 0.7
F14: 0.3
D15: 0
E15: 0.6
F15: 0.4
D16: 0
E16: 0.5
F16: 0.5
D17: 0
E17: 0.4
F17: 0.6
D18: 0
E18: 0.3
F18: 0.7
D19: 0
E19: 0.2
F19: 0.8
D20: 0
E20: 0.1
F20: 0.9
D21: 0
E21: 0
F21: 1
b = If(yellow + blue ≟ 0, 1, If[ratio ≥ 1, 1, (-0.85 * ratio^(2)) + (1.78 * ratio)])
c = If(yellow + blue ≟ 0, 1, If[ratio ≥ 1, 0, (0.79 * ratio^(2)) - (1.72 * ratio) + 0.99])
ht: yellow + blue
E = Point(e)
f = Segment(F, (x(F), ht))
G: (x(F), ht)
u = Vector(F, G)
e' = Translate(e, u)
H: (x(E), ht)
poly2, g, f_1, e_1, h = Polygon(G, F, E, H)
J: (x(E), top)
I: (x(F), top)
i = Segment(I, F)
j = Segment(E, J)
v = Vector(F, I)
p = Ellipse((1, ht), (2.5, ht), 1.5)
q = Ellipse((1, 0), (2.5, 0), 1.5)
l = Segment(H, E)
k = Ellipse((1, top), (2.5, top), 1.5)
shift: 6
B = (8.25, 0)
A = (5.25, 1.5908628580873605e-16)
C: (x(A), top)
D: (x(B), top)
m = Segment(C, A)
n = Segment(B, D)
w = Vector(A, C)
yellow2: 0
blue2: 0
ht2: yellow2 + blue2
K: (x(A), ht2)
r = Vector(A, K)
B' = Translate(B, r)
poly1, k_1, a_1, b_1, b' = Polygon(K, A, B, B')
ratiox: yellow2 / blue2
a2 = If(yellow2 + blue2 ≟ 0, 1, If[ratiox ≤ 1, 0, (0.79 * (1 / ratiox)^(2)) - (1.72 * 1 / ratiox) + 0.99])
b2 = If(yellow2 + blue2 ≟ 0, 1, If[ratiox ≥ 1, 1, (-0.85 * ratiox^(2)) + (1.78 * ratiox)])
c2 = If(yellow2 + blue2 ≟ 0, 1, If[ratiox ≥ 1, 0, (0.79 * ratiox^(2)) - (1.72 * ratiox) + 0.99])
d = Vector(F, A)
q' = Translate(q, d)
q'_1 = Translate(q, d)
s = Translate(q'_1, r)
t = Translate(q'_1, r)
g_1 = Segment(B', B)
h_1 = Segment(K, A)
list1 = Sequence(Ellipse[(1, k), (2.5, k), 1.5], k, 10, 90, 10)
list1' = Translate(list1, d)
i_1 = Ray((8.5, 0), (8.5, 1))
list2 = Sequence((8.5, n), n, 0, 100, 10)
L = Point(i_1)
list3 = Sequence(Text[m + "ml", (8.65, m - 1.5)], m, 0, 100, 10)
M = (-6, 125)
N = (10, 125)
O = (10, 105)
P = (-6, 105)
poly3, m_1, n_1, o, p_1 = Polygon(M, N, O, P)
c_1 = false
text5: "amarillo = " + yellow2 + ""
text7: "azul = " + blue2 + ""
text4: "amarillo = " + yellow + ""
text6: "azul = " + blue + ""