Update rgb2ryb.js

fix testing for amd