Greyscale bars/Display: Difference between revisions

m
Line 591:
<pre>$ ocaml graphics.cma greyscale_bars.ml</pre>
=={{header|Perl 6}}==
<lang perl6>my $wininfo = qx/[xwininfo -root/];
my ($width,$height) = ($wininfo ~~ /'Width: ' (\d+) .*? 'Height: ' (\d+)/)[];
($width,$height) = 1280,768 unless $width;
Line 599:
$PGM.print: qq:to/EOH/;
P2
# feepgreybars.pgm
$width $height
65535
Anonymous user