In this post, I’m sharing a complete Python program that draws various geometric shapes on screen with given parameters (e.g. side length, radius, height, tilt, etc.). The application is downloadable here and can be executed on a Windows device (tested on Windows 10). The download will be a ZIP file called tkinter-drawgeometricshapes.zip —copy or unzip […]
Search Results for: turtle
Drawing Graphics using Python (Turtle)
In this blog, I show you how to use draw graphics in Python. Objective: I want to draw dots (circles, really if they’re larger than a pixel)…of different sizes and colors at various locations multiple times (I chose 100X for this demo). This is how the output looks like: Source Code: The complete source is below. […]
Population, Procreation Simulation (Python)
In this post, I share my design and code for simulating some propagating organisms (you can think of them as humans, other creatures, cells, whatever you like) with certain rules. And although I have a couple of other variations of this made in C/C++ in the past, I wanted to do it in Python and […]
Simulating object’s free fall on different planets, sun, and the moon
How can we simulate a box being dropped straight from some height on Earth and graphically show the action in real-time? How will it be different on the Moon? Or on the Sun (assume it can resist the high temperature), or on other planets including dwarf planet like Pluto? Well, that was my curiousity that […]
How to get exact color values and convert them
In this post, I’ll show you how to get exact RGB colors from an image and then freely convert them to Hex, and from Hex to RGB depending on your needs, whether it’s for CSS or for your application interface. Being a 12th man of the Seattle Seahawks, I’ll naturally start with the Seahawks logo. […]
Etch-a-sketch using Pygame
In one of my past posts, I demonstrated an Etch-a-sketch program using Python’s Turtle library. In this post, I demonstrate writing a similar app using pygame library with new twists. The idea is similar…you use up/down/right/left arrow keys on your keyboard to move the drawing cursor…however, you can also press up+right to make it go […]
A random post is selected below. Click to read it; refresh the page for a new serving.
Games & Apps [by me] — all in one place
This page is a single, nifty starting point for various games I developed for desktop and mobile for intellectual curiousity and fun. They are all free, and ad-free. No cookies. No gimmicks. These will run on any modern smartphone, tablet, PC (see each description below as some are made to run on any device, and […]
Safe disposal of 6-pack rings killers
The six-pack yokes or rings are a set of connected plastic rings that are used in multi-packs of beverage and beer cans in the USA. These are discarded carelessly by most Americans and even though you might put them in recycle cans (if your city has the facility like mine does), they somehow end up […]
A Very Simple Etch A Sketch Type Program (Python)
Here’s a fun, little application using Python. In this post, I demonstrate drawing lines using just the arrow keys on the keyboard (up/down/left/right). The drawing direction is determined by the arrow key pressed as shown in the clip below: With each keypress a line is drawn in the direction of the arrow head, which is […]