Merge pull request #1596 from xingsenma/develop-3.0

issue #3945 Refactor setColor and setOpacity
issue #3939 frame# -> #