SlideShare uses cookies to improve functionality and performance, and to provide you with relevant advertising. If you continue browsing the site, you agree to the use of cookies on this website. See our User Agreement and Privacy Policy.
SlideShare uses cookies to improve functionality and performance, and to provide you with relevant advertising. If you continue browsing the site, you agree to the use of cookies on this website. See our Privacy Policy and User Agreement for details.
Successfully reported this slideshow.
Activate your 14 day free trial to unlock unlimited reading.
متاپست یک زبان برنامهنویسی برای طراحی است. استفاده عمده آن در تک (TeX) و لاتک (LaTex) بوده ولی بطور مستقل نیز قابل استفاده است.
در این کارگاه سعی خواهد شد کشیدن انواع نمودارها و شکلها با متاپست تمرین شود.
متاپست یک زبان برنامهنویسی برای طراحی است. استفاده عمده آن در تک (TeX) و لاتک (LaTex) بوده ولی بطور مستقل نیز قابل استفاده است.
در این کارگاه سعی خواهد شد کشیدن انواع نمودارها و شکلها با متاپست تمرین شود.
35.
CONDITION
if 𝑒1: ... elseif 𝑒2: ... else: ... fi
def middlepoint(expr a) = if path a: (point
.5*length a of
else: .5(llcorner a + urcorner fi a) enddef;
36.
LOOPS
for ⟨symbolic token⟩ = ⟨expression⟩ upto
⟨expression⟩ : ⟨loop text⟩ endfor
for ⟨symbolic token⟩ = ⟨expression⟩ downto
⟨expression⟩ : ⟨loop text⟩ endfor
for ⟨symbolic token⟩ = ⟨expression⟩ step
⟨expression⟩ until ⟨expression⟩ : ⟨loop text⟩
endfor
37.
SAMPLE LOOP
for t=3.14, 2.78, (a,2a), "hello": show t; endfor
draw for p=(3,1),(6,2),(7,5),(4,6),(1,3): p-- endfor
cycle;
draw (3,1)--(6,2)--(7,5)--(4,6)--(1,3)--cycle;
0 likes
Be the first to like this
Views
Total views
386
On SlideShare
0
From Embeds
0
Number of Embeds
0
You have now unlocked unlimited access to 20M+ documents!
Unlimited Reading
Learn faster and smarter from top experts
Unlimited Downloading
Download to take your learnings offline and on the go
You also get free access to Scribd!
Instant access to millions of ebooks, audiobooks, magazines, podcasts and more.
Read and listen offline with any device.
Free access to premium services like Tuneln, Mubi and more.