Code P_1_2_2_01

P_1_2_2_01
Basic principles –  P.1 Colour –  P.1.2 Colour palette –  P.1.2.2 Colour palette from pictures –  P_1_2_2_01
Download Code Processing 1.x

Pages


  • 190 - 191

  • 192 - 193

Comments

  • 2010-01-03 @ 8:51 pm   |  Comment by Marc

    Hello! How do I use this script for images that are rectangular rather than square? Solely setting up the size doesn't work... The script renders a square area, leaving everything below in a gray color.

    Could someone give me a hint?

  • 2010-01-04 @ 5:27 pm   |  Comment by Hartmut Bohnacker

    Hi Marc, if you want to work with rectangular images you'll need two variables tileCountX and tileCountY instead of tileCount. If you still want that the "pixels" are square, you have to calculate the variable rectSize first. Line 64 and following would look something like this:

    1. int rectSize = mouseX+5;
    2. int tileCountX = width / rectSize;
    3. int tileCountY = height / rectSize;

    Is this hint enough? :-)

     

  • 2010-01-04 @ 8:34 pm   |  Comment by Marc

    Hartmut, thank you very much! Indeed, your hint was really helpful! :-)

    Best regards, Marc.

  • 2010-09-01 @ 6:48 pm   |  Comment by edi

    Hi, I tried to run the code, but It asks for a missing libary. Where can I find 'generativedesign' package and where would I have to place it? Just within the folder?

  • 2010-09-02 @ 4:12 pm   |  Comment by Hartmut Bohnacker

    Hi, you'll find the generativedesign library at the bottom of our codes page. And there is also a link to a tutorial, how to install such a library. This should help you getting started. One hint (just because it seems to be a common mistake): do not rename any folder that's called "library" into "libraries" or vice versa!

  • 2010-10-24 @ 11:28 pm   |  Comment by Daniel-S-P

    Hi,

    wäre es möglich in die lib auch das Speichern von Gimp-Paletten zu integrieren? Die können zB auch in Inkscape benutzt werden.

     

    Und, weils der erste post hier ist... Danke für euer geiles Buch!

  • 2010-10-26 @ 5:44 pm   |  Comment by Benedikt Groß

    Hallo Daniel,

     

    leider kenne ich das Gimp-Paletten Format nicht. Hast mehr Informationen dazu? Dann könnte ich bestimmt schnell abschätzen wieviel Aufwand eine Umsetzung wäre.

     

    Benedikt

  • 2010-10-30 @ 11:10 am   |  Comment by Daniel-S-P

    Auf jeden Fall sind das Text-Dateien

    http://pastebin.com/0FxpDxHa

  • 2010-11-07 @ 5:02 pm   |  Comment by Benedikt Groß

    @daniel
    hmm ... sieht eigentlich sehr simpel aus. magst du es mal probieren (gerne mit hilfe bei problemen von mir)? oder bist du noch so neu, dass du nicht weißt wie du anfangen müsstest? am besten du antwortest mir per email: benedikt.gross@ ... diese domain ...

  • 2011-08-12 @ 2:01 pm   |  Comment by richard
    tolles buch. gratulation. ok, farbpalette ist generierbar und wird als file gesichert. umgekehrter weg, farbpalette importieren und farben in processing verwenden, das geht nicht? oder hab ich was uebersehen? das waere naemlich klasse, zum generieren von bildern ist eine harmonische farbpalette gold wert ;) siehe kuler.adobe.com

Leave a Comment

   (required)

   (required)

  

Please enable JavaScript to post a comment.

(.zip, max. 1MB)  

   (required)