lzy100w I use the official runtimes (spine-canvas.js),but I can't see the ColorTransform Effect colorTransform Effect do not work。 demo:http://zyleague.com/sites/lspine.html
Mario As outlined in the README.md of the spine-ts subdirectory, spine-canvas can sadly not support color tinting due to the way the Canvas API works.
Mario Alpha tinting is supported, but color tinting is not I'm afraid, and there's simply no work-around for this with the Canvas API.
lzy100w But in spineboy project did not use color tint just use alpha。After exporting No alpha changes in the spine-canvas How to make a fade out effect in the spine-canvas
Mario Please make sure you are using the latest spine-ts canvas source from the 3.6 or 3.7-beta branches. Here's the relevant code that at least enables alpha tinting per attachment: spine-runtimes/SkeletonRenderer.ts at 3.6
lzy100w I used the latest version I found the problem If I set triangleRendering true ,alpha effect will invalid code: skeletonRenderer.triangleRendering = true If I set triangleRendering false,I will see alpha effect This is a demo to see the problem: http://zyleague.com/sites/lspine.html
Mario Ah, yes. Please note that triangle rendering (and hence mesh support) is EXTREMELY experimental. It will (and is) broken in quite a few browser versions and there is no way to fix it. I have implemented alpha tinting for triangle rendering. Please update your clone of the 3.6 or 3.7-beta branch.
lzy100w thank you very much。 I am using triangle rendering in my project now I use repeated rendering to solve the problem of broken code:canvas.getContext("2d").drawImage(canvas,0,0) broken problems may be solved by using bitmap filters.
Mario I have experimented with filters when I implemented the renderer back in the day. I could not find a combination that works reliably in all browsers across platform and versions. If you use this in production, please be aware that we won't be able to fix any rendering issues you encounter.