swf-reader icon indicating copy to clipboard operation
swf-reader copied to clipboard

Background RGB to Hex wrongly converted

Open rafaeldias opened this issue 9 years ago • 0 comments

Correct computing: red*65536 + green*256 + blue

Line: swf.backgroundColor = '#' + (tag.RGB[0]*65536 + tag.RGB[1]*256 + tag.RGB[0]).toString(16);

Should be: swf.backgroundColor = '#' + (tag.RGB[0]*65536 + tag.RGB[1]*256 + tag.RGB[2]).toString(16);

rafaeldias avatar Jul 20 '16 16:07 rafaeldias