Artnet-Tools

From Tomelec
Revision as of 14:22, 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

Panels

Derzeit implementierte panels:

Panel Parameter hä? pixelpanel x y w h rechteckiges 1:1 Pixelmapping
cielos600_r x y 90° rechtsgedrehtes 12x12 Pixelpanel
Butter Eis
  • pixelpanel x y w h
  • cielos600_r x y

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