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.


    Theme affecting Canvas

    Pythonista
    canvas theme 2.0update background
    1
    2
    2576
    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.
    • ExParrot
      ExParrot last edited by

      The background color from my Theme (UI color scheme), for which I prefer black, is inherited by canvas, which had defaulted to white. So now I have to do everything in inverted video (by triple/tapping my iPhone's home button)! Is this a bug? Must drawing start by explicitly filling the canvas with white?

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

        Note to self (and others so afflicted)—
        Starting with this seemed to fix it:
        set_fill_color(1.0,1.0,1.0)
        fill_rect(0,0,scrSize[0],scrSize[1])

        where i've done this at global scope:
        scrSize=(1136,640) # iPhone 5
        set_size(*scrSize) # min 16, max 2048

        (my canvas is meant for landscape viewing)

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