<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?action=history&amp;feed=atom&amp;title=GMU%3AProcessing_im_Park%2FKatja_Bli%C3%9F%2Fcode4</id>
	<title>GMU:Processing im Park/Katja Bliß/code4 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?action=history&amp;feed=atom&amp;title=GMU%3AProcessing_im_Park%2FKatja_Bli%C3%9F%2Fcode4"/>
	<link rel="alternate" type="text/html" href="https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:Processing_im_Park/Katja_Bli%C3%9F/code4&amp;action=history"/>
	<updated>2026-04-21T03:27:24Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.6</generator>
	<entry>
		<id>https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:Processing_im_Park/Katja_Bli%C3%9F/code4&amp;diff=77625&amp;oldid=prev</id>
		<title>Jochelyn: Created page with &quot;&lt;source lang=&quot;java&quot;&gt;  int n = 3; PImage[] images = new PImage[n];  // offset to the reference point int dx = 100; int dy = 200;  // factor to slow our animation down int slowdown...&quot;</title>
		<link rel="alternate" type="text/html" href="https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:Processing_im_Park/Katja_Bli%C3%9F/code4&amp;diff=77625&amp;oldid=prev"/>
		<updated>2016-01-21T11:13:12Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;  int n = 3; PImage[] images = new PImage[n];  // offset to the reference point int dx = 100; int dy = 200;  // factor to slow our animation down int slowdown...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
int n = 3;&lt;br /&gt;
PImage[] images = new PImage[n];&lt;br /&gt;
&lt;br /&gt;
// offset to the reference point&lt;br /&gt;
int dx = 100;&lt;br /&gt;
int dy = 200;&lt;br /&gt;
&lt;br /&gt;
// factor to slow our animation down&lt;br /&gt;
int slowdown = 4;&lt;br /&gt;
&lt;br /&gt;
// zoom factor for our image&lt;br /&gt;
float zoom = 0.5;&lt;br /&gt;
&lt;br /&gt;
void setup() {&lt;br /&gt;
  &lt;br /&gt;
  // canvas size&lt;br /&gt;
  size(600, 400);&lt;br /&gt;
  &lt;br /&gt;
  // start out with a white background&lt;br /&gt;
  background(255);&lt;br /&gt;
  &lt;br /&gt;
  // load images into the array using a loop&lt;br /&gt;
  for(int i=0; i &amp;lt; n; i++) {&lt;br /&gt;
    &lt;br /&gt;
    // load the image&lt;br /&gt;
    images[i] = loadImage(&amp;quot;chair_&amp;quot; + i + &amp;quot;.gif&amp;quot;);&lt;br /&gt;
    &lt;br /&gt;
&lt;br /&gt;
    images[i].mask(images[i]);&lt;br /&gt;
 &lt;br /&gt;
  }&lt;br /&gt;
  &lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
void draw() {&lt;br /&gt;
  &lt;br /&gt;
  // pick the index of an image&lt;br /&gt;
  int pick = (frameCount / slowdown) % n;&lt;br /&gt;
&lt;br /&gt;
  // move to the mouse position&lt;br /&gt;
  translate(mouseX , mouseY);&lt;br /&gt;
&lt;br /&gt;
  // scale the image&lt;br /&gt;
  scale(zoom);&lt;br /&gt;
  &lt;br /&gt;
  // move to the reference point&lt;br /&gt;
  translate(-dx, -dy);&lt;br /&gt;
  &lt;br /&gt;
  // get image from the array and display it&lt;br /&gt;
  image(images[pick], 0, 0); &lt;br /&gt;
 save(&amp;quot;image.gif&amp;quot;);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Jochelyn</name></author>
	</entry>
</feed>