BlockLayer
private struct BlockLayer
A grid of square blocks, rasterized with the outer corners of connected shapes optionally rounded.
-
Declaration
Swift
var cells: [[Bool]] -
Declaration
Swift
var cellSize: Double -
Declaration
Swift
var origin: Double -
Declaration
Swift
var radius: Double -
Declaration
Swift
var rounded: Bool -
Declaration
Swift
private func lit(_ r: Int, _ c: Int) -> Bool -
Declaration
Swift
func covers(_ x: Double, _ y: Double) -> Bool
View on GitHub