このリファレンスは拡張版です。複雑な部分を除いた省略版と、さらに言語要素を追加した開発者版があります。
また、この文書は Processing のAPIリファレンスを日本語に訳したものであり、
最新の内容は 英語版 で確認して下さい。
Language[API]. Processing言語は容易に洗練された視覚表現と概念構造を創造できるよう設計されています。
構造(29)
. (dot)
super
setup()
exit()
class
void
size()
/* */ (multiline comment)
false
noLoop()
this
true
new
// (comment)
, (comma)
delay()
{} (curly braces)
/** */ (doc comment)
draw()
loop()
implements
redraw()
; (semicolon)
[] (array access)
extends
null
() (parentheses)
return
= (assign)
. (dot)
super
setup()
exit()
class
void
size()
/* */ (multiline comment)
false
noLoop()
this
true
new
// (comment)
, (comma)
delay()
{} (curly braces)
/** */ (doc comment)
draw()
loop()
implements
redraw()
; (semicolon)
[] (array access)
extends
null
() (parentheses)
return
= (assign)
データ(37)
char
float
int
boolean
byte
Array
Object
char()
int()
hex()
binary()
unhex()
byte()
str()
boolean()
float()
join()
splitTokens()
nf()
match()
trim()
nfc()
nfs()
nfp()
concat()
subset()
append()
contract()
sort()
arraycopy()
reverse()
splice()
expand()
基本データ型
colorchar
float
int
boolean
byte
複合型
StringArray
Object
型変換
unbinary()char()
int()
hex()
binary()
unhex()
byte()
str()
boolean()
float()
文字列関数
split()join()
splitTokens()
nf()
match()
trim()
nfc()
nfs()
nfp()
配列関数
shorten()concat()
subset()
append()
sort()
arraycopy()
reverse()
splice()
expand()
図形(32)
line()
arc()
point()
quad()
ellipse()
rect()
bezierDetail()
curveTightness()
bezierPoint()
curveDetail()
curvePoint()
curve()
bezier()
sphere()
sphereDetail()
smooth()
strokeJoin()
noSmooth()
ellipseMode()
rectMode()
strokeCap()
bezierVertex()
textureMode()
beginShape()
texture()
curveVertex()
endShape()
2次元基本図形
triangle()line()
arc()
point()
quad()
ellipse()
rect()
曲線
bezierTangent()bezierDetail()
curveTightness()
bezierPoint()
curveDetail()
curvePoint()
curve()
bezier()
3次元基本図形
box()sphere()
sphereDetail()
属性
strokeWeight()smooth()
strokeJoin()
noSmooth()
ellipseMode()
rectMode()
strokeCap()
頂点
vertex()bezierVertex()
textureMode()
beginShape()
texture()
curveVertex()
endShape()
入力(31)
mouseMoved()
mouseButton
mouseX
mouseReleased()
pmouseX
mousePressed()
mouseY
mousePressed
pmouseY
mouseClicked()
keyReleased()
keyPressed()
key
keyTyped()
keyPressed
open()
loadStrings()
loadBytes()
link()
param()
millis()
year()
minute()
month()
day()
second()
マウス
mouseDragged()mouseMoved()
mouseButton
mouseX
mouseReleased()
pmouseX
mousePressed()
mouseY
mousePressed
pmouseY
mouseClicked()
キーボード
keyCodekeyReleased()
keyPressed()
key
keyTyped()
keyPressed
ファイル
openStream()open()
loadStrings()
loadBytes()
ウェブ
status()link()
param()
日時
hour()millis()
year()
minute()
month()
day()
second()
出力(11)
print()
save()
saveStrings()
saveBytes()
createWriter()
PrintWriter
beginRecord()
createReader()
テキストエリア
println()print()
画像
saveFrame()save()
ファイル
endRecord()saveStrings()
saveBytes()
createWriter()
PrintWriter
beginRecord()
createReader()
変換(11)
rotateY()
printMatrix()
pushMatrix()
rotateZ()
applyMatrix()
scale()
popMatrix()
translate()
resetMatrix()
rotate()
rotateX()
rotateY()
printMatrix()
pushMatrix()
rotateZ()
applyMatrix()
scale()
popMatrix()
translate()
resetMatrix()
rotate()
rotateX()
照明、カメラ(27)
directionalLight()
lightFalloff()
pointLight()
lights()
lightSpecular()
ambientLight()
normal()
spotLight()
ortho()
endCamera()
printCamera()
perspective()
frustum()
printProjection()
beginCamera()
screenZ()
modelX()
screenX()
modelY()
screenY()
specular()
ambient()
emissive()
照明
noLights()directionalLight()
lightFalloff()
pointLight()
lights()
lightSpecular()
ambientLight()
normal()
spotLight()
カメラ
camera()ortho()
endCamera()
printCamera()
perspective()
frustum()
printProjection()
beginCamera()
座標
modelZ()screenZ()
modelX()
screenX()
modelY()
screenY()
物体特性
shininess()specular()
ambient()
emissive()
色(16)
colorMode()
stroke()
noFill()
noStroke()
fill()
brightness()
blue()
saturation()
green()
hue()
alpha()
color()
blendColor()
lerpColor()
設定
background()colorMode()
stroke()
noFill()
noStroke()
fill()
生成と読み込み
red()brightness()
blue()
saturation()
green()
hue()
alpha()
color()
blendColor()
lerpColor()
画像(15)
PImage
createImage()
image()
noTint()
imageMode()
tint()
copy()
set()
updatePixels()
blend()
loadPixels()
pixels[]
get()
PImage
createImage()
読み込みと表示
loadImage()image()
noTint()
imageMode()
tint()
ピクセル
filter()copy()
set()
updatePixels()
blend()
loadPixels()
pixels[]
get()
タイポグラフィ(12)
PFont
createFont()
loadFont()
textFont()
textSize()
textAlign()
textLeading()
textWidth()
textAscent()
PFont
読み込みと表示
text()createFont()
loadFont()
textFont()
属性
textMode()textSize()
textAlign()
textLeading()
textWidth()
基準
textDescent()textAscent()
数学(44)
+ (addition)
- (minus)
% (modulo)
+= (add assign)
/ (divide)
* (multiply)
++ (increment)
-- (decrement)
<< (left shift)
| (bitwise OR)
>> (right shift)
max()
round()
dist()
exp()
pow()
floor()
sqrt()
abs()
constrain()
mag()
log()
lerp()
sq()
ceil()
norm()
map()
tan()
sin()
cos()
degrees()
atan2()
atan()
radians()
asin()
noiseSeed()
randomSeed()
noiseDetail()
random()
演算子
-= (subtract assign)+ (addition)
- (minus)
% (modulo)
+= (add assign)
/ (divide)
* (multiply)
++ (increment)
-- (decrement)
ビット演算子
& (bitwise AND)<< (left shift)
| (bitwise OR)
>> (right shift)
計算
min()max()
round()
dist()
exp()
pow()
floor()
sqrt()
abs()
constrain()
mag()
log()
lerp()
sq()
ceil()
norm()
map()
三角関数
acos()tan()
sin()
cos()
degrees()
atan2()
atan()
radians()
asin()
乱数
noise()noiseSeed()
randomSeed()
noiseDetail()
random()
