jblog
toc

Halloween

2015-10-31, post № 77

art, #animated, #animated gif, #animation, #gif, #Halloween, #pixel, #pumpkin, #scary, #spooky

This gif is dedicated to the year’s scariest date, Halloween.

halloween.gif

Spiral

2015-10-25, post № 76

programming, Pygame, Python, #around the center, #black, #black hole, #emission, #galaxy, #particles, #red, #Slow Mo Guys, #slow motion, #spin, #spinning

Inspired by a recent Slow Mo Guys video, I wrote a simulation for the shown effect. I think it looks pretty neat…

Controls

  • Up arrow increases the number of emitted particles,
  • Down arrow decreases the number of emitted particles,
  • ‘Space’ saves a screenshot.
spiral-1.png
spiral-2.png
spiral-3.png
Source code: spiral.py

𝑒 Generator

2015-10-24, post № 75

mathematics, programming, Python, #(1+1/n)^n, #approx., #approximation, #constant, #e, #Euler

By using the formula \big(1+\frac{1}{n}\big)^n for a big number 𝑛, you can approximate the mathematical constant 𝑒.

e-generator.png
Source code: e-generator.py
Jonathan Frech's blog; built 2021/04/16 20:21:20 CEST