Earlab Home | Home | Getting Started | Projects | Tutorials | Topics | Community | Links |

Projects made with Processing

*The collection of processing projects is at https://github.com/igoumeninja/mySketch*

Table of Contents

shortCode

Δημιουργία πίνακα με 5 γραμμές κώδικα.

./media/img/shortCode.png

size(screen.width, screen.height); // define window size
for (int i =0; i<20000; i++)  {    // loop 20000 times
  fill(int(random(255)));          // fill with random grey scale
  if(i%200 == 0 ) fill(255,0,0);   // every 200 fill with red
  rect(random(width),random(height),random(100),random(100));  // draw rectangles
}

Spira

./media/img/spira.png

Στην παρακάτω εφαρμογή γίνεται μια προσπάθεια απόδοσης της σπέιρας.

typography

http://igoumeninja.org/en/uploads/Tools-Processingjs/uploadPhoto/ena.jpg

/*
This program scans in a grayscale600x600 image, extracts the 
pixel color data, and draws this data on a grid of ellipses.
from: http://visiblevisible.org/teaching/setpixel/students/joseph_l/
Scanning color data from pixels

edit by Aris Bezas Thu, 02 December 2010, 13:35
*/

int step = 7, radius = 1;
PFont fontA;
float[][] pixel_data = new float [600][600]; //600x600=360000


String s = "Twentieth-century philosophy:Main article: Contemporary philosophy: Within the last century, philosophy has increasingly become a professional discipline practiced within universities, like other academic disciplines. Accordingly, it has become less general and more specialized. In the view of one prominent recent historian: Philosophy has become a highly organized discipline, done by specialists primarily for other specialists. The number of philosophers has exploded, the volume of publication has swelled, and the subfields of serious philosophical investigation have multiplied. Not only is the broad field of philosophy today far too vast to be embraced by one mind, something similar is true even of many highly specialized subfields.[22]In the English-speaking world, analytic philosophy became the dominant school for much of the twentieth century. In the first half of the century, it was a cohesive school, shaped strongly by logical positivism, united by the notion that philosophical problems could and should be solved by attention to logic and language. The pioneering work of Bertrand Russell was a model for the early development of analytic philosophy, moving from a rejection of the idealism dominant in late nineteenth century British philosophy to an neo-Humean empiricism, strengthened by the conceptual resources of modern mathematical logic.[23][24][25] In the latter half of the 20th century, analytic philosophy diffused into a wide variety of disparate philosophical views, only loosely united by historical lines of influence and a self-identified commitment to clarity and rigor. The post-war transformation of the analytic program led in two broad directions: on one hand, an interest in ordinary language as a way of avoiding or redescribing traditional philosophical problems, and on the other, a more thoroughgoing naturalism that sought to dissolve the puzzles of modern philosophy via the results of the natural sciences (such as cognitive psychology and evolutionary biology). The shift in the work of Ludwig Wittgenstein, from a view congruent with logical positivism to a therapeutic dissolution of traditional philosophy as a linguistic misunderstanding of normal forms of life, was the most influential version of the first direction in analytic philosophy.[26][27] The later work of Russell and the philosophy of W.V.O. Quine are influential exemplars of the naturalist approach dominant in the second half of the twentieth century.[28][29][30][31] But the diversity of analytic philosophy from the 1970s onward defies easy generalization: the naturalism of Quine and his epigoni was in some precincts superseded by a new metaphysics of possible worlds, as in the influential work of David Lewis.[32][33] Recently, the experimental philosophy movement has sought to reappraise philosophical problems through social science research techniques. On continental Europe, no single school or temperament enjoyed dominance. The flight of the logical positivists from central Europe during the 1930s and 1940s, however, diminished philosophical interest in natural science, and an emphasis on the humanities, broadly construed, figures prominently in what is usually called continental philosophy. Twentieth-century movements such as phenomenology, existentialism, hermeneutics, critical theory, structuralism, and poststructuralism are included within this loose category, which began at the turn of the century in the ideas of Edmund Husserl, who sought to study consciousness as experienced from a first-person perspective,[34][35] and found unconventional but influential articulation in the works of Martin Heidegger, who drew on the ideas of Kierkegaard, Nietzsche, and Husserl to propose an existential approach to ontology.[36][37]        from http://en.wikipedia.org/wiki/Philosophy   *)**!*@#^%$!)*^@%$)*!&@^#$(_&*@^$_!(@&*#$^!&@#^$_!&@^$_(!@&*^$_(&@$^_!(@&#$^!_@(&$^!@_(&$^$_(!@&^$)$#^%!$#^%$!@#^%$!@#%$!@#&!%@$#&!$@^!$%#&^%&^%!@%$%$)*!&@^#$(_&*@^$_!(@&*#$^!&@#^$_!&@^$_(!@&*^$_(&@$^_!(@&#$(*&^%*&%$*^%#$&^$#&%$@#^&%#@^$#@^$#@^$#@^$#@^$#@^$#@^$#@%$@!%#@!%#@!^$#@&%$#*^%$(*&^%(*^$%*&%#^*^$#&%$(^%*&%#$*^&(%*)^(_()*^(&$%*$#&^*^%(&)^*_&*(^)&*%^($&%*#^$&@#^!@&$#*%$(^&%)&^(_*&(^&)%*^($&%*#^$@&%#!^@&$#*%$(^%)&*^*(^!_ALEALEALELALELALELALELAEL";
int i = 0,j = 12, stringPos;
void setup()  {
        size(600, 600);
        frameRate(180);
        background(255);
        smooth();
        //fontA = loadFont("Serif-12.vlw");
        fontA = loadFont("AbadiMT-CondensedExtraBold-12.vlw");
        textFont(fontA); 
        textSize(14);
        textAlign(CENTER);
        int pixel_count = 0;
        PImage face = loadImage("ena.jpg");    // load image
        color pixcol;                          // variable fr pixel color
        int facecol;

        //scans through the image and saves the pixel data in an array
        if(pixel_count < 359999)  {
                for(int i=0;i<599;i++)  {              //scan each pixels on axis x
                        for(int j=0;j<599;j++)  {            //scan each pixels on axis y
                                pixcol = face.pixels[pixel_count];
                                pixel_data[i][j] = green(pixcol);
                                pixel_count++;
                        }
                        pixel_count++;
                }
        }
}

