precooked = (film) => {
const ƒ = 4
const dotsMajor = pattern(film, { })
const dotsMinor = pattern(film, { frequency: ƒ, radius: 1 })
const lineMajorHorizontal = pattern(film, { kind: "line" })
const lineMajorVertical = pattern(film, { kind: "line", orientation: "vertical" })
const lineMinorHorizontal = pattern(film, { kind: "line", frequency: ƒ, strokeWidth: 1/2 })
const lineMinorVertical =
pattern(film, { kind: "line", frequency: ƒ, orientation: "vertical", strokeWidth: 1/2})
const dots = stack(film, [dotsMajor, dotsMinor])
const squareMajor = stack(film, [lineMajorHorizontal, lineMajorVertical])
const squareMinor = stack(film, [lineMinorHorizontal,lineMinorVertical])
const square = stack(film, [squareMajor, squareMinor])
const dotsnsquare = stack(film, [dots, square])
const allGrids = stack(
film,
[
dots, square,
dotsnsquare,
lineMajorHorizontal, lineMajorVertical,
lineMinorHorizontal, lineMinorVertical,
dotsMinor, dotsMajor
]
)
return ({
dots,
square,
dotsnsquare,
dotsMajor,
dotsMinor,
lineMajorHorizontal,
lineMajorVertical,
squareMajor,
lineMinorHorizontal,
lineMinorVertical,
squareMinor,
allGrids
})
}