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.


    XOR ON A CANVAS

    Pythonista
    2
    2
    1324
    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.
    • SteveK2216
      SteveK2216 last edited by

      Is there any way, on a canvas, to draw and move one vector over another vector leaving the "lower" vector intact?
      I've tried lots of combinations of the "canvas.blends", but none seem to work.

      Think like moving a cross-hair cursor over a drawn object without distroying (or having to redraw) the object.

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

        If you are using scene module, that's what Layers are for. i think you can do similar things in the ui module, if you set bg color=None.

        If you are really wanting to draw around on the console, you might be better off saving the "background" as an image, the redrawing that image every time. You could use ui.Image and ui.Path to accomplish that, if you are generating in the fly.

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