_generateHexOverlayImage(_:)
@MainActor
private static func _generateHexOverlayImage(_ inBounds: CGRect) -> UIImage?
This function generates an overlay image of a faint “hex grid” that allows us to simulate an old-fashioned “fluorescent” display.
Parameters
inBounds
|
The main bounds of the screen, from which the array will be calculated. |
-
This returns a CGMutablePath, describing a “pointy side up” hexagon.
See moreDeclaration
Swift
@MainActor func _getHexPath(radius inRadius: CGFloat) -> (CGMutablePath, CGSize)Parameters
inRadiusThe radius, in display units.
Return Value
A tuple, containing a CGMutablePath, describing a “pointy side up” hexagon, and the size of the hexagon.
View on GitHub
Install in Dash