void draw()  {
        fill(pixel_data[j][i]);
        text(s.charAt(stringPos),i,j);  
        i = i + step;
        if (i > 599)            {
                i = 0;
                j = j + 12;
        }
        stringPos=stringPos+1;
        if (stringPos > 360000/92)  {background(255);stringPos = 0;i=0;j=12;}
}

typographyPortraits

sKeTch

The Abyss

A project made by Andreas Gysin for polymorphism workshop.

  • The rules:
    • Extend the SuperCreature class and build your own creature.
    • Allowed colors are white with alpha shades. Not a strict rule.
    • Each creature must implement the "move()" and "draw()" methods. (see SuperCreature for details)
    • Transforms should use the pos, rot, sca vectors.
    • Animations can be timed with frames or actual time.
    • The name of the new creature class is built with the authors initals and the creature name;
    • not an optimal naming convention but it works with 10-20 people.
    • The .pde file must have the same name of the class.
    • example: AGCubus
    • Insert your name, the creature name and the version in the constructor.
  • How the TheAbyss works:
    • Analyze the code
      • import java.lang.reflect.*; //
      • private ArrayList<SuperCreature>creatures;
      • private ArrayList<Class>creatureClasses;
      • abstract class SuperCreature {}

Greek Villages

Author: Ioannis Zannos & Aris Bezas

Date: <2011-06-27 Mon>

HTML generated by org-mode 7.4 in emacs 23