From Wikipedia, the free encyclopedia
Original file (2,000 × 1,000 pixels, file size: 2.46 MB, MIME type: image/png )
Summary
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:
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. https://creativecommons.org/licenses/by-sa/4.0 CC BY-SA 4.0 Creative Commons Attribution-Share Alike 4.0 true true
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
↑ Smily Kaleidoscope : great image by Duncan Champney
↑ c program by Claude Heiland-Allen
↑ Claude Heiland-Allen - blog
↑ book program
↑ Claude Heiland-Allen
English Add a one-line explanation of what this file represents
File history
Click on a date/time to view the file as it appeared at that time.
Date/Time Thumbnail Dimensions User Comment
current 20:57, 3 December 2014 2,000 × 1,000 (2.46 MB) Soul windsurfer User created page with UploadWizard
File usage
The following page uses this file:
Global file usage
The following other wikis use this file:
Usage on el.wikipedia.org
Usage on en.wikibooks.org