Pixelated Square Patch

Source code notebook

Specifying 'J' for the element class as in this example will generate a warning in the Julia REPL. In this case the warning can be ignored because there are no pixels that intersect with their neighbors at only a single point. See the discussion in the "checkerboard" usage example.

using PSSFSS, Plots
units = cm
P = 1
units = cm
pdiv = 10
patternmat = Bool[1 0 0 1
                  0 0 0 0
                  0 0 0 0
                  1 0 0 1]

sheet = pixels(; P, pdiv, patternmat, units, class='J')
p1 = plot(sheet, linecolor = :red, unitcell = true)
p2 = plot(sheet, linecolor = :blue, rep=(3,3))
plot(p1, p2, layout = (1,2), size=(800,400))

This page was generated using DemoCards.jl and Literate.jl.