Artnet-Tools

From Tomelec
Revision as of 15:15, 13 June 2012 by Tom (talk | contribs)

Jump to: navigation, search

Konvertieren verschiedener Formate

PNG Sequenz -> raw RGB

Verwendet Image Magick´s convert.

for file in *.png; do convert $file rgb:- >> ../outfile.raw; done

Mapping

Ganze panels in vi verschieben

Das verschiebt alle pixelpanel um 100 pixel nach links und 200 pixel nach oben:

:%s/\(^pixelpanel[ ]*\)\([0-9]*\)[ ]*\([0-9]*\)/\=submatch(1).eval(submatch(2) - 100)."  ".eval(submatch(3) - 200)/g