Difference between revisions of "Artnet-Tools"

From Tomelec
Jump to: navigation, search
(Created page with "= Konvertieren verschiedener Formate = == PNG Sequenz -> raw RGB == Verwendet Image Magick´s '''convert'''. <nowiki>for file in *.png; do convert $file rgb:- >> ../outfile.raw;...")
 
m
Line 3: Line 3:
 
Verwendet Image Magick´s '''convert'''.
 
Verwendet Image Magick´s '''convert'''.
 
  <nowiki>for file in *.png; do convert $file rgb:- >> ../outfile.raw; done</nowiki>
 
  <nowiki>for file in *.png; do convert $file rgb:- >> ../outfile.raw; done</nowiki>
 +
 +
= Mapping =
 +
== Ganze panels in vi verschieben ==
 +
Das verschiebt alle ''pixelpanel'' um 100 pixel nach links und 200 pixel nach oben:
 +
<nowiki>:%s/\(^pixelpanel[ ]*\)\([0-9]*\)[ ]*\([0-9]*\)/\=submatch(1).eval(submatch(2) - 100)."  ".eval(submatch(3) - 200)/g</nowiki>

Revision as of 14:15, 13 June 2012

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