2D draw pixel by pixel is impossible?
-
hello , I am trying to create some old school effects with pythonista (plasma,fire etc) but i cant draw pixel by pixel using the scene library. Someone have an idea how to do that?
-
last edited by
-
Another option would be to just use the
scene.rect
function for every pixel. Performance will probably not be good enough that you can actually draw a rectangle for every pixel on the screen (especially on a retina screen), but you could use larger squares to get a pixellated look, or just draw within a smaller area.
-
the first method is good but I don t understand how create a simple animation. Any simple example?
-
You could create multiple frames in an animated gif https://forum.omz-software.com/topic/2052/gif-art-in-python
-
yes this a work around, i would like to have a minimun of interation with what i draw... Using the first solution it' s impossible to draw it on screen ?
-
Try @omz's suggestion. That lets you draw directly to the screen.