refactor diffRGB
refactor constants for mandatory point0/1 of paths
sort points by angle so that lines do not cross
reintroduce curves