파일:Random go position.png
문서 내용이 다른 언어로는 지원되지 않습니다.
위키백과, 우리 모두의 백과사전.
미리 보기 크기: 600 × 600 픽셀 다른 해상도: 240 × 240 픽셀 | 480 × 480 픽셀 | 768 × 768 픽셀 | 1,024 × 1,024 픽셀 | 2,497 × 2,497 픽셀
원본 파일 (2,497 × 2,497 픽셀, 파일 크기: 334 KB, MIME 종류: image/png)
A Go position, used to illustrate the rules of Go.
David Benbennick made it with the following Metapost program, modified slightly from the code at Image:Go position, life and death, 1.png:
scale=0.6in; % scale is the diameter of a stone linethickness = scale/25; pickup pencircle scaled linethickness; num = 150; % Levels of shading in each stone. color shadow; shadow = (0.44,0.36,0.18); lx = -0.35; ly = 0.35; lz = sqrt(1-lx*lx-ly*ly); % light source direction vector. % note that lz = cos(ltip). ltheta = angle(lx, ly); ltip = angle(lz, lx++ly); % the angle at which the light source is tipped. path ellipse; ellipse := fullcircle scaled scale xscaled lz; % First, we draw the black stone, and a special version for the bottom row: picture blackstone; blackstone = currentpicture; picture blackstoneb; blackstoneb = currentpicture; picture blackstoner; blackstoner = currentpicture; addto blackstone contour fullcircle scaled scale shifted (0.05*scale*dir(ltheta+180)) withcolor shadow; addto blackstoneb contour fullcircle scaled scale shifted (0.05*scale*dir(ltheta+180)) withcolor shadow; addto blackstoner contour fullcircle scaled scale shifted (0.05*scale*dir(ltheta+180)) withcolor shadow; addto blackstone doublepath (0.55*scale,0)--(0,0)--(0,-0.55*scale) withpen currentpen; addto blackstoneb doublepath (0.55*scale,0)--(0,0) withpen currentpen; addto blackstoner doublepath (0,-0.55*scale)--(0,0) withpen currentpen; addto blackstone contour fullcircle scaled scale; addto blackstoneb contour fullcircle scaled scale; addto blackstoner contour fullcircle scaled scale; for ratio = 1 step -1/num until 0 : path ourellipse; ourellipse = ellipse scaled ratio shifted (scale*(1+-+ratio)*sind(ltip)/2, 0) rotated ltheta; addto blackstone contour ourellipse withcolor (0.7*(1+-+ratio)**2*white); addto blackstoneb contour ourellipse withcolor (0.7*(1+-+ratio)**2*white); addto blackstoner contour ourellipse withcolor (0.7*(1+-+ratio)**2*white); endfor; % Next, we draw a white stone, and a special version for the bottom row: picture whitestone; whitestone = currentpicture; picture whitestoneb; whitestoneb = currentpicture; picture whitestoner; whitestoner = currentpicture; basewhite = 0.7; addto whitestone contour fullcircle scaled scale shifted (0.05*scale*dir(ltheta+180)) withcolor shadow; addto whitestoneb contour fullcircle scaled scale shifted (0.05*scale*dir(ltheta+180)) withcolor shadow; addto whitestoner contour fullcircle scaled scale shifted (0.05*scale*dir(ltheta+180)) withcolor shadow; addto whitestone doublepath (0.55*scale,0)--(0,0)--(0,-0.55*scale) withpen currentpen; addto whitestoneb doublepath (0.55*scale,0)--(0,0) withpen currentpen; addto whitestoner doublepath (0,-0.55*scale)--(0,0) withpen currentpen; addto whitestone contour fullcircle scaled scale withcolor (basewhite*white); addto whitestoneb contour fullcircle scaled scale withcolor (basewhite*white); addto whitestoner contour fullcircle scaled scale withcolor (basewhite*white); for ratio = 1 step -1/num until 0 : path ourellipse; ourellipse = ellipse scaled ratio shifted (scale*(1+-+ratio)*sind(ltip)/2, 0) rotated ltheta; addto whitestone contour ourellipse withcolor (basewhite + (1-basewhite)*((1+-+ratio)**4))*white; addto whitestoneb contour ourellipse withcolor (basewhite + (1-basewhite)*((1+-+ratio)**4))*white; addto whitestoner contour ourellipse withcolor (basewhite + (1-basewhite)*((1+-+ratio)**4))*white; endfor; boardwidth = 5; boardheight = 5; % a 5-by-5 positions of a go board. def drawboard = pickup pencircle scaled linethickness; fill unitsquare xscaled ((boardwidth+0.2)*scale) yscaled ((boardheight+0.2)*scale) shifted (-0.6*scale, -0.6scale) withcolor (0.86,0.70,0.36); for i = 0 upto boardwidth - 1 : draw (scale*i,0) -- (scale*i, (boardheight-1)*scale); endfor; for j = 0 upto boardheight - 1 : draw (0,scale*j) -- ((boardwidth-1)*scale,scale*j); endfor; enddef; def wh(expr x, y) = if y = 0 : draw whitestoneb shifted (x*scale, y*scale); elseif x = boardwidth - 1 : draw whitestoner shifted (x*scale, y*scale); else : draw whitestone shifted (x*scale, y*scale); fi; enddef; def bl(expr x, y) = if y = 0 : draw blackstoneb shifted (x*scale, y*scale); elseif x = boardwidth - 1 : draw blackstoner shifted (x*scale, y*scale); else : draw blackstone shifted (x*scale, y*scale); fi; enddef; def lab(expr num, x, y, color) = draw thelabel(num, (0, 0)) scaled (0.75*scale/10pt) shifted (x*scale, y*scale) withcolor color; enddef; beginfig(1); drawboard; bl(1,4);bl(4,4);bl(0,3);bl(1,3);wh(3,3);bl(4,3);wh(2,2);wh(0,1); wh(2,1);bl(3,1);wh(4,1);bl(1,0);wh(2,0);wh(3,0); currentpicture := currentpicture shifted (3in, 3in); endfig; end;
With the above code as Random_go_position.mp, run
mpost Random_go_position.mp convert -density 800 Random_go_position.1 Random_go_position.pnm pnmcrop Random_go_position.pnm | pnmtopng > Random_go_position.png.uncrush pngcrush -reduce -brute -l 9 Random_go_position.png.uncrush Random_go_position.png
to reproduce this image.
나는 아래 작품의 저작권자로서, 이 저작물을 다음과 같은 라이선스로 배포합니다:
GNU 자유 문서 사용 허가서 1.2판 또는 자유 소프트웨어 재단에서 발행한 이후 판의 규정에 따라 본 문서를 복제하거나 개작 및 배포할 수 있습니다. 본 문서에는 변경 불가 부분이 없으며, 앞 표지 구절과 뒷 표지 구절도 없습니다. 본 사용 허가서의 전체 내용은 GNU 자유 문서 사용 허가서 부분에 포함되어 있습니다.http://www.gnu.org/copyleft/fdl.htmlGFDLGNU Free Documentation Licensetruetrue |
이 파일은 크리에이티브 커먼즈 저작자표시-동일조건변경허락 3.0 Unported 라이선스로 배포됩니다. | ||
| ||
이 라이선스 틀은 GFDL 라이선스 변경의 일부로 이 파일에 추가되었습니다.http://creativecommons.org/licenses/by-sa/3.0/CC BY-SA 3.0Creative Commons Attribution-Share Alike 3.0truetrue |
이 파일은 크리에이티브 커먼즈 저작자표시-동일조건변경허락 2.0 일반 라이선스로 배포됩니다.
- 이용자는 다음의 권리를 갖습니다:
- 공유 및 이용 – 저작물의 복제, 배포, 전시, 공연 및 공중송신
- 재창작 – 저작물의 개작, 수정, 2차적저작물 창작
- 다음과 같은 조건을 따라야 합니다:
- 저작자표시 – 적절한 저작자 표시를 제공하고, 라이센스에 대한 링크를 제공하고, 변경사항이 있는지를 표시해야 합니다. 당신은 합리적인 방식으로 표시할 수 있지만, 어떤 방식으로든 사용권 허가자가 당신 또는 당신의 사용을 지지하는 방식으로 표시할 수 없습니다.
- 동일조건변경허락 – 만약 당신이 이 저작물을 리믹스 또는 변형하거나 이 저작물을 기반으로 제작하는 경우, 당신은 당신의 기여물을 원저작물과 동일하거나 호환 가능한 라이선스에 따라 배포하여야 합니다.
이 라이선스 중에서 목적에 맞는 것을 선택하여 사용할 수 있습니다.
이 파일에 묘사된 항목
다음을 묘사함
파일 역사
날짜/시간 링크를 클릭하면 해당 시간의 파일을 볼 수 있습니다.
날짜/시간 | 섬네일 | 크기 | 사용자 | 설명 | |
---|---|---|---|---|---|
현재 | 2005년 2월 18일 (금) 12:53 | 2,497 × 2,497 (334 KB) | Dbenbenn | made by me, {{GFDL}} |
이 파일을 사용하는 문서
다음 문서 1개가 이 파일을 사용하고 있습니다:
이 파일을 사용하고 있는 모든 위키의 문서 목록
다음 위키에서 이 파일을 사용하고 있습니다:
- hu.wikipedia.org에서 이 파일을 사용하고 있는 문서 목록