Tags » PyGame

Koch Snowflake

In my collection of programs generating fractals this famous one cannot miss.
The Koch snowflake is generated by starting with an equilateral triangle. Every side of the triangle then gets cut into three equal pieces and the center one gets replaced with yet another equilateral triangle. 999 more words


Sliding Puzzle

This is my version of a sliding puzzle.
A sliding puzzle is based on a number of tiles (15 in this case) which are scrambled. 828 more words


Making a Python 2D game using Pygame Tutorial #1

Python is a great way to make video games quickly and we can easily find information online.  In this tutorial we’re going to learn how to code in… 716 more words


Pascal's Triangle

Pascal’s triangle is an interesting mathematical sequence. It is often written as a triangle, starting with , then . To generate the next row, you add the two numbers above to form another one. 507 more words


RGB Color Cube

Listing the red part on the x-axis, the green part on the y-axis and the blue part on the z-axis, this program displays all the 16777216¹ colors rgb can display. 346 more words


J-Filters V

This filter runs an edge detection algorithm on a given image.
For demonstration I used – as in my previous filter posts – an image from my post… 454 more words


PiDojo- Controlling A Robot From The Keyboard Using Pygame

We had another enjoyable session this week, we especially enjoyed the drone demo by Chris Tierney. We began by looking at using input from our keyboard with Pygame to control our robot. 106 more words