{"id":10751,"date":"2009-07-30T08:00:50","date_gmt":"2009-07-30T07:00:50","guid":{"rendered":"http:\/\/funrecycler.com\/?p=2808"},"modified":"2009-07-30T08:00:50","modified_gmt":"2009-07-30T07:00:50","slug":"processing-unter-linux","status":"publish","type":"post","link":"https:\/\/funrecycler.com\/index.php\/2009\/07\/30\/processing-unter-linux\/","title":{"rendered":"processing unter Linux"},"content":{"rendered":"<p>Processing ist eine auf die Einsatzbereiche Grafik, Simulation und Animation spezialisierte objektorientierte, stark typisierte Programmiersprache mit zugeh\u00f6riger integrierter Entwicklungsumgebung. Sie wird in einem quelloffenen Projekt entwickelt, das am Massachusetts Institute of Technology in Boston von Ben Fry (Broad Institute) und Casey Reas (UCLA Design|Media Arts) initiiert wurde. Processing hat den Charakter einer stark vereinfachten Version der Programmiersprache Java, erlaubt es Interaktionen und visuelle Elemente zu programmieren, und richtet sich vorwiegend an Gestalter, K\u00fcnstler und Programmieranf\u00e4nger.<br \/>\n<img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-2809\" title=\"processing\" src=\"http:\/\/funrecycler.com\/wp-content\/uploads\/2009\/07\/processing.jpg\" alt=\"processing\" width=\"504\" height=\"602\" \/><br \/>\n<!--more--><br \/>\nDie Klassenbibliotheken der Programmiersprache zielen vor allem auf das Einsatzgebiet von Processing und ber\u00fccksichtigen die Themen Video, Grafik, Grafikformate, Sound, Animation, Typographie, 3D, Simulation, Datenzugriff und -transfer, sowie Netzwerkprotokolle.<br \/>\nUm es auch unter Ubuntu zum laufen zu bekommen bedarf es nur einem <a href=\"http:\/\/processing.org\/download\/\" target=\"_self\" rel=\"noopener\">Download <\/a>und dem nachfolgendem entpacken.<\/p>\n<pre lang=\"BASH\">wget  http:\/\/processing.org\/download\/processing-1.0.5.tgz; tar -xzf processing-1.0.5.tgz<\/pre>\n<p>Um einmal den Syntax zu sehen, sind hier die Codezeilen f\u00fcr das o.g. Projekt<br \/>\nViel Spass beim t\u00fcfteln.<\/p>\n<pre>\/**\n * RGB Cube.\n *\n * The three primary colors of the additive color model are red, green, and blue.\n * This RGB color cube displays smooth transitions between these colors.\n *\/\nfloat xmag, ymag = 0;\nfloat newXmag, newYmag = 0;\nvoid setup()\n{\n  size(640, 360, P3D);\n  noStroke();\n  colorMode(RGB, 1);\n}\nvoid draw()\n{\n  background(0.5);\n  pushMatrix();\n  translate(width\/2, height\/2, -30);\n  newXmag = mouseX\/float(width) * TWO_PI;\n  newYmag = mouseY\/float(height) * TWO_PI;\n  float diff = xmag-newXmag;\n  if (abs(diff) &gt;  0.01) { xmag -= diff\/4.0; }\n  diff = ymag-newYmag;\n  if (abs(diff) &gt;  0.01) { ymag -= diff\/4.0; }\n  rotateX(-ymag);\n  rotateY(-xmag);\n  scale(90);\n  beginShape(QUADS);\n  fill(0, 1, 1); vertex(-1,  1,  1);\n  fill(1, 1, 1); vertex( 1,  1,  1);\n  fill(1, 0, 1); vertex( 1, -1,  1);\n  fill(0, 0, 1); vertex(-1, -1,  1);\n  fill(1, 1, 1); vertex( 1,  1,  1);\n  fill(1, 1, 0); vertex( 1,  1, -1);\n  fill(1, 0, 0); vertex( 1, -1, -1);\n  fill(1, 0, 1); vertex( 1, -1,  1);\n  fill(1, 1, 0); vertex( 1,  1, -1);\n  fill(0, 1, 0); vertex(-1,  1, -1);\n  fill(0, 0, 0); vertex(-1, -1, -1);\n  fill(1, 0, 0); vertex( 1, -1, -1);\n  fill(0, 1, 0); vertex(-1,  1, -1);\n  fill(0, 1, 1); vertex(-1,  1,  1);\n  fill(0, 0, 1); vertex(-1, -1,  1);\n  fill(0, 0, 0); vertex(-1, -1, -1);\n  fill(0, 1, 0); vertex(-1,  1, -1);\n  fill(1, 1, 0); vertex( 1,  1, -1);\n  fill(1, 1, 1); vertex( 1,  1,  1);\n  fill(0, 1, 1); vertex(-1,  1,  1);\n  fill(0, 0, 0); vertex(-1, -1, -1);\n  fill(1, 0, 0); vertex( 1, -1, -1);\n  fill(1, 0, 1); vertex( 1, -1,  1);\n  fill(0, 0, 1); vertex(-1, -1,  1);\n  endShape();\n  popMatrix();\n}<\/pre>\n<p>quelle [Wikipedia]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Processing ist eine auf die Einsatzbereiche Grafik, Simulation und Animation spezialisierte objektorientierte, stark typisierte Programmiersprache mit zugeh\u00f6riger integrierter<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,3,9],"tags":[1618,2121],"class_list":["post-10751","post","type-post","status-publish","format-standard","hentry","category-allgemein","category-computer-und-technik","category-linux-computer-und-technik","tag-linux","tag-processing"],"_links":{"self":[{"href":"https:\/\/funrecycler.com\/index.php\/wp-json\/wp\/v2\/posts\/10751","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/funrecycler.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/funrecycler.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/funrecycler.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/funrecycler.com\/index.php\/wp-json\/wp\/v2\/comments?post=10751"}],"version-history":[{"count":0,"href":"https:\/\/funrecycler.com\/index.php\/wp-json\/wp\/v2\/posts\/10751\/revisions"}],"wp:attachment":[{"href":"https:\/\/funrecycler.com\/index.php\/wp-json\/wp\/v2\/media?parent=10751"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/funrecycler.com\/index.php\/wp-json\/wp\/v2\/categories?post=10751"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/funrecycler.com\/index.php\/wp-json\/wp\/v2\/tags?post=10751"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}