File:Airy-pattern.svg
维基共享资源,媒体文件资料库
跳转到导航
跳转到搜索
此SVG文件的PNG预览的大小:283 × 210像素。 其他分辨率:320 × 237像素 | 640 × 475像素 | 1,024 × 760像素 | 1,280 × 950像素 | 2,560 × 1,900像素。
原始文件 (SVG文件,尺寸为283 × 210像素,文件大小:6 KB)
文件信息
结构化数据
说明
摘要[编辑]
描述Airy-pattern.svg |
English: Vectorized version of :Image:Airy-pattern.png |
日期 | |
来源 | Created in Adobe Illustrator and then edited to incorporate gradient stops calculated in Chipmunk Basic (see below for source code). |
作者 | 英语维基百科的Sakurambo 桜ん坊 |
Source code[编辑]
' Positions of 1st 10 zeros in bj1(x)
data 3.83170597
data 7.01558668
data 10.17346814
data 13.32369194
data 16.47063005
data 19.61585851
data 22.76008438
data 25.90367209
data 29.04682854
data 32.18967991
'
dim zero(5)
for j=1 to 5
read zero(j)
next j
'
open "radial_grad.txt" for output as #1
max_x = zero(5)
np = 10
for j=0 to 4
for p=0 to np-1
x = zero(j)*(1-p/np) + zero(j+1)*p/np
if (x=0) then airy=1 : else airy = (2 * bj1(x) / x)^2
airy = airy^0.4 : ' Gamma function (increases brightness of low values)
x0 = x/max_x
?#1,"<stop offset=";chr$(34);str$(x0);chr$(34);
?#1," style=";chr$(34);"stop-color:#";
h$ = hex$(floor(255*abs(airy)+0.5),2)
?#1,h$;h$;h$;chr$(34);"/>"
next p
next j
?#1,"<stop offset=";chr$(34);"1";chr$(34);" style=";
?#1,chr$(34);"stop-color:#000000";chr$(34);"/>"
close#1
end
'
' BesselJ1 function based on Javascript source code at
' http://www.mhtl.uwaterloo.ca/old/courses/me3532/js/bessel.html
sub bj1(x)
ax = abs(x)
if (ax < 8.0) then
y=x*x
tmp = (-2972611.439+y*(15704.48260+y*(-30.16036606)))
ans1 = x*(72362614232.0+y*(-7895059235.0+y*(242396853.1+y*tmp)))
ans2 = 144725228442.0+y*(2300535178.0+y*(18583304.74+y*(99447.43394+y*(376.9991397+y*1.0))))
ans = ans1/ans2
else
z=8.0/ax
y=z*z
xx=ax-2.356194491
ans1=1.0+y*(0.183105e-2+y*(-0.3516396496e-4+y*(0.2457520174e-5+y*(-0.240337019e-6))))
ans2=0.04687499995+y*(-0.2002690873e-3+y*(0.8449199096e-5+y*(-0.88228987e-6+y*0.105787412e-6)))
ans=sqrt(0.636619772/ax)*(cos(xx)*ans1-z*sin(xx)*ans2)
if (x < 0.0) then ans = -ans
endif
bj1 = ans
end sub
Linear gradient stops were generated with this program
open "linear_grad.txt" for output as #1
for x = 0 to 20
xx = ((20-x)/20)^2 : ' Create more stop colors in low intensity region
y = (xx)^0.4 : ' Gamma function
c$ = hex$(floor(255*y+0.5),2)
c$ = c$+c$+c$
print #1,"<stop offset=";chr$(34);str$(1-xx);chr$(34);
print #1," style=";chr$(34);" stop-color:#";c$;chr$(34);"/>"
next x
close #1
end
许可协议[编辑]
Public domainPublic domainfalsefalse |
本作品已被作者英语维基百科的Sakurambo释出到公有领域。这适用于全世界。 在一些国家这可能不合法;如果是这样的话,那么: Sakurambo无条件地授予任何人以任何目的使用本作品的权利,除非这些条件是法律规定所必需的。Public domainPublic domainfalsefalse |
原始上传日志[编辑]
原始描述頁面位於這裡。下列使用者名稱均來自en.wikipedia。
- 2008-07-09 14:17 Sakurambo 283×210× (5677 bytes) xml errors fixed
- 2008-07-09 14:15 Sakurambo 283×210× (5698 bytes) better version (gradients calculated in software)
- 2008-07-08 10:55 Sakurambo 283×210× (3757 bytes) fixed gamma snafu
- 2008-07-08 10:42 Sakurambo 283×210× (3756 bytes) {{Information |Description=vectorized version of [[:Image:Airy-pattern.png]] |Source=I created this work entirely by myself. |Date=2007-07-08 |Author=~~~ |other_versions=[[Image:Airy-pattern.png|100px]] }}
文件历史
点击某个日期/时间查看对应时刻的文件。
日期/时间 | 缩略图 | 大小 | 用户 | 备注 | |
---|---|---|---|---|---|
当前 | 2012年6月11日 (一) 03:38 | 283 × 210(6 KB) | OgreBot(留言 | 贡献) | (BOT): Reverting to most recent version before archival | |
2012年6月11日 (一) 03:38 | 283 × 210(6 KB) | OgreBot(留言 | 贡献) | (BOT): Uploading old version of file from en.wikipedia; originally uploaded on 2008-07-09 14:15:56 by Sakurambo | ||
2012年6月11日 (一) 03:38 | 283 × 210(4 KB) | OgreBot(留言 | 贡献) | (BOT): Uploading old version of file from en.wikipedia; originally uploaded on 2008-07-08 10:55:58 by Sakurambo | ||
2012年6月11日 (一) 03:37 | 283 × 210(4 KB) | OgreBot(留言 | 贡献) | (BOT): Uploading old version of file from en.wikipedia; originally uploaded on 2008-07-08 10:42:06 by Sakurambo | ||
2012年3月9日 (五) 14:30 | 283 × 210(6 KB) | AH829(留言 | 贡献) | {{Information |Description={{en|vectorized version of en::Image:Airy-pattern.png}} |Source=Transferred from [http://en.wikipedia.org en.wikipedia]<br/> (Original text : ''Created in en:Adobe Illustrator and then edited to incorporate gradie... |
您不可以覆盖此文件。
文件用途
以下页面使用本文件:
全域文件用途
以下其他wiki使用此文件:
- de.wikibooks.org上的用途
- en.wikipedia.org上的用途
- en.wikibooks.org上的用途
- es.wikipedia.org上的用途
- it.wikipedia.org上的用途
- lmo.wikipedia.org上的用途
- mk.wikipedia.org上的用途
- ru.wikipedia.org上的用途
- th.wikipedia.org上的用途
- tr.wikipedia.org上的用途
- uk.wikipedia.org上的用途
- zh.wikipedia.org上的用途