화학적 포텐셜 에너지 표현 계획

화학적 포텐셜 에너지 표현 계획

화학적 위치에너지의 개념을 개략적으로 표현하기 위해 이 코드를 작성했습니다. 이 이미지는 볼타 전지의 에너지 변환(화학적 위치 에너지 -> 전기 에너지(= 전기 작업)(변환기: 램프) -> 복사 에너지 -> 내부 에너지)의 대표적인 다이어그램의 일부입니다. 저는 두 가지 작업에 대해 도움을 요청합니다. 1) 투명성을 추가하고 시험관 표현을 개선합니다. 2) 당근 표현을 개선합니다(가능한 경우). 미리 감사드립니다.

\starttext

\startMPpage
picture tube, base, carrot;
path p;
pair t;
numeric xx, y;
color carrotcolor, aquaU, aquaD, tubecolor;
carrotcolor :=(235/255, 137/255, 33/255);
aquaU := (2/255, 132/255, 130/255);
aquaD := (122/255, 186/255, 122/255);
tubecolor :=(183/255, 110/255, 184/255);

%draw the essay tube
draw origin--origin shifted (3cm,0cm) withpen pencircle scaled 1cm withcolor tubecolor;
draw origin--origin shifted (3cm,0cm) withpen pencircle scaled .8cm withcolor white;
fill fullcircle shifted (-0.01cm,0) xscaled .6cm yscaled .9cm withpen pencircle scaled .1cm withcolor white;
draw fullcircle shifted (-.010cm,0) xscaled .61cm yscaled .9cm withpen pencircle scaled .1cm withcolor tubecolor;
tube := currentpicture scaled .4;currentpicture:=nullpicture;

%draw the rectangle base
linejoin := mitered; linecap := butt;
fill (0,0)--(0,2cm)--(3cm,2cm)--(3cm,0)--cycle withcolor aquaD; 
draw (0,0)--(0,2cm)--(3cm,2cm)--(3cm,0)--cycle withpen pencircle scaled 1mm withcolor aquaU;
base:=currentpicture; currentpicture:=nullpicture;

% draw the carrot tubercle
p:= origin..(-.1cm,.15cm)..(-.1cm,2.15cm)..(0,2.15cm)..(.1cm,2.15cm)..(.1cm,.15cm)..cycle;
drawfill p withcolor transparent(1,.5,carrotcolor);
draw p ;

% draw the green leaves
linejoin :=mitered; linecap:=rounded;
for i=2 step .1 until 4:
t:= point i of p;
xx:=uniformdeviate( 1 )*1cm + xpart(t)-uniformdeviate( 1 )*1cm;
y:=uniformdeviate( 1.5 )*1cm + ypart(t);
draw t..(xx,y) withpen pencircle scaled 1.mm withcolor green;
endfor;
carrot := currentpicture scaled .45; currentpicture:=nullpicture;

%include all drawings
draw base;  
draw tube  rotated -135  shifted (2cm,1.5cm) ;
draw carrot rotated 45  shifted (2cm,.5cm) ;

\stopMPpage


\stoptext

여기에 이미지 설명을 입력하세요

관련 정보