RetroBSD

2.11BSD operating system for microcontrollers
It is currently Tue Jan 16, 2018 7:23 pm

All times are UTC




Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Fri Apr 25, 2014 7:54 am 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2400
Location: Rapa Nui
I've added the Mandelbrot sources to /src/cmd/double-test/mandelbrot at https://github.com/igor-m/retrobsd-1.

The mandelbrot.c is a torture test you run with 7 parameters. As a bonus it prints out the picture in .bmp format, in retrobsd.org colour scheme :)

You may try to create a picture of Seahorse Valley region with:
Code:
# ./mandelbrot 100 100 1024  1779.803945297549 -0.7431533999637661 -0.1394057861346605 seahorse.bmp


PS: if commenting out all printfs in mandelbrot.c and bmp.h you can create even a 150x150 large picture:
Code:
# time ./mandelbrot 150 150 1024  1779.803945297549 -0.7431533999637661 -0.1394057861346605 seahorse.bmp
       52.7 real        52.6 user         0.0 sys
# ls -l
total 85
-rwxr-xr-x  1 root        16848 Apr 25  2014 mandelbrot
drwxr-xr-x  2 root         1024 Apr  7 05:44 lost+found
-rw-r-----  1 root        67854 Apr  7 06:39 seahorse.bmp
# time ./mandelbrot 150 150 256  1779.803945297549 -0.7431533999637661 -0.1394057861346605 seahorse1.bmp
       34.2 real        34.1 user         0.0 sys
#


Attachments:
seahorse1.jpg
seahorse1.jpg [ 24.67 KiB | Viewed 3290 times ]
seahorse.jpg
seahorse.jpg [ 22.23 KiB | Viewed 3303 times ]

_________________
Pukao Hats Cleaning Services Ltd.
Top
 Profile  
 
PostPosted: Fri Apr 25, 2014 12:58 pm 
Committer
User avatar

Joined: Thu Oct 11, 2012 8:45 am
Posts: 1801
Location: Room 217, Floor 8, Arm 8, Wheel S7, Mars Base Alpha 3
Fancy creating a pull request to merge these nice toys with the DP branch of master?

_________________
Why not visit my shop? http://majenko.co.uk/catalog
Universal IDE: http://uecide.org
"I was trying to find out if it was possible to only eat one Jaffa Cake. I had to abandon the experiment because I ran out of Jaffa Cakes".


Top
 Profile  
 
PostPosted: Fri Apr 25, 2014 1:05 pm 
Contributor
User avatar

Joined: Thu Nov 08, 2012 7:04 am
Posts: 2400
Location: Rapa Nui
Wait a minute, I will do but not today..

_________________
Pukao Hats Cleaning Services Ltd.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
cron




Powered by phpBB® Forum Software © phpBB Group

BSD Daemon used with permission