General code rgn-doodling