pixels配列内のRGBA値でキャンバスを更新します。
updatePixels()は、pixels配列の値を変更した後にのみ呼び出す必要があります。このような変更は、loadPixels()を呼び出した直後、またはset()を呼び出すことで行うことができます。
実例
シンタックス
updatePixels([x], [y], [w], [h])
パラメーター
x
Number:
更新する領域の左上隅のx座標。
y
Number:
更新する領域の左上隅のy座標。
w
Number:
更新する領域の幅。
h
Number:
更新する領域の高さ。
This page is generated from the comments in src/image/pixels.js . Please feel free to edit it and submit a pull request!