Ricky Posted April 14, 2021 Share Posted April 14, 2021 Dears all, i've develop a slot with the winline animations, my main problem right now is related to the style. So, i'm showing flat winlines but i would like to add some gradient (not texture). this.lines[lineNumber].clear(); this.lines[lineNumber].beginFill(); this.lines[lineNumber].lineStyle({ width: this.data.uiConfigVO.winLineWidth, color: color, join: 'round', cap: 'round', // texture: PIXI.Texture.fromImage('assets/images/winline-test.png'), }); this.lines[lineNumber].lineStyle.cap = 'round'; this.lines[lineNumber].moveTo(line[0][0], line[0][1]); for (let j = 1; j < totalPoints; j++) { this.lines[lineNumber].lineTo(line[j][0], line[j][1]); } this.lines[lineNumber].endFill(); there's no way to add gradient to fillstyle or something like this? TIA Rick Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted April 14, 2021 Share Posted April 14, 2021 People usually use SimpleRope for that Ricky 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.