The code in the file might look intimidating if you’re not familiar with Processing, but there are only a few parts you need to change to design your lamp. All of the code that you write will be contained within the setup() function. For now, open the circle example by going into the circle folder and double clicking on the spiral.pde file. If you want to generate your own file, you can create a new processing sketch and copy the code from one of the examples into it, to modify. The code contained in each example is identical with the exception the part that controls of the type of decorative pattern it will generate. They are located in the examples folder within the codeableObjects directory. The library includes several examples to demonstrate how to use the library in processing. Section 2: Design Step 1: Design the form of your lamp Note: The process detailed above is the same process for installing any other processing library. You won’t need to import it now, but you can if you like. If you placed the library in the correct directory, then codeableObjects should show up among your installed libraries in the menu. Then, open a new sketch by selecting File->New and check to see if the library was found by going to Sketch -> Import Library. Once you’ve done so, quit and restart processing if it’s already open, in order to allow it to recognize the new library. If a directory named libraries does not exist, you will need to create one before placing the Codeable Objects library in it. Unzip the codeableObjects.zip file and place the resulting directory here. In this directory, there should exist a folder called “libraries”. It should automatically have been created when you installed Processing. You will need to place the Codeable Objects library in this directory. On a PC, it’s probably: c:/My Documents/Processing/. On a mac, this will usually be: /Users/Username/Documents/Processing This is the default directory of all of your Processing sketches. Codeable Objects is one such library that we created to facilitate this project. Processing’s functionality can be augmented by user created libraries. Step 3: Download the Codeable Objects library For that, check out for some great tutorials. Note: This tutorial covers the basic elements of Processing, but should not be considered a lesson in Processing in general. Follow the instructions on installation, based on your operating system. You will need to download the Processing IDE (which is free), here: įor tips on how to install processing after you’ve downloaded it, check out this page. If you’ve never used processing before, it’s extremely useful for a range of projects. Processing is a popular java based programing environment that allows people to learn and experiment with programing in a simple and straightforward context. We recommend getting a low wattage bulb, (around 25 watts), or a compact fluorescent. We recommend using one that has a socket diameter of around 20-40 mm and accepts a candelabra style bulb. Choose any color you like for both papers. (You can use normal tissue paper as well, but it might result in a less durable finished project.) You can purchase both of these papers at most art and craft supply stores.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |