Representing colors in RGB using Viviani's theorem

Instructions :
Drag the triangular point insdide the big equilateral triangle. [br]A disc centered on this point is colored using RGB such that R+G+B=1. [br]You can change the radius and the opacity of this disc.[br]Below is a gradient using the same proportions of R, G, B. Namely, from left to right, (R,G,B) corresponds to the values for a given point, the colors of the squares are :[br]R*k/Max(R,G,B)[br]G*k/Max(R,G,B)[br]B*k/Max(R,G,B)[br]with k going from 0.1 to 1, with a step of 0.1.

Information: Representing colors in RGB using Viviani's theorem