mult-fun.lua /size: 10 Kb    last modification: 2021-10-28 13:50
1
return
{
2
internals
=
{
3
--
4
"
nocolormodel
"
,
"
greycolormodel
"
,
"
graycolormodel
"
,
"
rgbcolormodel
"
,
"
cmykcolormodel
"
,
5
"
shadefactor
"
,
"
shadeoffset
"
,
6
"
textextoffset
"
,
"
textextanchor
"
,
7
"
normaltransparent
"
,
"
multiplytransparent
"
,
"
screentransparent
"
,
"
overlaytransparent
"
,
8
"
softlighttransparent
"
,
"
hardlighttransparent
"
,
"
colordodgetransparent
"
,
"
colorburntransparent
"
,
9
"
darkentransparent
"
,
"
lightentransparent
"
,
"
differencetransparent
"
,
"
exclusiontransparent
"
,
10
"
huetransparent
"
,
"
saturationtransparent
"
,
"
colortransparent
"
,
"
luminositytransparent
"
,
11
-- "originlength", "tickstep ", "ticklength",
12
-- "autoarrows", "ahfactor",
13
-- "angleoffset", anglelength", anglemethod",
14
"
ahvariant
"
,
"
ahdimple
"
,
"
ahfactor
"
,
"
ahscale
"
,
15
"
metapostversion
"
,
16
"
maxdimensions
"
,
17
"
drawoptionsfactor
"
,
18
"
dq
"
,
"
sq
"
,
19
"
crossingscale
"
,
"
crossingoption
"
,
20
"
contextlmtxmode
"
,
"
metafunversion
"
,
"
minifunversion
"
,
21
--
22
-- for the moment we put these here as they need to stand out
23
--
24
"
getparameters
"
,
25
"
presetparameters
"
,
26
"
hasparameter
"
,
27
"
hasoption
"
,
28
"
getparameter
"
,
29
"
getparameterdefault
"
,
30
"
getparametercount
"
,
31
"
getmaxparametercount
"
,
32
"
getparameterpath
"
,
33
"
getparameterpen
"
,
34
"
getparametertext
"
,
35
-- "getparameteroption",
36
"
applyparameters
"
,
37
"
pushparameters
"
,
38
"
popparameters
"
,
39
"
setluaparameter
"
,
40
"
definecolor
"
,
41
--
42
"
record
"
,
"
newrecord
"
,
"
setrecord
"
,
"
getrecord
"
,
43
--
44
"
anchorxy
"
,
"
anchorx
"
,
"
anchory
"
,
45
"
anchorht
"
,
"
anchordp
"
,
46
"
anchorul
"
,
"
anchorll
"
,
"
anchorlr
"
,
"
anchorur
"
,
47
"
localanchorbox
"
,
"
localanchorcell
"
,
"
localanchorspan
"
,
48
"
anchorbox
"
,
"
anchorcell
"
,
"
anchorspan
"
,
49
"
matrixbox
"
,
"
matrixcell
"
,
"
matrixspan
"
,
50
}
,
51
commands
=
{
52
"
loadfile
"
,
"
loadimage
"
,
"
loadmodule
"
,
53
"
dispose
"
,
"
nothing
"
,
"
transparency
"
,
"
tolist
"
,
"
topath
"
,
"
tocycle
"
,
54
--
55
"
sqr
"
,
"
log
"
,
"
ln
"
,
"
exp
"
,
"
inv
"
,
"
pow
"
,
"
pi
"
,
"
radian
"
,
56
"
tand
"
,
"
cotd
"
,
"
sin
"
,
"
cos
"
,
"
tan
"
,
"
cot
"
,
"
atan
"
,
"
asin
"
,
"
acos
"
,
57
"
invsin
"
,
"
invcos
"
,
"
invtan
"
,
"
acosh
"
,
"
asinh
"
,
"
sinh
"
,
"
cosh
"
,
"
tanh
"
,
58
"
zmod
"
,
59
"
paired
"
,
"
tripled
"
,
60
"
unitcircle
"
,
"
fulldiamond
"
,
"
unitdiamond
"
,
"
fullsquare
"
,
"
unittriangle
"
,
"
fulltriangle
"
,
61
-- "halfcircle", "quartercircle",
62
"
llcircle
"
,
"
lrcircle
"
,
"
urcircle
"
,
"
ulcircle
"
,
63
"
tcircle
"
,
"
bcircle
"
,
"
lcircle
"
,
"
rcircle
"
,
64
"
lltriangle
"
,
"
lrtriangle
"
,
"
urtriangle
"
,
"
ultriangle
"
,
65
"
uptriangle
"
,
"
downtriangle
"
,
"
lefttriangle
"
,
"
righttriangle
"
,
"
triangle
"
,
66
"
smoothed
"
,
"
cornered
"
,
"
superellipsed
"
,
"
randomized
"
,
"
randomizedcontrols
"
,
"
squeezed
"
,
"
enlonged
"
,
"
shortened
"
,
67
"
punked
"
,
"
curved
"
,
"
unspiked
"
,
"
simplified
"
,
"
blownup
"
,
"
stretched
"
,
68
"
enlarged
"
,
"
leftenlarged
"
,
"
topenlarged
"
,
"
rightenlarged
"
,
"
bottomenlarged
"
,
69
"
crossed
"
,
"
laddered
"
,
"
randomshifted
"
,
"
interpolated
"
,
"
perpendicular
"
,
"
paralleled
"
,
"
cutends
"
,
"
peepholed
"
,
70
"
llenlarged
"
,
"
lrenlarged
"
,
"
urenlarged
"
,
"
ulenlarged
"
,
71
"
llmoved
"
,
"
lrmoved
"
,
"
urmoved
"
,
"
ulmoved
"
,
72
"
rightarrow
"
,
"
leftarrow
"
,
"
centerarrow
"
,
"
drawdoublearrows
"
,
73
"
boundingbox
"
,
"
innerboundingbox
"
,
"
outerboundingbox
"
,
"
pushboundingbox
"
,
"
popboundingbox
"
,
74
"
boundingradius
"
,
"
boundingcircle
"
,
"
boundingpoint
"
,
75
"
crossingunder
"
,
"
insideof
"
,
"
outsideof
"
,
76
"
bottomboundary
"
,
"
leftboundary
"
,
"
topboundary
"
,
"
rightboundary
"
,
77
"
xsized
"
,
"
ysized
"
,
"
xysized
"
,
"
sized
"
,
"
xyscaled
"
,
78
"
intersection_point
"
,
"
intersection_found
"
,
"
penpoint
"
,
79
"
bbwidth
"
,
"
bbheight
"
,
80
"
withshade
"
,
"
withcircularshade
"
,
"
withlinearshade
"
,
-- old but kept
81
"
defineshade
"
,
"
shaded
"
,
82
-- "withshading", "withlinearshading", "withcircularshading", "withfromshadecolor", "withtoshadecolor",
83
"
shadedinto
"
,
"
withshadecolors
"
,
84
"
withshadedomain
"
,
"
withshademethod
"
,
"
withshadefactor
"
,
"
withshadevector
"
,
85
"
withshadecenter
"
,
"
withshadedirection
"
,
"
withshaderadius
"
,
"
withshadetransform
"
,
"
withshadecenterone
"
,
"
withshadecentertwo
"
,
86
"
withshadestep
"
,
"
withshadefraction
"
,
"
withshadeorigin
"
,
"
shownshadevector
"
,
"
shownshadeorigin
"
,
87
"
shownshadedirection
"
,
"
shownshadecenter
"
,
88
"
cmyk
"
,
"
spotcolor
"
,
"
multitonecolor
"
,
"
namedcolor
"
,
89
"
drawfill
"
,
"
undrawfill
"
,
90
"
inverted
"
,
"
uncolored
"
,
"
softened
"
,
"
grayed
"
,
"
greyed
"
,
91
"
onlayer
"
,
92
"
along
"
,
93
"
graphictext
"
,
"
loadfigure
"
,
"
externalfigure
"
,
"
figure
"
,
"
register
"
,
94
"
outlinetext
"
,
"
filloutlinetext
"
,
"
drawoutlinetext
"
,
"
outlinetexttopath
"
,
95
"
checkedbounds
"
,
"
checkbounds
"
,
"
strut
"
,
"
rule
"
,
96
"
withmask
"
,
"
bitmapimage
"
,
97
"
colordecimals
"
,
"
ddecimal
"
,
"
dddecimal
"
,
"
ddddecimal
"
,
"
colordecimalslist
"
,
98
"
textext
"
,
"
thetextext
"
,
"
rawtextext
"
,
"
textextoffset
"
,
"
texbox
"
,
"
thetexbox
"
,
"
rawtexbox
"
,
"
istextext
"
,
99
"
rawmadetext
"
,
"
validtexbox
"
,
"
onetimetextext
"
,
"
rawfmttext
"
,
"
thefmttext
"
,
"
fmttext
"
,
"
onetimefmttext
"
,
100
"
notcached
"
,
"
keepcached
"
,
101
"
verbatim
"
,
102
"
thelabel
"
,
"
label
"
,
103
"
autoalign
"
,
104
"
transparent
"
,
"
withtransparency
"
,
"
withopacity
"
,
105
"
property
"
,
"
properties
"
,
"
withproperties
"
,
106
"
asgroup
"
,
107
"
withpattern
"
,
"
withpatternscale
"
,
"
withpatternfloat
"
,
108
"
infont
"
,
-- redefined using textext
109
-- "set_linear_vector", "set_circular_vector",
110
-- "linear_shade", "circular_shade",
111
-- "define_linear_shade", "define_circular_shade",
112
-- "define_circular_linear_shade", "define_circular_linear_shade",
113
-- "define_sampled_linear_shade", "define_sampled_circular_shade",
114
"
space
"
,
"
crlf
"
,
"
dquote
"
,
"
percent
"
,
"
SPACE
"
,
"
CRLF
"
,
"
DQUOTE
"
,
"
PERCENT
"
,
115
"
grayscale
"
,
"
greyscale
"
,
"
withgray
"
,
"
withgrey
"
,
116
"
colorpart
"
,
"
colorlike
"
,
117
"
readfile
"
,
118
"
clearxy
"
,
"
unitvector
"
,
"
center
"
,
-- redefined
119
"
epsed
"
,
"
anchored
"
,
120
"
originpath
"
,
"
infinite
"
,
121
"
break
"
,
122
"
xstretched
"
,
"
ystretched
"
,
"
snapped
"
,
123
--
124
"
pathconnectors
"
,
"
function
"
,
125
"
constructedfunction
"
,
"
constructedpath
"
,
"
constructedpairs
"
,
126
-- "punkedfunction", "punkedpath", "punkedpairs",
127
"
straightfunction
"
,
"
straightpath
"
,
"
straightpairs
"
,
128
"
curvedfunction
"
,
"
curvedpath
"
,
"
curvedpairs
"
,
129
-- "tightfunction", "tightpath", "tightpairs",
130
--
131
"
evenly
"
,
"
oddly
"
,
132
--
133
"
condition
"
,
134
--
135
"
pushcurrentpicture
"
,
"
popcurrentpicture
"
,
136
--
137
"
arrowpath
"
,
"
resetarrows
"
,
138
-- "colorlike", "dowithpath", "rangepath", "straightpath", "addbackground",
139
-- "cleanstring", "asciistring", "setunstringed", "getunstringed", "unstringed",
140
-- "showgrid",
141
-- "phantom",
142
-- "xshifted", "yshifted",
143
-- "drawarrowpath", "midarrowhead", "arrowheadonpath",
144
-- "drawxticks", "drawyticks", "drawticks",
145
-- "pointarrow",
146
-- "thefreelabel", "freelabel", "freedotlabel",
147
-- "anglebetween", "colorcircle",
148
-- "remapcolors", "normalcolors", "resetcolormap", "remapcolor", "remappedcolor",
149
-- "recolor", "refill", "redraw", "retext", "untext", "restroke", "reprocess", "repathed",
150
"
tensecircle
"
,
"
roundedsquare
"
,
151
"
colortype
"
,
"
whitecolor
"
,
"
blackcolor
"
,
"
basiccolors
"
,
"
complementary
"
,
"
complemented
"
,
152
"
resolvedcolor
"
,
153
--
154
-- "swappointlabels",
155
"
normalfill
"
,
"
normaldraw
"
,
"
visualizepaths
"
,
"
detailpaths
"
,
"
naturalizepaths
"
,
156
"
drawboundary
"
,
"
drawwholepath
"
,
"
drawpathonly
"
,
157
"
visualizeddraw
"
,
"
visualizedfill
"
,
"
detaileddraw
"
,
158
"
draworigin
"
,
"
drawboundingbox
"
,
159
"
drawpath
"
,
160
"
drawpoint
"
,
"
drawpoints
"
,
"
drawcontrolpoints
"
,
"
drawcontrollines
"
,
161
"
drawpointlabels
"
,
162
"
drawlineoptions
"
,
"
drawpointoptions
"
,
"
drawcontroloptions
"
,
"
drawlabeloptions
"
,
163
"
draworiginoptions
"
,
"
drawboundoptions
"
,
"
drawpathoptions
"
,
"
resetdrawoptions
"
,
164
--
165
"
undashed
"
,
"
pencilled
"
,
166
--
167
"
decorated
"
,
"
redecorated
"
,
"
undecorated
"
,
168
--
169
"
passvariable
"
,
"
passarrayvariable
"
,
"
tostring
"
,
"
topair
"
,
"
format
"
,
"
formatted
"
,
"
quotation
"
,
"
quote
"
,
170
"
startpassingvariable
"
,
"
stoppassingvariable
"
,
171
--
172
"
eofill
"
,
"
eoclip
"
,
"
nofill
"
,
"
dofill
"
,
"
fillup
"
,
"
eofillup
"
,
"
nodraw
"
,
"
dodraw
"
,
173
"
area
"
,
174
--
175
"
addbackground
"
,
176
--
177
"
shadedup
"
,
"
shadeddown
"
,
"
shadedleft
"
,
"
shadedright
"
,
178
--
179
"
sortlist
"
,
"
copylist
"
,
"
shapedlist
"
,
"
listtocurves
"
,
"
listtolines
"
,
"
listsize
"
,
"
listlast
"
,
"
uniquelist
"
,
180
--
181
"
circularpath
"
,
"
squarepath
"
,
"
linearpath
"
,
182
--
183
"
theoffset
"
,
184
--
185
"
texmode
"
,
"
systemmode
"
,
186
"
texvar
"
,
"
texstr
"
,
187
"
isarray
"
,
"
prefix
"
,
"
dimension
"
,
188
"
getmacro
"
,
"
getdimen
"
,
"
getcount
"
,
"
gettoks
"
,
189
"
setmacro
"
,
"
setdimen
"
,
"
setcount
"
,
"
settoks
"
,
190
"
setglobalmacro
"
,
"
setglobaldimen
"
,
"
setglobalcount
"
,
"
setglobaltoks
"
,
191
--
192
"
positionpath
"
,
"
positioncurve
"
,
"
positionxy
"
,
"
positionparagraph
"
,
"
positioncolumn
"
,
193
"
positionwhd
"
,
"
positionpage
"
,
"
positionregion
"
,
"
positionbox
"
,
"
positionx
"
,
"
positiony
"
,
194
"
positionanchor
"
,
"
positioninregion
"
,
"
positionatanchor
"
,
195
--
196
"
getposboxes
"
,
"
getmultipars
"
,
197
"
getpospage
"
,
"
getposparagraph
"
,
"
getposcolumn
"
,
"
getposregion
"
,
198
"
getposx
"
,
"
getposy
"
,
"
getposwidth
"
,
"
getposheight
"
,
"
getposdepth
"
,
199
"
getposleftskip
"
,
"
getposrightskip
"
,
"
getposhsize
"
,
"
getposparindent
"
,
"
getposhangindent
"
,
"
getposhangafter
"
,
200
"
getposxy
"
,
"
getposupperleft
"
,
"
getposlowerleft
"
,
"
getposupperright
"
,
"
getposlowerright
"
,
201
"
getposllx
"
,
"
getposlly
"
,
"
getposurx
"
,
"
getposury
"
,
202
--
203
"
wdpart
"
,
"
htpart
"
,
"
dppart
"
,
204
--
205
"
texvar
"
,
"
texstr
"
,
206
--
207
"
inpath
"
,
"
pointof
"
,
"
leftof
"
,
"
rightof
"
,
208
--
209
"
utfnum
"
,
"
utflen
"
,
"
utfsub
"
,
210
--
211
"
newhash
"
,
"
disposehash
"
,
"
inhash
"
,
"
tohash
"
,
"
fromhash
"
,
212
--
213
"
isarray
"
,
"
prefix
"
,
"
isobject
"
,
214
--
215
"
comment
"
,
"
report
"
,
"
lua
"
,
"
lualist
"
,
"
mp
"
,
"
MP
"
,
"
luacall
"
,
216
--
217
"
mirrored
"
,
"
mirroredabout
"
,
218
--
219
"
scriptindex
"
,
"
newscriptindex
"
,
220
--
221
"
newcolor
"
,
"
newrgbcolor
"
,
"
newcmykcolor
"
,
222
"
newnumeric
"
,
"
newboolean
"
,
"
newtransform
"
,
"
newpath
"
,
"
newpicture
"
,
"
newstring
"
,
"
newpair
"
,
223
--
224
"
mpvard
"
,
"
mpvarn
"
,
"
mpvars
"
,
"
mpvar
"
,
225
--
226
"
withtolerance
"
,
227
--
228
}
,
229
}
230