pat = ccontext:PopGroup()
The ccontext:PopGroup() function calls ccontext:Restore(), (balancing a
call to ccontext:Save() by the push_group function), so that any
changes to the graphics state will not be visible outside the
group.
This function returns a newly created (surface) pattern containing the results of all drawing operations performed to the group. The caller owns the returned object and should call cpattern:Free() when finished with it.