Copy link to clipboard
Copied
This question was posted in response to the following article: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/filters/DisplacementMapFilt...
Copy link to clipboard
Copied
I think there may be a typo:
dstPixel[x, y] = srcPixel[x + ((componentX(x, y) - 128) * scaleX) / 256, y + ((componentY(x, y) - 128) *scaleY) / 256)
shouldn't this be:
dstPixel[x, y] = srcPixel[x + ((componentX(x, y) - 128) * scaleX) / 128, y + ((componentY(x, y) - 128) *scaleY) / 128)
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more