Click here to Skip to main content
15,919,500 members
Articles / Desktop Programming / WPF
Tip/Trick

Sunflower Fractal - Practice

Rate me:
Please Sign up or sign in to vote.
5.00/5 (13 votes)
22 Nov 2013CPOL1 min read 38.5K   2.2K   14   6
Sunflower fractal, so that you can play and create a wonderful image

Image 1

Introduction

I love fractals and kaleidoscopic images. After reading the article Fractals in theory and practice, I decided to add some additional properties to the sunflower fractal, so that you can play and create a wonderful image. The code for generating Fractals is taken from Fractals in theory and practice.

Using the Application

I added a few controls to change the properties of a sunflower: background color, the color of a sunflower seed, color of border of sunflower seed, seed size and thickness of the contour of a sunflower seed. In addition, button “Save” to save created image as a PNG image with a transparent background. You can set the properties of the seeds and run generationImage 2.

Interesting Features

During the generation of the Sunflower, you can change seeds sizes, the border thickness and color. Change the color of the seed during the generation (before generating press “Seed color” and change the color using slider Image 3 ) allows you to create wonderful images.

Image 4

Image 5

Image 6

There is another possibility for generation of sunflower.

Ctrl + Image 7 - with a random choice of size and color of seeds-. During the generation, you can change the border thickness and border color of a seed.

Image 8

Shift + Image 9 - with a random choice the color of seeds. During the generation, you can change sizes and the border thickness and border color of a seed.

Image 10

Alt + Image 11 - seeds color in the same spiral does not change. During the generation, you can change sizes and the border thickness and border color of a seed.

Image 12

History

  • 22 Nov 2013 - Added two modes of generation of sun flower. 
  • 7 Nov 2013 - Initial release. 

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Chief Technology Officer Moscow Local Telephone Network (OAO MGTS)
Russian Federation Russian Federation
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
Questionnice update Pin
Andy Bantly22-Nov-13 1:35
Andy Bantly22-Nov-13 1:35 
AnswerRe: nice update Pin
dyma22-Nov-13 2:03
dyma22-Nov-13 2:03 
GeneralMy vote of 5 Pin
JOE Heart Under Blade15-Nov-13 15:01
JOE Heart Under Blade15-Nov-13 15:01 
QuestionColors Pin
Andy Bantly11-Nov-13 9:49
Andy Bantly11-Nov-13 9:49 
AnswerRe: Colors Pin
dyma11-Nov-13 22:17
dyma11-Nov-13 22:17 
QuestionImpressive Pin
Rei Roldan7-Nov-13 4:23
Rei Roldan7-Nov-13 4:23 
That is very nice! Excellent work.

<3

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.