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.
How can I add an easer in “sketch.py” in Example?
-
@mikael ok, agree. But small questions imply short answers 😀 And, of course, we're ready to help more during a project.
-
@satsuki.kojima you could try this (a very little) modified MySketch.py
-
@cvp, aa, a white, fatter path, of course.
-
@mikael ok, next button = line width 😀
-
to :@cvp
Thank you, it helps a lot. I may borrow your color palette to my app as well. -
@satsuki.kojima said:
your color palette
Not mine, old sample from, I think, Pythonista 's creator (or I even forgot I did it, very old brain)
-
@satsuki.kojima for the fun, MySketch.py modified for width (idea of @mikael )
-
Small modif of gist to 'show' white color in slider
-
to:@cvp
Yeah.... I finally decided my eraser to set the line_width to 20 while the default pen to 2.
I’m building a game “4 numbers”, which is to guess 4 randomly given numbers by hints of hits and blows. I wanted to add a sketch board so the players can scribble their process of guessing.By the way, I actually took for a while to fix my problem even though your advise was very clear. My sketch board showed some odd behavior. I finally found it was because I was writing my program adding subview of path_view before image_view like as below.
iv = ui.ImageView(frame=(0, 0, width, height)) pv = PathView(frame=self.bounds) pv.action = self.path_action pv.main = self self.add_subview(pv). [ <- shoud be after self.add_subview(iv)] self.add_subview(iv)
-