Pinstripe/Display: Difference between revisions

Added Befunge example.
No edit summary
(Added Befunge example.)
Line 133:
RECTANGLE FILL X%,yscreen%*0/2,8,yscreen%/2
NEXT</lang>
 
=={{header|Befunge}}==
 
This is loosely based on the [[Pinstripe/Display#C.23|C#]] sample, only it writes the image to stdout using the PBM format. You can either redirect that to a file, or pipe it to something like ImageMagick's ''display'' utility to view the result.
 
The dimensions of the image are specified by the first two values on the stack: 1366 (<tt>"%":*3-</tt>) by 768 (<tt>"`"8*</tt>).
 
<lang befunge>"%":*3-"`"8*>4/::8%00p8/10p4*\55+"1P",,v
,:.\.5vv-g025:\-1_$$55+,\:v1+*8g01g00_@>
024,+5<>/2%.1+\:>^<:\0:\-1_$20g1-:20p^1p</lang>
 
=={{header|C}}==
Anonymous user