Preface
The generated art, the art on the fingertip, is played by a rhythmic knock on the keyboard, and a magnificent work of art jumps to the screen. Such a painting contains endless creativity, in my opinion, is there anything more fascinating than modern computer technology and traditional painting?
The process of Code-based artistic creation is similar to that of painting on paper. When an idea suddenly flashes in my mind, for example, a contour pattern in a geographical publication or a functional image in a science magazine, I will immediately draft it on paper, record several important descriptive words and try to keep your thoughts as much as possible. Then, I will draw images by programming (usually through Python and nodebox. After continuous refinement, we adjusted the shape, color, transparency, and other attributes step by step, and finally got my work on the screen. All of this is done by modifying the relevant drawing package or function parameters. For example, in the following py code segment, I define a palette for drawing a waveform chart.
Then, call a waveform plotting function to draw a specific image:
Random Parameters
Although in most cases, I will set relevant parameters to static variables, if Random Dynamic parameters are used properly in some scenarios, unexpected results may be returned. Sometimes, before seeing the final work, I cannot determine what it will look like. In addition to this unpredictable wonder, it is more precious because random is not reproducible and unique.
Code is an artist
Computer Graphics is based on certain mathematical logic. In the process of code creation, I can understand that under normal circumstances, the beauty of the structure in mathematics, the beauty of abstraction, and the beauty of composition. For example, the following tsunami wave works are all drawn using the same function. Here we use a nodebox plotting class-Cornu curve (angle and curve ). Through the combination of different colors, transparency, layers and other parameters, such a cute work will come out.
Unlimited graphic combination
Please take a look at the following:
How is it? Not bad. If you want me to paint it with a paint brush, I really don't know how to draw it to the Year of the Monkey. This is another important use of code creation-graphic combination. You only need to execute multiple cycles or recursion, and hand over millions of lines of different colors, transparency, and textures to a computer for drawing. Such complex works can be quickly completed between the fingers. Remember, please give complicated things to the computer.
The core code is that a paint brush is defined and a painting process is described:
Practical Creative Design
In addition to the above seemingly unconstrained works, in real life, such as clothing, sculpture, household products and other design, code creation can also show their talents. For example, the logo of our IDEO company is as follows:
For specific code, see here:
Conclusion
Computer has brought countless changes to our lives. Now, we may wish to combine it with art to add vitality and color to our lives from the perspective of machines, open up an Infinite New Realm of artistic creation.
Note: Click here to download the complete code for all examples in this article. You can run it in an environment where nodebox is installed.
The world's first developer service storeYou are taken from the Internet. The original Article is from labs.ideo.com.
Art at your fingertips-how to use code to create unlimited creativity