python - How to dynamically create texture from set of widgets in Kivy? -
I have a square layout with many set widgets. The set of widget presents the blank widget with a colored background (I draw it with the protoplasts) and one or more labels, so the set is 2 or more. I independently animate each set (such as 2048 -Game, if you know) For now, I have to clean the canvas and have to look out my background for each frame. If 4 × 4 sets are ok then, but if 7 × 7 or greater, then it is very much taken. So it seems that it would be better to create just one texture from each set and only animate it (as I have not deleted it unless I change its contents). How can I do this and it is possible? And is it better than my idea?
I do not understand many of your questions, but what you really want is your graphic instructions And their status changes, instead of removing them and reducing each frame, it will be at very fast speed, and there is a suitable way of updating graphics.
For example:
with self.canvas: rect = rectangle (pos = (0, 0), size = (10, 10)) rect.pos = (50, 50)
Instead of removing it very efficiently, the status of the reset varies.
Comments
Post a Comment