Question: How to color points by HUE

hi I want to color points like phase portraits of complex functions, so I did something like this:

with(plots);
with(Statistics);
with(LinearAlgebra);
data := Matrix(<Sample(Uniform(-2, 2), [10, 2]) | RandomVector(10, generator = rand(0 .. 3))>);
pointplot(data[() .. (), 1], data[() .. (), 2], symbolsize = 20, symbol = solidbox, colorscheme = ["valuesplit", data[() .. (), 3], [0 = "Red", 1 = "Blue", 2 = "Green", 3 = "Purple"]]);

f := (x, y) -> x^2 - y^2 + 2*I*x*y;
LR := <seq(Re(f(data[1 .. 10, 1 .. 2][i, 1], data[1 .. 10, 1 .. 2][i, 2])), i = 1 .. 10)>;
LI := <seq(Im(f(data[1 .. 10, 1 .. 2][i, 1], data[1 .. 10, 1 .. 2][i, 2])), i = 1 .. 10)>;
pointplot(LR(), LI(), symbolsize = 20, symbol = solidbox, colorscheme = ["valuesplit", data[() .. (), 3], [0 = "Red", 1 = "Blue", 2 = "Green", 3 = "Purple"]]);

there should color points like this in the input (domain coloring of the f(z)=z^2 ):

and output space:

for example these two stripes of pink points on the input space tell us that all those points get mapped
somewhere to the pink direction, the lower right of the output space, thanks in advance

Please Wait...