2015-12-19, post № 91
mathematics, programming, Python, #approximating, #approximation, #circle, #circle constant, #constant, #Euler, #infinite, #infinite sum, #pi, #sum
Using an infinite series shown by Euler, 𝜋 can be approximated.
The series goes as follows:
By rearranging the equation, you get the following:
2015-12-13, post № 90
art, #Advent, #animated, #animated gif, #animation, #gif, #pixel candle, #pixel guy, #third, #third candle, #third Sunday, #third Sunday in Advent, #third Sunday of Advent
Lighting the third candle…
2015-12-12, post № 89
mathematics, programming, Pygame, Python, #colorful, #complex, #fractal, #f_c(z) = z^2 + c, #imaginary, #iterating, #iteration, #Mandelbrot, #repeating, #self-repeathing, #set
Working with complex numbers and iterating the function , I created this program which lets you explore the depth of this self-repeating fractal. The different colors are caused by different color schemes.
Controls
- Left mouse click and mouse movements control the zoom frame,
- Middle mouse click zooms in,
- ‘Space’ takes a screenshot,
- ‘F1’ moves a zoom back,
- ‘F2’ zooms to default zoom.
2015-12-06, post № 88
art, #Advent, #animated, #animated gif, #animation, #candle, #gif, #pixel candle, #pixel guy, #second, #second Advent, #second candle, #second Sunday, #second Sunday in Advent, #second Sunday of Advent, #Sunday
Lighting the second candle…
2015-12-05, post № 87
games, programming, Pygame, Python, #advanced, #c't, #c't-Racetrack, #car, #car race, #race, #racetrack, #vertrac't
Since the 30th of November 2015 the contest is over. The code is now visible in my post c’t-Racetrack. In this time I improved my program and added a semi-working collision detection (unfortunately it does not cover every case), a helper function (will not allow you to make an invalid move) and an additional view mode (lets you only see the car’s path).
Controls
- Mouse movement changes the new acceleration vector applied in the next step,
- Left click moves one step,
- Right click is a undo for the latest move,
- Middle click moves the frame,
- ‘F1’ toggles view mode,
- ‘F2’ takes a screenshot,
- ‘F3’ exports current moves,
- ‘F4’ resets the game,
- ‘h’ toggles helper.
2015-11-29, post № 86
art, #Advent, #animated, #animated gif, #candle, #first, #first Advent, #first candle, #first of Advent, #first Sunday, #first Sunday in Advent, #first Sunday of Advent, #gif, #pixel, #pixel candle, #pixel guy, #Sunday
Lighting the first candle…
2015-11-28, post № 85
programming, Python, #sleep, #snore, #time, #time.sleep(), #z
Taking time.sleep()
to the next level.
2015-11-22, post № 84
programming, Pygame, Python, #background, #bubbles, #color, #gfx, #pygame.gfxdraw()
Playing around with pygame.gfxdraw()
, I created this program, which just draws some bubbles on the screen.
Posts:
291-284, 283-276, 275-268, 267-260, 259-252, 251-244, 243-236, 235-228, 227-220, 219-212, 211-204, 203-196, 195-188, 187-180, 179-172, 171-164, 163-156, 155-148, 147-140, 139-132, 131-124, 123-116, 115-108, 107-100, 99-92, 91-84, 83-76, 75-68, 67-60, 59-52, 51-44, 43-36, 35-28, 27-20, 19-12, 11-4, 3-1Jonathan Frech's blog; built 2024/10/27 23:46:30 CET