omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular

    Welcome!

    This is the community forum for my apps Pythonista and Editorial.

    For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.


    2D draw pixel by pixel is impossible?

    Pythonista
    3
    7
    3078
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • xan273
      xan273 last edited by

      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?

      1 Reply Last reply Reply Quote 0
      • ccc
        ccc last edited by

        https://forum.omz-software.com/topic/500/what-is-the-best-way-to-plot-pixel-by-pixel

        1 Reply Last reply Reply Quote 1
        • omz
          omz 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.

          1 Reply Last reply Reply Quote 0
          • xan273
            xan273 last edited by

            the first method is good but I don t understand how create a simple animation. Any simple example?

            1 Reply Last reply Reply Quote 0
            • ccc
              ccc last edited by

              You could create multiple frames in an animated gif https://forum.omz-software.com/topic/2052/gif-art-in-python

              1 Reply Last reply Reply Quote 0
              • xan273
                xan273 last edited by

                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 ?

                1 Reply Last reply Reply Quote 0
                • ccc
                  ccc last edited by

                  Try @omz's suggestion. That lets you draw directly to the screen.

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post
                  Powered by NodeBB Forums | Contributors