File:Smiley mini Mandelbrot set with external rays.png

From testwiki
Jump to navigation Jump to search
    Original file (2,000 × 1,000 pixels, file size: 2.46 MB, MIME type: image/png)

    This file is from Wikimedia Commons and may be used by other projects. The description on its file description page there is shown below.

    Summary

    Description
    English: Part of Mandelbrot set : Smily Kaleidoscope. This is zoom into this great image by Duncan Champney [1]
    Date
    Source Made with c program[2] by Claude Heiland-Allen[3]
    Author Adam majewski

    Summary

    size 2000 1000
    view 54 -1.74920463345912691e+00 -2.8684660237361114e-04 2.158333333333333e-12
    ray_in 2000 .(10010010010010010010010010010010010010010010001101101101101101101101101101101101101101101101101101101101101101101101101101101101101101)
    text 63 -1.7492046334590113301e+00 -2.8684660234660531403e-04 134
    text 62 -1.7492046334594190961e+00 -2.8684660260955536656e-04 268
    ray_in 2000 .(10010010010010010010010010010010010010010001110010010010010010010010010010010010010010010010010010010010010010010010010010010010010010)
    

    Licensing

    I, the copyright holder of this work, hereby publish it under the following license:
    w:en:Creative Commons
    attribution share alike
    This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
    You are free:
    • to share – to copy, distribute and transmit the work
    • to remix – to adapt the work
    Under the following conditions:
    • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
    • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.

    Bash src code

    This is bash file for book program[4] by Claude Heiland-Allen[5]

    #!/bin/bash
    # 
    re="-1.74920463345912691e+00 "
    im="-2.8684660237361114e-04"
    r="2.158333333333333e-12"
    view="$re $im $r"
    # escape radius
    er="512"
    # filename stem
    stem="smiley"
    # image size in pixels
    w="2000"
    h="1000"
    # maximum iterations
    n="65536"
    # interior rendering
    i="1"
    # ray depth
    d="8192"
    # render background image
    ./render $view "$er" "$stem" "$w" "$h" "$n" "$i" && ./colour "$stem" > "$stem.ppm"
    # compute rays in parallel
    ./ray_in ".(10010010010010010010010010010010010010010010001101101101101101101101101101101101101101101101101101101101101101101101101101101101101101)" $d > "$stem-ray1.txt" &
    ./ray_in ".(10010010010010010010010010010010010010010001110010010010010010010010010010010010010010010010010010010010010010010010010010010010010010)" $d > "$stem-ray2.txt" &
    wait
    # annotate background with rays and labels
    ./annotate "$stem.ppm" "$stem.png" <<EOF
    rgba 1 1 1 1
    line cat "$stem-ray1.txt" | ./rescale 100 53 $view 0
    line cat "$stem-ray2.txt" | ./rescale 100 53 $view 0
    text `echo '-1.7492046334590113301e+00 -2.8684660234660531403e-04 ' | ./rescale 100 53 $view 0` 134
    text `echo '-1.7492046334594190961e+00 -2.8684660260955536656e-04'  | ./rescale 100 53 $view 0` 268
    EOF
    

    Text output

    time ./examples/smily-kaleidoscope.sh
    ./render using MPFR<55>
    rgba 1.000000 1.000000 1.000000 1.000000
    line cat "smiley-ray1.txt" | ./rescale 100 53 -1.74920463345912691e+00  -2.8684660237361114e-04 2.158333333333333e-12 0
    line cat "smiley-ray2.txt" | ./rescale 100 53 -1.74920463345912691e+00  -2.8684660237361114e-04 2.158333333333333e-12 0
    text 0.053551 0.012512 134
    text -0.135376 -0.109318 268
    
    real	11m3.402s
    user	50m8.773s
    sys	0m2.087s
    

    References

    1. ↑ Smily Kaleidoscope : great image by Duncan Champney
    2. ↑ c program by Claude Heiland-Allen
    3. ↑ Claude Heiland-Allen - blog
    4. ↑ book program
    5. ↑ Claude Heiland-Allen

    Captions

    Add a one-line explanation of what this file represents

    Items portrayed in this file

    depicts

    3 December 2014

    2,580,893 byte

    1,000 pixel

    2,000 pixel

    image/png

    89c7cb11767037206d1fb588e8cd38aca3a7c76f

    File history

    Click on a date/time to view the file as it appeared at that time.

    Date/TimeThumbnailDimensionsUserComment
    current21:57, 3 December 2014Thumbnail for version as of 21:57, 3 December 20142,000 × 1,000 (2.46 MB)wikimediacommons>Soul windsurferUser created page with UploadWizard

    There are no pages that use this file.