Poorly Coded Cats

hi, how i can use this code for paint figure like rect or text?