omz:forum

    • Register
    • Login
    • Search
    • Recent
    • Popular
    1. Home
    2. Bumbo Cactoni
    3. Topics

    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.


    • Profile
    • Following 1
    • Followers 0
    • Topics 10
    • Posts 47
    • Best 4
    • Controversial 0
    • Groups 0

    Topics created by Bumbo Cactoni

    • Bumbo Cactoni

      Scene help
      Pythonista • • Bumbo Cactoni

      4
      0
      Votes
      4
      Posts
      1776
      Views

      enceladus

      https://github.com/encela95dus/ios_pythonista_examples contains some scene examples including the game pong
      (look at the scene section of the readme ).

      From readme:

      scene examples
      animation examples in examples directory
      games examples in examples directory
      basic_nodes.py
      change_attributes.py
      change_positions.py
      update_example.py
      scene_action1,2,3
      textanimation.py
      textanimation_wayy.py
      scene_viewexample.py - scene embedded in a view
      digital_watch.py, stop_watch.py - more examples on update
      action_based_timer.py
      animations from forum
      planet motion https://forum.omz-software.com/topic/3754/show-all-scene-child-nodes
      pendulum motion https://forum.omz-software.com/topic/3312/labelsprite-rotate_by-problem
      https://forum.omz-software.com/topic/4284/how-do-i-make-a-full-screen-button-and-handle-button-down-and-button-up-events/6
      games from forum
      pong https://forum.omz-software.com/topic/3367/drawing-with-pythonistas-modules
      cards https://forum.omz-software.com/topic/4856/can-someone-turn-this-script-into-a-node-tutorial-please
      word game https://forum.omz-software.com/topic/4790/boggle-app-need-help-changing-labels-3x-in-a-function/9
      shader
      shader_example1.py - basic example to run shaders
      template_shadertoy.py - template to run shadertoy examples
      https://www.shadertoy.com/ contains a large collection of shader examples
      from forum
      an introductory online book on shaders to learn shaders
      https://thebookofshaders.com/
      https://forum.omz-software.com/topic/3274/fast-color-change-animation-of-a-shape

    • Bumbo Cactoni

      OS testing
      Pythonista • • Bumbo Cactoni

      9
      0
      Votes
      9
      Posts
      3384
      Views

      Bumbo Cactoni

      @JonB
      Thank you!

    • Bumbo Cactoni

      Button thing?
      Pythonista • • Bumbo Cactoni

      3
      0
      Votes
      3
      Posts
      1509
      Views

      Bumbo Cactoni

      @cvp
      That was exactly what I needed!
      Thank you!

    • Bumbo Cactoni

      Input buttons
      Pythonista • • Bumbo Cactoni

      8
      0
      Votes
      8
      Posts
      2521
      Views

      mikael

      @cvp, no worries! If you said something nasty, I would know someone had hijacked your user account.

    • Bumbo Cactoni

      Sound module
      Pythonista • • Bumbo Cactoni

      4
      0
      Votes
      4
      Posts
      1474
      Views

      Bumbo Cactoni

      @stephen
      @JonB
      Thanks! I appreciate the answers!

    • Bumbo Cactoni

      Colored text
      Pythonista • • Bumbo Cactoni

      9
      0
      Votes
      9
      Posts
      3146
      Views

      mikael

      @Bumbo-Cactoni, to point out the obvious, just in case, if all you want is colored text in the Pythonista console, you can use the relevant bit of @cvp’s code, skip all the ANSI mush, and just use Pythonista’s color names or the color picker.

    • Bumbo Cactoni

      Scene Help
      Pythonista • scenemodule • • Bumbo Cactoni

      4
      0
      Votes
      4
      Posts
      1426
      Views

      mikael

      @Bumbo-Cactoni, just for fun, the ui version. Although, for more complex animations, again recommend scripter.

      import ui class Circle(ui.View): @property def diameter(self): return self.width @diameter.setter def diameter(self, value): self.width = self.height = value self.corner_radius = value/2 if __name__ == '__main__': v = ui.View() c = Circle( diameter=200, border_color='yellow', border_width=2, center=v.bounds.center(), flex='TLRB', ) v.add_subview(c) v.present('fullscreen') def animate(): c.center = (100,100) c.diameter = 100 ui.animate(animate, 3.0)
    • Bumbo Cactoni

      Text display help
      Pythonista • • Bumbo Cactoni

      24
      0
      Votes
      24
      Posts
      7226
      Views

      mikael

      @Bumbo-Cactoni, to explain the obscure part:

      View v is by default initially sized at 100 x 100 pixels So placing the button center at (50, 50) means it is in the center of the view at this point Then, because the flex is set to ”Right Top Left Bottom”, i.e. all sides, they will scale with the view, effectively keeping the button in center when the view is presented and scaled to fill the screen And it will continue to stay in the center if you e.g. rotate the device

      I think the initial size 100 x 100 was chosen at least partly so that if you want, you can think the locations of subviews as percentages.

    • Bumbo Cactoni

      Help! I need help thinking of python projects I can do.
      Pythonista • • Bumbo Cactoni

      35
      0
      Votes
      35
      Posts
      10929
      Views

      Bumbo Cactoni

      @ccc
      Thanks for the link, and @mikael I don’t even know what I want to make happen. I’m probably going to read through some of the tutorial, so I can figure out something cool that would match the calendar I’m trying to design. I’ll get back to you in a lil bit.