I need to add a shadow to my navigation drawer implementation, I see that a Pixel can be created with a gradient but it's not clear to me how it is intended to be used. Could anybody shine some light on this?
I'm back to this issue and Pixel doesn't allow setting a relative alpha amount after setting the alpha for the corners. So Pixel:setAlpha() doesn't do anything. It also doesn't follow the alpha channel of the parent.
Can I draw it offscreen and create a Texture from it?
Yes, that's what I have done, but I want to tween the first alpha when opening/closing with fling gestures or with open/close methods. For just manual dragging that would work fine.
Looks like a gideros bug to me, Pixel should have honored setAlpha() setting. It looks like the shader doesn't multiply gradient color by constant color multiplier. Those color shaders are only used by Mesh (when supplying a color array) and Pixel (when using gradient), so maybe this bug wasn't noticed before.
Try replacing the default shader and see if it helps:
Yes, that's it - thanks for that! And my skill of finding at least one bug in mature products within days remains strong! With the new shader I can set the alpha channel of the Pixel and it respects changes in the alpha channel of the parent.
Speaking of shadows and shaders, where would the best resource be for seeing how to implement a diffuser (or whatever is best) for diffusing grey/black rects for general pop up/UI shadows? To implement this..
I believe that development a widget with the concept Material Design, It could be a great feature for Gideros about all in business, social or educational app development.
Honestly, I think about it, but currently I haven't wrote some code for Material Design yet maybe when I finished some projects I'll take this matter.
Comments
Can I draw it offscreen and create a Texture from it?
Is this gradient supposed to be a rectangle?
It looks like the shader doesn't multiply gradient color by constant color multiplier.
Those color shaders are only used by Mesh (when supplying a color array) and Pixel (when using gradient), so maybe this bug wasn't noticed before.
Try replacing the default shader and see if it helps:
Likes: antix
Dislikes: dreiko65
Speaking of shadows and shaders, where would the best resource be for seeing how to implement a diffuser (or whatever is best) for diffusing grey/black rects for general pop up/UI shadows? To implement this..
https://material.io/guidelines/material-design/elevation-shadows.html#elevation-shadows-shadows
... which would be easy with CSS...
https://css-tricks.com/snippets/css/css-box-shadow/
,,, ?
I believe that development a widget with the concept Material Design, It could be a great feature for Gideros about all in business, social or educational app development.
Honestly, I think about it, but currently I haven't wrote some code for Material Design yet maybe when I finished some projects I'll take this matter.
[-] Liasoft