<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Alex</title>
    <description>The latest articles on DEV Community by Alex (@alex_4eab0abe619233af4c31).</description>
    <link>https://dev.to/alex_4eab0abe619233af4c31</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4178931%2Fe4f58fd3-28d7-4d70-9134-919a3ca2cf48.png</url>
      <title>DEV Community: Alex</title>
      <link>https://dev.to/alex_4eab0abe619233af4c31</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/alex_4eab0abe619233af4c31"/>
    <language>en</language>
    <item>
      <title>Building a screen comparison tool around viewing distance</title>
      <dc:creator>Alex</dc:creator>
      <pubDate>Mon, 12 Oct 2026 11:29:51 +0000</pubDate>
      <link>https://dev.to/alex_4eab0abe619233af4c31/building-a-screen-comparison-tool-around-viewing-distance-56ek</link>
      <guid>https://dev.to/alex_4eab0abe619233af4c31/building-a-screen-comparison-tool-around-viewing-distance-56ek</guid>
      <description>&lt;p&gt;A 65-inch TV and a 75-inch TV are easy to compare on a spec sheet. Comparing a desk monitor with a living-room TV or a cinema screen is a different question: how much of your view does each one fill from where you sit?&lt;/p&gt;

&lt;p&gt;I built DisplayMath to make that comparison visible, with a free browser calculator and an AR preview for supported iPhones.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fncs8da7tsh2jmamspj6i.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Farticles%2Fncs8da7tsh2jmamspj6i.jpg" alt="A DisplayMath screen panel preview placed on a wall using iPhone browser AR" width="800" height="479"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Start with the geometry
&lt;/h2&gt;

&lt;p&gt;For a flat screen, the diagonal and aspect ratio give its physical width and height. For a 16:9 screen, width is diagonal × 16 / √337. Resolution affects pixel density, but it does not change those physical dimensions.&lt;/p&gt;

&lt;p&gt;Once you know the width, the horizontal viewing angle is a small calculation:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;horizontalFov&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;width&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;distance&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="c1"&gt;// Width and distance must use the same unit.&lt;/span&gt;
  &lt;span class="k"&gt;return&lt;/span&gt; &lt;span class="mi"&gt;2&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="nb"&gt;Math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;atan&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nx"&gt;width&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="nx"&gt;distance&lt;/span&gt;&lt;span class="p"&gt;))&lt;/span&gt; &lt;span class="o"&gt;*&lt;/span&gt; &lt;span class="mi"&gt;180&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="nb"&gt;Math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;PI&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;A 65-inch 16:9 screen is about 1.44 m wide. At 2.5 m, it spans roughly 32° horizontally; a 75-inch screen at the same distance spans roughly 37°. Move the seat and both angles change, while the screens stay the same physical size.&lt;/p&gt;

&lt;h2&gt;
  
  
  Keep two comparisons separate
&lt;/h2&gt;

&lt;p&gt;DisplayMath has a physical-size view for checking dimensions and a From your seat view that accounts for each display’s distance. Separate distance controls let you compare a nearby monitor with a TV farther away.&lt;/p&gt;

&lt;p&gt;One detail matters here: equal viewing angles do not guarantee an identical sense of scale or immersion. Room cues, screen distance and picture quality still matter. The calculator shows geometry without turning it into a universal comfort score.&lt;/p&gt;

&lt;h2&gt;
  
  
  Bring it into the room
&lt;/h2&gt;

&lt;p&gt;On a supported iPhone, you can preview a selected screen panel at actual size on your wall without installing an app. That helps answer the practical question after the math: does this size fit the space? The preview shows the panel, so the bezel, stand and mounting hardware need a separate check.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://displaymath.com/?d=4k-65_250cm%2C4k-75_250cm#canvas" rel="noopener noreferrer"&gt;Try 65-inch vs 75-inch at 2.5 m&lt;/a&gt;. The calculators and AR previews are free and need no account.&lt;/p&gt;

&lt;p&gt;I’d welcome feedback on whether the distance controls make the comparison easy to understand.&lt;/p&gt;

</description>
      <category>javascript</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
