mult-fun.lua /size: 9014 b    last modification: 2020-07-01 14:35
1
return
{
2
internals
=
{
3
--
4
"
nocolormodel
"
,
"
greycolormodel
"
,
"
graycolormodel
"
,
"
rgbcolormodel
"
,
"
cmykcolormodel
"
,
5
"
shadefactor
"
,
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
"
,
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
"
definecolor
"
,
40
}
,
41
commands
=
{
42
"
loadfile
"
,
"
loadimage
"
,
"
loadmodule
"
,
43
"
dispose
"
,
"
nothing
"
,
"
transparency
"
,
"
tolist
"
,
"
topath
"
,
"
tocycle
"
,
44
--
45
"
sqr
"
,
"
log
"
,
"
ln
"
,
"
exp
"
,
"
inv
"
,
"
pow
"
,
"
pi
"
,
"
radian
"
,
46
"
tand
"
,
"
cotd
"
,
"
sin
"
,
"
cos
"
,
"
tan
"
,
"
cot
"
,
"
atan
"
,
"
asin
"
,
"
acos
"
,
47
"
invsin
"
,
"
invcos
"
,
"
invtan
"
,
"
acosh
"
,
"
asinh
"
,
"
sinh
"
,
"
cosh
"
,
"
tanh
"
,
48
"
zmod
"
,
49
"
paired
"
,
"
tripled
"
,
50
"
unitcircle
"
,
"
fulldiamond
"
,
"
unitdiamond
"
,
"
fullsquare
"
,
"
unittriangle
"
,
"
fulltriangle
"
,
51
-- "halfcircle", "quartercircle",
52
"
llcircle
"
,
"
lrcircle
"
,
"
urcircle
"
,
"
ulcircle
"
,
53
"
tcircle
"
,
"
bcircle
"
,
"
lcircle
"
,
"
rcircle
"
,
54
"
lltriangle
"
,
"
lrtriangle
"
,
"
urtriangle
"
,
"
ultriangle
"
,
55
"
uptriangle
"
,
"
downtriangle
"
,
"
lefttriangle
"
,
"
righttriangle
"
,
"
triangle
"
,
56
"
smoothed
"
,
"
cornered
"
,
"
superellipsed
"
,
"
randomized
"
,
"
randomizedcontrols
"
,
"
squeezed
"
,
"
enlonged
"
,
"
shortened
"
,
57
"
punked
"
,
"
curved
"
,
"
unspiked
"
,
"
simplified
"
,
"
blownup
"
,
"
stretched
"
,
58
"
enlarged
"
,
"
leftenlarged
"
,
"
topenlarged
"
,
"
rightenlarged
"
,
"
bottomenlarged
"
,
59
"
crossed
"
,
"
laddered
"
,
"
randomshifted
"
,
"
interpolated
"
,
"
perpendicular
"
,
"
paralleled
"
,
"
cutends
"
,
"
peepholed
"
,
60
"
llenlarged
"
,
"
lrenlarged
"
,
"
urenlarged
"
,
"
ulenlarged
"
,
61
"
llmoved
"
,
"
lrmoved
"
,
"
urmoved
"
,
"
ulmoved
"
,
62
"
rightarrow
"
,
"
leftarrow
"
,
"
centerarrow
"
,
"
drawdoublearrows
"
,
63
"
boundingbox
"
,
"
innerboundingbox
"
,
"
outerboundingbox
"
,
"
pushboundingbox
"
,
"
popboundingbox
"
,
64
"
boundingradius
"
,
"
boundingcircle
"
,
"
boundingpoint
"
,
65
"
crossingunder
"
,
"
insideof
"
,
"
outsideof
"
,
66
"
bottomboundary
"
,
"
leftboundary
"
,
"
topboundary
"
,
"
rightboundary
"
,
67
"
xsized
"
,
"
ysized
"
,
"
xysized
"
,
"
sized
"
,
"
xyscaled
"
,
68
"
intersection_point
"
,
"
intersection_found
"
,
"
penpoint
"
,
69
"
bbwidth
"
,
"
bbheight
"
,
70
"
withshade
"
,
"
withcircularshade
"
,
"
withlinearshade
"
,
-- old but kept
71
"
defineshade
"
,
"
shaded
"
,
72
-- "withshading", "withlinearshading", "withcircularshading", "withfromshadecolor", "withtoshadecolor",
73
"
shadedinto
"
,
"
withshadecolors
"
,
74
"
withshadedomain
"
,
"
withshademethod
"
,
"
withshadefactor
"
,
"
withshadevector
"
,
75
"
withshadecenter
"
,
"
withshadedirection
"
,
"
withshaderadius
"
,
"
withshadetransform
"
,
76
"
withshadestep
"
,
"
withshadefraction
"
,
"
withshadeorigin
"
,
"
shownshadevector
"
,
"
shownshadeorigin
"
,
77
"
cmyk
"
,
"
spotcolor
"
,
"
multitonecolor
"
,
"
namedcolor
"
,
78
"
drawfill
"
,
"
undrawfill
"
,
79
"
inverted
"
,
"
uncolored
"
,
"
softened
"
,
"
grayed
"
,
"
greyed
"
,
80
"
onlayer
"
,
81
"
along
"
,
82
"
graphictext
"
,
"
loadfigure
"
,
"
externalfigure
"
,
"
figure
"
,
"
register
"
,
83
"
outlinetext
"
,
"
filloutlinetext
"
,
"
drawoutlinetext
"
,
"
outlinetexttopath
"
,
84
"
checkedbounds
"
,
"
checkbounds
"
,
"
strut
"
,
"
rule
"
,
85
"
withmask
"
,
"
bitmapimage
"
,
86
"
colordecimals
"
,
"
ddecimal
"
,
"
dddecimal
"
,
"
ddddecimal
"
,
"
colordecimalslist
"
,
87
"
textext
"
,
"
thetextext
"
,
"
rawtextext
"
,
"
textextoffset
"
,
"
texbox
"
,
"
thetexbox
"
,
"
rawtexbox
"
,
"
istextext
"
,
88
"
notcached
"
,
"
keepcached
"
,
89
"
verbatim
"
,
90
"
thelabel
"
,
"
label
"
,
91
"
autoalign
"
,
92
"
transparent
"
,
"
withtransparency
"
,
"
withopacity
"
,
93
"
property
"
,
"
properties
"
,
"
withproperties
"
,
94
"
asgroup
"
,
95
"
infont
"
,
-- redefined using textext
96
-- "set_linear_vector", "set_circular_vector",
97
-- "linear_shade", "circular_shade",
98
-- "define_linear_shade", "define_circular_shade",
99
-- "define_circular_linear_shade", "define_circular_linear_shade",
100
-- "define_sampled_linear_shade", "define_sampled_circular_shade",
101
"
space
"
,
"
crlf
"
,
"
dquote
"
,
"
percent
"
,
"
SPACE
"
,
"
CRLF
"
,
"
DQUOTE
"
,
"
PERCENT
"
,
102
"
grayscale
"
,
"
greyscale
"
,
"
withgray
"
,
"
withgrey
"
,
103
"
colorpart
"
,
"
colorlike
"
,
104
"
readfile
"
,
105
"
clearxy
"
,
"
unitvector
"
,
"
center
"
,
-- redefined
106
"
epsed
"
,
"
anchored
"
,
107
"
originpath
"
,
"
infinite
"
,
108
"
break
"
,
109
"
xstretched
"
,
"
ystretched
"
,
"
snapped
"
,
110
--
111
"
pathconnectors
"
,
"
function
"
,
112
"
constructedfunction
"
,
"
constructedpath
"
,
"
constructedpairs
"
,
113
-- "punkedfunction", "punkedpath", "punkedpairs",
114
"
straightfunction
"
,
"
straightpath
"
,
"
straightpairs
"
,
115
"
curvedfunction
"
,
"
curvedpath
"
,
"
curvedpairs
"
,
116
-- "tightfunction", "tightpath", "tightpairs",
117
--
118
"
evenly
"
,
"
oddly
"
,
119
--
120
"
condition
"
,
121
--
122
"
pushcurrentpicture
"
,
"
popcurrentpicture
"
,
123
--
124
"
arrowpath
"
,
"
resetarrows
"
,
125
-- "colorlike", "dowithpath", "rangepath", "straightpath", "addbackground",
126
-- "cleanstring", "asciistring", "setunstringed", "getunstringed", "unstringed",
127
-- "showgrid",
128
-- "phantom",
129
-- "xshifted", "yshifted",
130
-- "drawarrowpath", "midarrowhead", "arrowheadonpath",
131
-- "drawxticks", "drawyticks", "drawticks",
132
-- "pointarrow",
133
-- "thefreelabel", "freelabel", "freedotlabel",
134
-- "anglebetween", "colorcircle",
135
-- "remapcolors", "normalcolors", "resetcolormap", "remapcolor", "remappedcolor",
136
-- "recolor", "refill", "redraw", "retext", "untext", "restroke", "reprocess", "repathed",
137
"
tensecircle
"
,
"
roundedsquare
"
,
138
"
colortype
"
,
"
whitecolor
"
,
"
blackcolor
"
,
"
basiccolors
"
,
"
complementary
"
,
"
complemented
"
,
139
"
resolvedcolor
"
,
140
--
141
-- "swappointlabels",
142
"
normalfill
"
,
"
normaldraw
"
,
"
visualizepaths
"
,
"
detailpaths
"
,
"
naturalizepaths
"
,
143
"
drawboundary
"
,
"
drawwholepath
"
,
"
drawpathonly
"
,
144
"
visualizeddraw
"
,
"
visualizedfill
"
,
"
detaileddraw
"
,
145
"
draworigin
"
,
"
drawboundingbox
"
,
146
"
drawpath
"
,
147
"
drawpoint
"
,
"
drawpoints
"
,
"
drawcontrolpoints
"
,
"
drawcontrollines
"
,
148
"
drawpointlabels
"
,
149
"
drawlineoptions
"
,
"
drawpointoptions
"
,
"
drawcontroloptions
"
,
"
drawlabeloptions
"
,
150
"
draworiginoptions
"
,
"
drawboundoptions
"
,
"
drawpathoptions
"
,
"
resetdrawoptions
"
,
151
--
152
"
undashed
"
,
"
pencilled
"
,
153
--
154
"
decorated
"
,
"
redecorated
"
,
"
undecorated
"
,
155
--
156
"
passvariable
"
,
"
passarrayvariable
"
,
"
tostring
"
,
"
topair
"
,
"
format
"
,
"
formatted
"
,
"
quotation
"
,
"
quote
"
,
157
"
startpassingvariable
"
,
"
stoppassingvariable
"
,
158
--
159
"
eofill
"
,
"
eoclip
"
,
"
nofill
"
,
"
dofill
"
,
"
fillup
"
,
"
eofillup
"
,
"
nodraw
"
,
"
dodraw
"
,
160
"
area
"
,
161
--
162
"
addbackground
"
,
163
--
164
"
shadedup
"
,
"
shadeddown
"
,
"
shadedleft
"
,
"
shadedright
"
,
165
--
166
"
sortlist
"
,
"
copylist
"
,
"
shapedlist
"
,
"
listtocurves
"
,
"
listtolines
"
,
"
listsize
"
,
"
listlast
"
,
"
uniquelist
"
,
167
--
168
"
circularpath
"
,
"
squarepath
"
,
"
linearpath
"
,
169
--
170
"
theoffset
"
,
171
--
172
"
texmode
"
,
"
systemmode
"
,
173
"
texvar
"
,
"
texstr
"
,
174
"
isarray
"
,
"
prefix
"
,
"
dimension
"
,
175
"
getmacro
"
,
"
getdimen
"
,
"
getcount
"
,
"
gettoks
"
,
176
"
setmacro
"
,
"
setdimen
"
,
"
setcount
"
,
"
settoks
"
,
177
--
178
"
positionpath
"
,
"
positioncurve
"
,
"
positionxy
"
,
"
positionpxy
"
,
179
"
positionwhd
"
,
"
positionpage
"
,
"
positionregion
"
,
"
positionbox
"
,
180
"
positionanchor
"
,
"
positioninregion
"
,
"
positionatanchor
"
,
181
--
182
"
wdpart
"
,
"
htpart
"
,
"
dppart
"
,
183
--
184
"
texvar
"
,
"
texstr
"
,
185
--
186
"
inpath
"
,
"
pointof
"
,
"
leftof
"
,
"
rightof
"
,
187
--
188
"
utflen
"
,
"
utfsub
"
,
189
--
190
"
newhash
"
,
"
disposehash
"
,
"
inhash
"
,
"
tohash
"
,
191
--
192
"
isarray
"
,
"
prefix
"
,
"
isobject
"
,
193
--
194
"
comment
"
,
"
report
"
,
"
lua
"
,
"
mp
"
,
"
MP
"
,
"
luacall
"
,
195
--
196
"
mirrored
"
,
"
mirroredabout
"
,
197
--
198
"
scriptindex
"
,
199
}
,
200
}
201