[console] fixed: consistent division behavior
[console] changed: use gray scale when indexes of rgb are the same