My entry for Weekly Challenge #20. Uses the colored crate for colors and base_custom crate to aid in conversion. Supports both decimal and hexadecimal (0-f) io. Tends to get slow once r*c gets to be about a million.
psst.. you might want to println! i and j at around line 64. I'm not sure you're considering the right numbers