<?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%2FEmilio_Aguas%2Fsample_code_test07</id>
	<title>GMU:Processing im Park/Emilio Aguas/sample code test07 - 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%2FEmilio_Aguas%2Fsample_code_test07"/>
	<link rel="alternate" type="text/html" href="https://www.uni-weimar.de/kunst-und-gestaltung/wiki/index.php?title=GMU:Processing_im_Park/Emilio_Aguas/sample_code_test07&amp;action=history"/>
	<updated>2026-08-25T09:28:30Z</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/Emilio_Aguas/sample_code_test07&amp;diff=80416&amp;oldid=prev</id>
		<title>EmilioAguas: Created page with &quot;====--- Processing3.0 Code--- ====  Z depth according to the brightness values of the pixels  &lt;source lang=&quot;java&quot;&gt;  PImage img; int pixs = 4; int colums, rows;   void setup() {  ...&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/Emilio_Aguas/sample_code_test07&amp;diff=80416&amp;oldid=prev"/>
		<updated>2016-04-01T16:46:21Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;====--- Processing3.0 Code--- ====  Z depth according to the brightness values of the pixels  &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;  PImage img; int pixs = 4; int colums, rows;   void setup() {  ...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;====--- Processing3.0 Code--- ====&lt;br /&gt;
&lt;br /&gt;
Z depth according to the brightness values of the pixels&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
PImage img;&lt;br /&gt;
int pixs = 4;&lt;br /&gt;
int colums, rows;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
void setup() {&lt;br /&gt;
  size (900, 600, P3D);&lt;br /&gt;
  background (0);&lt;br /&gt;
  smooth ();&lt;br /&gt;
  noStroke();&lt;br /&gt;
&lt;br /&gt;
  img= loadImage (&amp;quot;IMG_0243.jpg&amp;quot;);&lt;br /&gt;
  colums = width/pixs;&lt;br /&gt;
  rows= height/pixs;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
void draw () {&lt;br /&gt;
  loadPixels ();&lt;br /&gt;
  for (int i = 0; i &amp;lt; colums; i++) {&lt;br /&gt;
    for (int j = 0; j &amp;lt; rows; j++) {&lt;br /&gt;
    &lt;br /&gt;
    int x = ((i * pixs) + (pixs/2));&lt;br /&gt;
    int y = ((j * pixs) + (pixs/2));&lt;br /&gt;
    int pixel_loc = x + (y * img.width);&lt;br /&gt;
    color image = img.pixels[pixel_loc];&lt;br /&gt;
    float z = (mouseX/ (float) width) * brightness(img.pixels[pixel_loc]) - 250;&lt;br /&gt;
    &lt;br /&gt;
    pushMatrix();&lt;br /&gt;
    translate (x, y, z);&lt;br /&gt;
    fill (image);&lt;br /&gt;
    rectMode (CORNER);&lt;br /&gt;
    rect(0, 0, pixs, pixs);&lt;br /&gt;
    popMatrix();&lt;br /&gt;
    }&lt;br /&gt;
  }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>EmilioAguas</name></author>
	</entry>
</feed>