kCGPathFill
kCGPathFill is a constant used within the Core Graphics framework in Apple's operating systems, primarily for drawing operations. It specifies how a path should be filled, meaning the area enclosed by the path should be colored or rendered. When you create a graphics context and define a path, you can then use a fill operation to apply color to the interior of that path. The kCGPathFill constant tells the system to perform this filling action. This is typically used in conjunction with functions like CGContextFillPath. The rendering behavior of kCGPathFill depends on the current graphics state, including the fill color and the winding rule applied to the path. The winding rule determines how to interpret the interior of complex or self-intersecting paths. Without specifying kCGPathFill, a path might be stroked (drawn along its outline) or not rendered at all. It's a fundamental constant for defining filled shapes in graphics programming on Apple platforms.