Rosetta Code:Village Pump/Image uploads: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 59:
:::Thank you, Rdm. It’s certainly feasible for small images, although manual editing is a bit tedious, even for this example(binary digits): [[http://rosettacode.org/wiki/Binary_digits#.7B.7Bheader.7CPiet.7D.7D]] --[[User:Albedo|Albedo]] ([[User talk:Albedo|talk]]) 15:42, 10 July 2015 (UTC)
:::: Yeah, if you were doing a lot of them, I'd suggest starting with a [[Bitmap]] implementation and then whatever other support you want from [[Raster_graphics_operations]] so you can read an image file. Once you have that, you could use imagemagick to convert to your supported file format. Then build a wiki-table renderer and use that for your Piet code. And I guess some of us should also start using one of the [http://www.dangermouse.net/esoteric/piet/tools.html piet interpreters] so we can see your code in action ... --[[User:Rdm|Rdm]] ([[User talk:Rdm|talk]]) 01:47, 11 July 2015 (UTC)
::::: I‘m writing my own Piet interpreter in Julia, especially for debugging more complicated code. And I use npiet to check if my code works. The PietDev on Rapaping.com does not work according to specification because it does not use integer division, but every division operation produces a floating point value. Nevertheless it’s useful for creating smaller examples and stack inspection.
::::: I guess it’s time for me to write a PNG to wikitable translator of sorts. --[[User:Albedo|Albedo]] ([[User talk:Albedo|talk]]) 15:31, 11 July 2015 (UTC)
136

edits