truth-digger Posted May 7, 2017 Share Posted May 7, 2017 Hi, how set color for sprite2D (texture color) ? (sample http://www.babylonjs-playground.com/#8F4D1#1) Quote Link to comment Share on other sites More sharing options...
Wingnut Posted May 8, 2017 Share Posted May 8, 2017 Hi, TD, welcome to the forum. That is a single Sprite2d primitive, which uses a texture/picture - Only change color of picture... in a paint program. Perhaps I mis-understood the question. Please tell more? Thx. You CAN make this "thing" dynamically, with code, using various Canvas2D "primitives" such as Shape2D, Rectangle2D, Sprite2D, etc. This "thing" could be built with 3-4 primitives, laid atop each other. IF you built it THAT way, THEN you would get full color-adjusting for all three primitives AND their borders. It would take a little work. Perhaps we can run a little contest. We give away MASSIVE applause to first person to create THAT sprite2D "thing"... but use three primitives inside a Group2d (build it dynamically... from multiple Canvas2d pieces). Yellow circle might still need to be image/texture (a Sprite2D), on transparent background. The two "boxes" could EASILY be done with Rectangle2D. Contestants ready?... 3-2-1... GO! heh. 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.