Module

SlatWall

Package
purescript-slatwall
Repository
getmediawall/purescript-slatwall

Slat panel TV media wall calculator.

Computes how many slat (acoustic) wall panels a media wall needs, how many slats fit on one panel with a minimum gap, the real gap when the slats are spread evenly, and the size of a 16:9 TV from its diagonal. All lengths are in inches.

An interactive planner with the same arithmetic, which draws the wall to scale with a TV, fireplace or console: Design Your Wall.

#Wall Source

type Wall = { height :: Number, minGap :: Number, panelLength :: Number, panelWidth :: Number, slat :: Number, width :: Number }

Input of a slat wall section. All lengths in inches: section width and height, panelWidth and panelLength of one panel, slat width and the minimum gap minGap between two slats.

#WallPlan Source

type WallPlan = { areaSqFt :: Number, gap :: Number, order :: Int, orderWithSpare :: Int, panelsAcross :: Int, rows :: Int, slatsPerPanel :: Int }

Result of plan: panels across (the last one may be cut), panel rows, slats per panel, the real gap when the slats are spread evenly, panels to order, panels to order with one spare, and the area in square feet.

#defaultWall Source

defaultWall :: Wall

A 10 ft x 8 ft section with typical 24 x 96 in panels, 1.1 in slats and a 0.75 in minimum gap. Typical values only; use the data sheet of the panels you install.

#plan Source

plan :: Wall -> Maybe WallPlan

Plan a slat wall section. plan defaultWall gives 5 panels across, 1 row, 12 slats per panel, a 0.9 in gap and 6 panels with a spare. Returns Nothing when a length is not positive or minGap is negative.

#tvSize Source

tvSize :: Number -> Tuple Number Number

Width and height (inches) of a 16:9 TV screen from its diagonal; tvSize 65.0 is about Tuple 56.65 31.87.

Modules
SlatWall