sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Computer paintings

    Scheduled Pinned Locked Moved Hardware, Software & Gadgets
    25 Posts 2 Posters 2.0k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • brookefoxB Offline
      brookefox
      last edited by

      Pilou.... Like this?

      1. download 'Processing' http://processing.org/download/
      2. install it.
      3. a data folder will thus be created. Put your image in it and copy and paste the code also in the data folder, in a file called what? or what?
      4. run processing; load your image

      ~ Brooke

      1 Reply Last reply Reply Quote 0
      • brookefoxB Offline
        brookefox
        last edited by

        Strike 1: "unexpected token:513"


        processing-1-noted.JPG

        ~ Brooke

        1 Reply Last reply Reply Quote 0
        • pilouP Offline
          pilou
          last edited by

          If your orginal image has no background area transparent that will works not!

          Try with this one I lauch it now so I am sure that it's work πŸ˜„
          (click on Select all for select all the code)

          size(1024,512);
          
          PImage tabou = loadImage("your_image.png");
           int t = 8;
          for (int k = 8; k < 513; k = k + t) {
          
          for (int y = 0; y < 513; y = y + k) {
            for (int x = 0; x < 1023; x = x + k*2) {
             image(tabou,x,y,k*2,k) ;
             }
          }
          filter(INVERT);
          t=t+4;
          }
          image(tabou,0,0);
          
          

          procc.jpg

          [attachment=0:tgyb3p08]<!-- ia0 -->taboure512.png<!-- ia0 -->[/attachment:tgyb3p08]

          Frenchy Pilou
          Is beautiful that please without concept!
          My Little site :)

          1 Reply Last reply Reply Quote 0
          • pilouP Offline
            pilou
            last edited by

            Must have cheekerboard on background as transparent aera!

            Hope this works!
            See you soon in four days πŸ˜‰

            dd.jpg

            Frenchy Pilou
            Is beautiful that please without concept!
            My Little site :)

            1 Reply Last reply Reply Quote 0
            • brookefoxB Offline
              brookefox
              last edited by

              Ah..., merci. You are right that my image had no transparent areas though it was a png, though I don't know how you could tell.

              Hopefully I'll have something to show.

              Bon voyage.

              ~ Brooke

              1 Reply Last reply Reply Quote 0
              • brookefoxB Offline
                brookefox
                last edited by

                Still not working though with another with transparent areas. Same error. Please attach your image file so I can try it. Perhaps the png conversion by FastStone is faulty; I'll try another conversion program.

                Didn't work with Irfan as the converter, with three different settings.. The checkerboard is how your prog is configured to display transparency; it can be balck or white or some other, I believe. I'll crank up PS for an other go.

                ~ Brooke

                1 Reply Last reply Reply Quote 0
                • brookefoxB Offline
                  brookefox
                  last edited by

                  The voting is over, Pilou. No luck here.


                  processing-2-noted.JPG

                  ~ Brooke

                  1 Reply Last reply Reply Quote 0
                  • pilouP Offline
                    pilou
                    last edited by

                    Here an original image png (zipped) so unzipp it before any process!

                    Works for me πŸ˜„

                    If that yet don't work for you with this file, we must find another source of problem! πŸ€“


                    taboure512.zip

                    Frenchy Pilou
                    Is beautiful that please without concept!
                    My Little site :)

                    1 Reply Last reply Reply Quote 0
                    • brookefoxB Offline
                      brookefox
                      last edited by

                      Alas, professor...


                      processing-3-noted.JPG

                      ~ Brooke

                      1 Reply Last reply Reply Quote 0
                      • pilouP Offline
                        pilou
                        last edited by

                        Seems very mysterious
                        We have the same version of Processing 1.5.1

                        Can you show me the arborescence of folders / files ( I can't see all them on the image above)

                        Normally you must have just the file "prog" and the folder "data" on the same level
                        seems they are not on the same "level" from what I can see
                        Maybe πŸ˜„

                        Frenchy Pilou
                        Is beautiful that please without concept!
                        My Little site :)

                        1 Reply Last reply Reply Quote 0
                        • brookefoxB Offline
                          brookefox
                          last edited by

                          Some little thing I have wrong... Or maybe a big thing.

                          I tried it with data next to .exe and with data in taboure512 folder. Same result.

                          processing-4.JPG

                          processing-5.JPG

                          ~ Brooke

                          1 Reply Last reply Reply Quote 0
                          • pilouP Offline
                            pilou
                            last edited by

                            Have you this arborescence of File / Folder ?
                            You must have the red rectangle with this little arborescence
                            anywhere : it's an entity ! Can works anywhere !

                            Here it's mixed with the arborescence of Processing : can be possible but not very clear πŸ˜„

                            If you have not maybe re-read my first post for create the first arborescence!

                            If you have yet that is some ennuyous because I don't see anything else! 😳

                            proc02.jpg

                            Frenchy Pilou
                            Is beautiful that please without concept!
                            My Little site :)

                            1 Reply Last reply Reply Quote 0
                            • brookefoxB Offline
                              brookefox
                              last edited by

                              I will reread your first post. Other than that, I am not sure what you are saying. The pic you show is my pic, so that yes is my setup. 'Arborescence' I assume means tree (directory, folder) structure.

                              My OS is Vista 64.

                              ~ Brooke

                              1 Reply Last reply Reply Quote 0
                              • pilouP Offline
                                pilou
                                last edited by

                                @unknownuser said:

                                'Arborescence' I assume means tree (directory, folder) structure.

                                Yes πŸ˜‰

                                @unknownuser said:

                                The pic you show is my pic

                                No !
                                it's that you must see πŸ˜‰ (I have made a photomontage)
                                In yours above I don't see the black icon "taboure512.pde" under the "data"

                                Frenchy Pilou
                                Is beautiful that please without concept!
                                My Little site :)

                                1 Reply Last reply Reply Quote 0
                                • pilouP Offline
                                  pilou
                                  last edited by

                                  If I good remember πŸ˜‰

                                  the first time launch a Processing session
                                  Copy inside the lines above

                                  Save it in a folder anywhere of your choice say "my Processing test" (name of the folder)
                                  with the name that you want say "test" (name of your prog)

                                  Surrely a message eroor because ther is not yet an image inside the data folder created

                                  QUIT
                                  You must obtain a file "test.pde" and a folder "data" both inside "my Processing test" folder
                                  (".pde" is the extension name of a Processing program normally it's given automatically)
                                  (maybe extension 's file ".pde" is not visible following your system regulates )

                                  You must have the image follow

                                  proc.jpg

                                  You can now put inside your image inside the "data" folder created
                                  with the same name than inside the prog : say "sketch.png"

                                  (use always PNG format : support of the transparent background)

                                  Inside the prog the "" must be writed around the sketchUp's image!

                                  PImage pilou = loadImage("sketch.png");
                                  

                                  Relaunch it by double click on the file name "test.pde" inside your folder

                                  After 3 seconds (more or less following the age of your computer: mine is ten years! )
                                  An artistic image must be created on your screen πŸ˜„

                                  Grab it and past it inside your favorite 2D prog

                                  You can modify some numeric parameters inside the prog

                                  You can change of course the name of the image inside the prog
                                  if you input an other image with another name inside the data folder!
                                  (don't change the "pilou" words except you well understand the syntax)

                                  If you don't want the "filter Invert" on your image
                                  Jut put // before

                                  //filter(INVERT); 
                                  

                                  The image must have always 1024*512 inside the data folder!

                                  Hope this help you πŸ˜‰

                                  Frenchy Pilou
                                  Is beautiful that please without concept!
                                  My Little site :)

                                  1 Reply Last reply Reply Quote 0
                                  • pilouP Offline
                                    pilou
                                    last edited by

                                    And sorry it's the second post that you must maybe re-read πŸ˜‰

                                    Frenchy Pilou
                                    Is beautiful that please without concept!
                                    My Little site :)

                                    1 Reply Last reply Reply Quote 0
                                    • brookefoxB Offline
                                      brookefox
                                      last edited by

                                      OK. I did not show what was beside data, only what was in data. It is beside as you advise.


                                      processing-6.JPG

                                      ~ Brooke

                                      1 Reply Last reply Reply Quote 0
                                      • pilouP Offline
                                        pilou
                                        last edited by

                                        Hum hum
                                        Last chance
                                        Copy the folder taboure512 on the Desk and run it from the Desk but I doubt

                                        Have you load and run some processing examples ?
                                        does they work ?

                                        Frenchy Pilou
                                        Is beautiful that please without concept!
                                        My Little site :)

                                        1 Reply Last reply Reply Quote 0
                                        • pilouP Offline
                                          pilou
                                          last edited by

                                          Try to launch my own one!


                                          sketch_jun07a.zip

                                          Frenchy Pilou
                                          Is beautiful that please without concept!
                                          My Little site :)

                                          1 Reply Last reply Reply Quote 0
                                          • pilouP Offline
                                            pilou
                                            last edited by

                                            I use it all days πŸ˜‰
                                            Model by m-dynamics
                                            microp.jpg

                                            Frenchy Pilou
                                            Is beautiful that please without concept!
                                            My Little site :)

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 2 / 2
                                            • First post
                                              Last post
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement