rpl.rb/samples/dpi.rpl
Gwenhael Le Moine a21cf92e25
add sample rpl rpograms
Signed-off-by: Gwenhael Le Moine <gwenhael.le.moine@gmail.com>
2022-11-15 14:27:56 +01:00

6 lines
No EOL
190 B
Text

@ ( resx resy diaginches -- dpi )
@ Naive version
@ 'diag' lsto 'y' lsto 'x' lsto y x / 'ratio' lsto diag sq 1 ratio sq + / sqrt 'xd' lsto x xd /
sq rot rot over / sq 1 + rot swap / sqrt /