<?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%2FDirk_W%C3%A4sch%2FCode_Hausaufgabe_III</id>
	<title>GMU:Processing im Park/Dirk Wäsch/Code Hausaufgabe III - 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%2FDirk_W%C3%A4sch%2FCode_Hausaufgabe_III"/>
	<link rel="alternate" type="text/html" href="https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:Processing_im_Park/Dirk_W%C3%A4sch/Code_Hausaufgabe_III&amp;action=history"/>
	<updated>2026-05-29T21:06:48Z</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/Dirk_W%C3%A4sch/Code_Hausaufgabe_III&amp;diff=78252&amp;oldid=prev</id>
		<title>Cive4563: Created page with &quot;Processing v3.0.0 Quellcode:   &lt;br&gt; &lt;source lang=&quot;java&quot;&gt; int n = 10;  // list of flickr urls, containing my images String[] urls = {   &quot;https://c1.staticflickr.com/1/583/23143686...&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/Dirk_W%C3%A4sch/Code_Hausaufgabe_III&amp;diff=78252&amp;oldid=prev"/>
		<updated>2016-01-28T11:13:57Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;Processing v3.0.0 Quellcode:   &amp;lt;br&amp;gt; &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt; int n = 10;  // list of flickr urls, containing my images String[] urls = {   &amp;quot;https://c1.staticflickr.com/1/583/23143686...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;Processing v3.0.0 Quellcode:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
int n = 10;&lt;br /&gt;
&lt;br /&gt;
// list of flickr urls, containing my images&lt;br /&gt;
String[] urls = {&lt;br /&gt;
  &amp;quot;https://c1.staticflickr.com/1/583/23143686064_f334ac29d3_c.jpg&amp;quot;,&lt;br /&gt;
  &amp;quot;https://c1.staticflickr.com/1/744/23145048033_5e4ca63da7_c.jpg&amp;quot;,&lt;br /&gt;
  &amp;quot;https://c1.staticflickr.com/6/5774/23771836845_a9bfd0e883_c.jpg&amp;quot;,&lt;br /&gt;
  &amp;quot;https://c1.staticflickr.com/6/5715/23403900079_6d7e2fbd96_c.jpg&amp;quot;,&lt;br /&gt;
  &amp;quot;https://c1.staticflickr.com/6/5815/23663367172_c647395930_c.jpg&amp;quot;,&lt;br /&gt;
  &amp;quot;https://c1.staticflickr.com/1/721/23663365892_fa35e2156a_c.jpg&amp;quot;,&lt;br /&gt;
  &amp;quot;https://c1.staticflickr.com/6/5654/23476155410_dfaa2d34e5_c.jpg&amp;quot;,&lt;br /&gt;
  &amp;quot;https://c1.staticflickr.com/1/781/23689409061_eb23a1cfd3_c.jpg&amp;quot;,&lt;br /&gt;
  &amp;quot;https://c1.staticflickr.com/1/614/23403891279_54d675d8db_c.jpg&amp;quot;,&lt;br /&gt;
  &amp;quot;https://c1.staticflickr.com/6/5695/23403888729_3caefaf24a_c.jpg&amp;quot;&lt;br /&gt;
};&lt;br /&gt;
&lt;br /&gt;
&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.25;&lt;br /&gt;
 &lt;br /&gt;
// speed of rotation&lt;br /&gt;
float speed = 0.005;&lt;br /&gt;
 &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(urls[i]);&lt;br /&gt;
 &lt;br /&gt;
    // Use the brightness of the image as its own alpha channel)&lt;br /&gt;
    images[i].mask(images[i]);&lt;br /&gt;
    &lt;br /&gt;
    noCursor();&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;
  // let&amp;#039;s set a transparent tint, for extra effect&lt;br /&gt;
  tint(255, 35);&lt;br /&gt;
 &lt;br /&gt;
  // save the current transformation matrix&lt;br /&gt;
  pushMatrix();&lt;br /&gt;
 &lt;br /&gt;
  // restore the previous transformation matrix&lt;br /&gt;
  popMatrix();&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;
 &lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Cive4563</name></author>
	</entry>
</feed>