iks: generate graph colors if not defined

+ convert colors names to hex codes
+ reimplement algorithm from draw3 that generates colors for graphs