Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 25834

For questions related to graphical animations. This includes, but is not limited to sliding, tweening, rotating and resizing of shapes.

2 votes

Active Brownian Motion

Coordinates as a matrix This: x_co = [np.random.uniform(0, 2) for i in range(n_particles)] y_co = [np.random.uniform(0, 2) for i in range(n_particles)] return x_co, y_co is a little baffling. You cal …
Reinderien's user avatar
  • 65.2k
2 votes
Accepted

Simple rainfall animation in Pygame

Typo assests -> assets Generator self. animation = iter([ pygame.image.load('assests/splatter_1.png'), pygame.image.load('assests/splatter_2.png'), pygame.image.load('assests …
Reinderien's user avatar
  • 65.2k
1 vote
Accepted

Trouble with rendering speed of the animation of a simulation?

The biggest factor causing apparent slowness is that you've not overridden the default interval=, so the animation appears choppy. … artists = [mv.plt for mv in movers] ani = FuncAnimation(fig=fig, func=animate, init_func=init, blit=True, interval=10) plt.show() if __name__ == '__main__': main() A different style of animation
Reinderien's user avatar
  • 65.2k
3 votes
Accepted

Dynamical system animation framework

Ownership This: // NOTE: The Animation object is responsible for the DELETION of the // GraphicsWindow object, the Visualisation object and the DynamicalSystem // object. … // Animation::~Animation() { delete ptrWindow_; delete ptrVisualisation_; delete ptrSystem_; sets off alarm bells. …
Reinderien's user avatar
  • 65.2k
6 votes

Maze generator in Python- Gif animator-Custom colors/sizes

Type hints row_index, column_index, rows, columns I can guess that these are all int based on the docs. But adding :int (etc) will help, here. Variable reuse north = self.row - 1, self.column …
Reinderien's user avatar
  • 65.2k
3 votes

Animating Lissajous curves with Python and matplotlib's animation library

For demonstration purposes I disregard the .gif generation, and especially disregard Jupyter. Notebooks tend to produce a scope swamp. System parameters? Throw them in the swamp. Loops, matplotlib art …
Reinderien's user avatar
  • 65.2k
3 votes

Maze image solver and animator in Python

Type hints The parameters to your MazeSolver.__init__ should get type hints, particularly for things that don't have defaults. For instance, maze_path: str. Separate input You shouldn't be calling …
Reinderien's user avatar
  • 65.2k
1 vote

Frame Pacing and Animation in Python/tkinter

self.on_timer) # start the game loop self.window.mainloop() # Start the GUI @property def ball_count(self) -> int: return len(self.balls) def on_timer(self) -> None: # An animation
Reinderien's user avatar
  • 65.2k