Code covered by the BSD License
function [curR curG curB] = int2rgb(colorInt) if colorInt > 16777215 || colorInt < 0 error ('only values <= 16777215 are allowed') end curR = floor(colorInt / (256*256)); curG = floor((colorInt - curR*256*256)/256); curB = colorInt - curR*256*256 - curG*256;
Contact us