View Single Post
Old 03-5-2013, 10:24 PM   #332
Arkuski
FFR Veteran
FFR Veteran
 
Join Date: Jul 2006
Location: Rhode Island
Age: 31
Posts: 1,118
Send a message via AIM to Arkuski Send a message via Skype™ to Arkuski
Default Re: Show your sketching!

Not sure if this belongs here but I figured someone might appreciate it.

So I wrote a program in Python. It first randomly defines three colors and creates a gradient one pixel thick on the top and the left. Then, for each interior pixel, there is:
- a 20% chance it is slightly different from the upper left bordering pixel
- a 30% chance it is slightly different from the upper bordering pixel
- a 30% chance it is slightly different from the left bordering pixel
- a 15% chance it is slightly different from these three bordering pixels
- a 5% chance it is slightly different from one of the two colors that are not the most similar to the average of the three bordering pixels

The result is an array of these nice downwards diagonal patterns. I made six small ones quickly:

__________________

Quote:
Originally Posted by Wayward Vagabond View Post
i can appreciate a good looking woman when i see one and this one just happened to be my mom

Last edited by bmah; 03-6-2013 at 02:20 AM.. Reason: added spoiler so you won't stretch the page
Arkuski is offline   Reply With Quote