
In a previous post I explained a simple algorithm for generating textures. Below are some more examples of the kinds of textures that the algorithm can generate, as well as how the different parameters influence the result. You can also download the code.
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
The Effect of the Blend Factor
![]() |
![]() |
|
| t = 0 | t = 0.1 | t = 0.2 |
![]() |
![]() |
![]() |
| t = 0.3 | t = 0.4 | t = 0.5 |
![]() |
![]() |
![]() |
| t = 0.6 | t = 0.7 | t = 0.8 |
![]() |
![]() |
|
| t = 0.9 | t = 1 |
Effect of the Matrix
Angle
![]() |
![]() |
![]() |
| 1 0 0 0 0 0 0 0 0 |
1 0 0 0 0 0 0 1 0 |
0 1 0 0 0 0 0 0 0 |
Spread
![]() |
![]() |
![]() |
| 001 010 100 |
011 010 100 |
011 011 100 |
Effect of Iteration Count
![]() |
![]() |
![]() |
| 0 | 10 | 20 |
![]() |
![]() |
![]() |
| 30 | 40 | 50 |
Download
The code is included with Python Image Code (see random_image.py and random_image_demo.py).
Related posts:
- A Simple Procedural Texture Algorithm I am playing around with generating textures and decided to...
- A simple texture algorithm – faster code and more results Faster Code A while back I wrote about a simple...
- Poisson Disk Sampling Example Code I decided to put the Poisson disk sampling code here...
Tags: procedural texture, Python, random

































1 comment
Comments feed for this article
Trackback link: http://code-spot.co.za/2008/11/14/a-simple-procedural-texture-algorithm-more-results-and-code/trackback/