Bitmap/PPM conversion through a pipe: Difference between revisions
Content added Content deleted
m ({{omit from|ZX Spectrum Basic}}) |
(→{{header|Go}}: library path updates) |
||
Line 47: | Line 47: | ||
In order to make it working, you must link it with the raster image functions given by the codes [[Bresenham's_line_algorithm#C|here]] and [[Basic_bitmap_storage#C|here]] |
In order to make it working, you must link it with the raster image functions given by the codes [[Bresenham's_line_algorithm#C|here]] and [[Basic_bitmap_storage#C|here]] |
||
=={{header|Go}}== |
=={{header|Go}}== |
||
{{works with|Go weekly.2011- |
{{works with|Go weekly.2011-12-14}} (Go 1 should be close) |
||
Using cjpeg: |
Using cjpeg: |
||
<lang go>package main |
<lang go>package main |
||
Line 56: | Line 56: | ||
import ( |
import ( |
||
⚫ | |||
⚫ | |||
"fmt" |
"fmt" |
||
"rand" |
"math/rand" |
||
⚫ | |||
⚫ | |||
) |
) |
||