forked from arduino/Arduino
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapi.txt
413 lines (351 loc) · 15.4 KB
/
api.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
public void setParent(PApplet parent)
public void setPrimary(boolean primary)
public void setPath(String path)
public void setSize(int iwidth, int iheight)
protected void allocate()
public void dispose()
public boolean canDraw()
public void beginDraw()
public void endDraw()
protected void checkSettings()
protected void defaultSettings()
protected void reapplySettings()
public void hint(int which)
public void beginShape()
public void beginShape(int kind)
public void edge(boolean e)
public void normal(float nx, float ny, float nz)
public void textureMode(int mode)
public void texture(PImage image)
public void vertex(float x, float y)
public void vertex(float x, float y, float z)
public void vertex(float x, float y, float u, float v)
public void vertex(float x, float y, float z, float u, float v)
protected void vertexTexture(float u, float v);
public void breakShape()
public void endShape()
public void endShape(int mode)
protected void bezierVertexCheck();
public void bezierVertex(float x2, float y2,
float x3, float y3,
float x4, float y4)
public void bezierVertex(float x2, float y2, float z2,
float x3, float y3, float z3,
float x4, float y4, float z4)
protected void curveVertexCheck();
public void curveVertex(float x, float y)
public void curveVertex(float x, float y, float z)
protected void curveVertexSegment(float x1, float y1,
float x2, float y2,
float x3, float y3,
float x4, float y4)
protected void curveVertexSegment(float x1, float y1, float z1,
float x2, float y2, float z2,
float x3, float y3, float z3,
float x4, float y4, float z4)
protected void renderPoints(int start, int stop) // P3D
protected void rawPoints(int start, int stop) // P3D
protected void renderLines(int start, int stop) // P3D
protected void rawLines(int start, int stop) // P3D
protected void renderTriangles(int start, int stop) // P3D
protected void rawTriangles(int start, int stop) // P3D
public void flush()
protected void render()
proected void sort()
public void point(float x, float y)
public void point(float x, float y, float z)
public void line(float x1, float y1, float x2, float y2)
public void line(float x1, float y1, float z1,
float x2, float y2, float z2)
public void triangle(float x1, float y1,
float x2, float y2,
float x3, float y3)
public void quad(float x1, float y1, float x2, float y2,
float x3, float y3, float x4, float y4)
public void rectMode(int mode)
public void rect(float a, float b, float c, float d)
protected void rectImpl(float x1, float y1, float x2, float y2)
public void ellipseMode(int mode)
public void ellipse(float a, float b, float c, float d)
protected void ellipseImpl(float x, float y, float w, float h)
public void arc(float a, float b, float c, float d,
float start, float stop)
protected void arcImpl(float x, float y, float w, float h,
float start, float stop)
public void box(float size)
public void box(float w, float h, float d)
public void sphereDetail(int res)
public void sphereDetail(int ures, int vres)
public void sphere(float r)
public float bezierPoint(float a, float b, float c, float d, float t)
public float bezierTangent(float a, float b, float c, float d, float t)
protected void bezierInitCheck()
protected void bezierInit()
public void bezierDetail(int detail)
public void bezier(float x1, float y1,
float x2, float y2,
float x3, float y3,
float x4, float y4)
public void bezier(float x1, float y1, float z1,
float x2, float y2, float z2,
float x3, float y3, float z3,
float x4, float y4, float z4)
public float curvePoint(float a, float b, float c, float d, float t)
public float curveTangent(float a, float b, float c, float d, float t)
public void curveDetail(int detail)
public void curveTightness(float tightness)
protected void curveInitCheck()
protected void curveInit()
public void curve(float x1, float y1,
float x2, float y2,
float x3, float y3,
float x4, float y4)
public void curve(float x1, float y1, float z1,
float x2, float y2, float z2,
float x3, float y3, float z3,
float x4, float y4, float z4)
protected void splineForward(int segments, PMatrix3D matrix)
public void smooth()
public void noSmooth()
public void imageMode(int mode)
public void image(PImage image, float x, float y)
public void image(PImage image, float x, float y, float c, float d)
public void image(PImage image,
float a, float b, float c, float d,
int u1, int v1, int u2, int v2)
protected void imageImpl(PImage image,
float x1, float y1, float x2, float y2,
int u1, int v1, int u2, int v2)
public void shapeMode(int mode)
public void shape(PShape shape)
public void shape(PShape shape, float x, float y)
public void shape(PShape shape, float x, float y, float c, float d)
public void textAlign(int align)
public void textAlign(int alignX, int alignY)
public float textAscent()
public float textDescent()
public void textFont(PFont which)
public void textFont(PFont which, float size)
public void textLeading(float leading)
public void textMode(int mode)
protected boolean textModeCheck(int mode)
public void textSize(float size)
public float textWidth(char c)
public float textWidth(String str)
protected float textWidthImpl(char buffer[], int start, int stop)
public void text(char c)
public void text(char c, float x, float y)
public void text(char c, float x, float y, float z)
public void text(String str)
public void text(String str, float x, float y)
public void text(String str, float x, float y, float z)
public void text(String str, float x1, float y1, float x2, float y2)
public void text(String s, float x1, float y1, float x2, float y2, float z)
public void text(int num, float x, float y)
public void text(int num, float x, float y, float z)
public void text(float num, float x, float y)
public void text(float num, float x, float y, float z)
protected void textLineAlignImpl(char buffer[], int start, int stop,
float x, float y)
protected void textLineImpl(char buffer[], int start, int stop,
float x, float y)
protected void textCharImpl(char ch, float x, float y)
protected void textCharModelImpl(PImage glyph,
float x1, float y1, //float z1,
float x2, float y2, //float z2,
int u2, int v2)
protected void textCharScreenImpl(PImage glyph,
int xx, int yy,
int w0, int h0)
public void pushMatrix()
public void popMatrix()
public void translate(float tx, float ty)
public void translate(float tx, float ty, float tz)
public void rotate(float angle)
public void rotateX(float angle)
public void rotateY(float angle)
public void rotateZ(float angle)
public void rotate(float angle, float vx, float vy, float vz)
public void scale(float s)
public void scale(float sx, float sy)
public void scale(float x, float y, float z)
public void resetMatrix()
public void applyMatrix(PMatrix2D source)
public void applyMatrix(float n00, float n01, float n02,
float n10, float n11, float n12)
public void applyMatrix(PMatrix3D source)
public void applyMatrix(float n00, float n01, float n02, float n03,
float n10, float n11, float n12, float n13,
float n20, float n21, float n22, float n23,
float n30, float n31, float n32, float n33)
public getMatrix(PMatrix2D target)
public getMatrix(PMatrix3D target)
public void setMatrix(PMatrix2D source)
public void setMatrix(PMatrix3D source)
public void printMatrix()
public void beginCamera()
public void endCamera()
public void camera()
public void camera(float eyeX, float eyeY, float eyeZ,
float centerX, float centerY, float centerZ,
float upX, float upY, float upZ)
public void printCamera()
public void ortho()
public void ortho(float left, float right,
float bottom, float top,
float near, float far)
public void perspective()
public void perspective(float fov, float aspect, float near, float far)
public void frustum(float left, float right,
float bottom, float top,
float near, float far)
public void printProjection()
public float screenX(float x, float y)
public float screenY(float x, float y)
public float screenX(float x, float y, float z)
public float screenY(float x, float y, float z)
public float screenZ(float x, float y, float z)
public float modelX(float x, float y, float z)
public float modelY(float x, float y, float z)
public float modelZ(float x, float y, float z)
public void pushStyle()
public void popStyle()
public void style(PStyle)
public PStyle getStyle()
public void getStyle(PStyle)
public void strokeCap(int cap)
public void strokeJoin(int join)
public void strokeWeight(float weight)
public void noStroke()
public void stroke(int rgb)
public void stroke(int rgb, float alpha)
public void stroke(float gray)
public void stroke(float gray, float alpha)
public void stroke(float x, float y, float z)
public void stroke(float x, float y, float z, float a)
protected void strokeFromCalc()
public void noTint()
public void tint(int rgb)
public void tint(int rgb, float alpha)
public void tint(float gray)
public void tint(float gray, float alpha)
public void tint(float x, float y, float z)
public void tint(float x, float y, float z, float a)
protected void tintFromCalc()
public void noFill()
public void fill(int rgb)
public void fill(int rgb, float alpha)
public void fill(float gray)
public void fill(float gray, float alpha)
public void fill(float x, float y, float z)
public void fill(float x, float y, float z, float a)
protected void fillFromCalc()
public void ambient(int rgb)
public void ambient(float gray)
public void ambient(float x, float y, float z)
protected void ambientFromCalc()
public void specular(int rgb)
public void specular(float gray)
public void specular(float x, float y, float z)
protected void specularFromCalc()
public void shininess(float shine)
public void emissive(int rgb)
public void emissive(float gray)
public void emissive(float x, float y, float z )
protected void emissiveFromCalc()
public void lights()
public void noLights()
public void ambientLight(float red, float green, float blue)
public void ambientLight(float red, float green, float blue,
float x, float y, float z)
public void directionalLight(float red, float green, float blue,
float nx, float ny, float nz)
public void pointLight(float red, float green, float blue,
float x, float y, float z)
public void spotLight(float red, float green, float blue,
float x, float y, float z,
float nx, float ny, float nz,
float angle, float concentration)
public void lightFalloff(float constant, float linear, float quadratic)
public void lightSpecular(float x, float y, float z)
protected void lightPosition(int num, float x, float y, float z)
protected void lightDirection(int num, float x, float y, float z)
public void background(int rgb)
public void background(int rgb, float alpha)
public void background(float gray)
public void background(float gray, float alpha)
public void background(float x, float y, float z)
public void background(float x, float y, float z, float a)
public void background(PImage image)
protected void backgroundFromCalc()
protected void backgroundImpl(PImage image)
protected void backgroundImpl()
public void colorMode(int mode)
public void colorMode(int mode, float max)
public void colorMode(int mode, float maxX, float maxY, float maxZ)
public void colorMode(int mode, float maxX, float maxY, float maxZ, float maxA)
protected void colorCalc(int rgb)
protected void colorCalc(int rgb, float alpha)
protected void colorCalc(float gray)
protected void colorCalc(float gray, float alpha)
protected void colorCalc(float x, float y, float z)
protected void colorCalc(float x, float y, float z, float a)
protected void colorCalcARGB(int argb, float alpha)
public final int color(int gray)
public final int color(int gray, int alpha)
public final int color(int rgb, float alpha)
public final int color(int x, int y, int z)
public final float alpha(int what)
public final float red(int what)
public final float green(int what)
public final float blue(int what)
public final float hue(int what)
public final float saturation(int what)
public final float brightness(int what)
public int lerpColor(int c1, int c2, float amt)
static public int lerpColor(int c1, int c2, float amt, int mode)
public void beginRaw(PGraphics rawGraphics)
public void endRaw()
static public void showWarning(String msg)
static public void showException(String msg)
public boolean displayable()
public boolean is2D()
public boolean is3D()
//
These are the methods found in PImage, which are inherited by PGraphics.
public PImage(Image)
public Image getImage()
public void setCache(Object parent, Object storage)
public void getCache(Object parent)
public void removeCache(Object parent)
public boolean isModified();
public void setModified();
public void setModified(boolean state);
public void loadPixels()
public void updatePixels()
public void updatePixels(int x, int y, int w, int h)
public void resize(int wide, int high)
public int get(int x, int y)
public PImage get(int x, int y, int w, int h)
protected PImage getImpl(int x, int y, int w, int h)
public PImage get()
public void set(int x, int y, int c)
public void set(int x, int y, PImage src)
protected void setImpl(int dx, int dy, int sx, int sy, int sw, int sh,
PImage src)
public void mask(int alpha[])
public void mask(PImage alpha)
public void filter(int kind)
public void filter(int kind, float param)
public void copy(int sx, int sy, int sw, int sh,
int dx, int dy, int dw, int dh)
public void copy(PImage src,
int sx, int sy, int sw, int sh,
int dx, int dy, int dw, int dh)
static public int blendColor(int c1, int c2, int mode)
public void blend(int sx, int sy, int sw, int sh,
int dx, int dy, int dw, int dh, int mode)
public void blend(PImage src,
int sx, int sy, int sw, int sh,
int dx, int dy, int dw, int dh, int mode)
public void save(String path)