Plotting a raster image

using Images

# Construct the array of complex values.
z = (1:-0.01:-1) .* im .+ (-1:0.01:1)';

# Define the function z->RGB on each point
f(z) = RGB(abs(imag(z)), abs(angle(z)), abs(z))

# Broadcast the function.
image = f.(z)
1 Like