HOW THE PROMPT WORKS
Follow the brief
into the program.
The player can display the same stored video as a wider or narrower picture. These three clauses tell the agent which values to collect, how to do the math and when the available numbers are insufficient.
Prompt clause
Collect stored width and height plus the pixel width and height ratio, with positive integer inputs.
The stored frame size and the pixel shape describe different properties. Both are needed for a known display ratio.
Prompt clause
Multiply width by the pixel ratio numerator and height by its denominator, reduce the resulting display ratio
Reduction divides both values by the same common divisor. For the starting example, 5760:4320 simplifies to 4:3.
Prompt clause
Leave an unknown pixel ratio unresolved.
The stored shape remains available. The display chart and numerical answer wait until there are two ratio values.
