trouble appears

don’t know how to use C style callback function in Swift
working on CGPatternCallback function
i will finish it tomorrow