tadd scripts to animate image example output - Granular.jl - Julia package for granular dynamics simulation
HTML git clone git://src.adamsgaard.dk/Granular.jl
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit b9ae62f33e62426350658c6b53744f9db3d23eba
DIR parent 6f10719ac711e7d10f5ed3f953e13c6b2f4e3a8f
HTML Author: Anders Damsgaard <andersd@riseup.net>
Date: Wed, 1 Nov 2017 09:33:40 -0400
add scripts to animate image example output
Diffstat:
A examples/image.animate.sh | 8 ++++++++
A examples/image.pvpython.py | 192 +++++++++++++++++++++++++++++++
2 files changed, 200 insertions(+), 0 deletions(-)
---
DIR diff --git a/examples/image.animate.sh b/examples/image.animate.sh
t@@ -0,0 +1,8 @@
+#!/bin/bash
+convert -trim +repage \
+ -delay 10 -transparent-color white -reverse -loop 0 \
+ image/*.png image/image.gif
+
+convert -trim +repage \
+ -delay 10 -transparent-color white -loop 0 \
+ image/*.png image/image-forward.gif
DIR diff --git a/examples/image.pvpython.py b/examples/image.pvpython.py
t@@ -0,0 +1,192 @@
+#### import the simple module from the paraview
+from paraview.simple import *
+#### disable automatic camera reset on 'Show'
+paraview.simple._DisableFirstRenderCameraReset()
+
+# create a new 'XML Unstructured Grid Reader'
mx1.adamsgaard.dk:70 /src/Granular.jl/commit/b9ae62f33e62426350658c6b53744f9db3d23eba.gph:40: line too long