Circle pattern function
Fixes pattern color bug
Added pattern rect function