2015-07-11, post № 45
programming, Pygame, Python, #7, #7-segment, #7 segments, #black, #clock, #current time, #green, #green and black, #numerals, #pixel, #pixels, #seven, #time
Inspired by a 7-segment clock I previously made a 7-segment font (used in Jong). I thought of an idea to make this simple way of displaying our ten numerals more interesting. I came up with this clock.
It uses a number of pixels, which get every second a new destination to the position that would form needed numeral. Because they always try to move to their destination — needing time to get there —, a reordering-effect occurs.
2015-07-05, post № 44
art, programming, Pygame, Python, #around the center, #art, #artistic, #background, #black, #bright, #color, #color change, #colorful, #colors, #creating, #different colors, #draw, #drawing, #fancy, #gradient, #mouse, #neat, #pictures, #saving
This is more of an artistic program. By left-clicking you set a fix point and define a random color. Where you then move your mouse, the program will draw 𝟣𝟢𝟢 circles in between the fix point and the cursor position. By right-clicking you save those 𝟣𝟢𝟢 circles on the canvas. Holding the right mouse button is possible.
Controls
- Left clicking sets or removes a fix point,
- Right clicking saves current circles on canvas,
- ‘s’ saves current canvas,
- ‘c’ clears current canvas.
2015-07-04, post № 43
programming, Pygame, Python, #angle, #angles, #around, #around the center, #entities, #entity, #getCirclePos(...), #red, #spinning, #turning
Playing around with angles and my getCirclePos()
function, I came up with these little entities. They have a center, a distance to that center and an angle which constantly increases. Those parameters also randomly change.
2015-06-28, post № 42
mathematics, programming, Pygame, Python, #generates, #generator, #prime, #prime generator, #prime layout, #prime numbers, #prime pattern, #prime patterns, #primes, #red, #white
Being fascinated with how prime spirals look, I tried another layout for primes. Starting at the upper left and writing out numbers like a normal text, starting at 𝟢 and coloring every prime number red, every other number white, this is the result.
It is interesting, that — like in prime spirals — the red squares form visible patterns. Randomly assigned squares would not as often form such patterns.
2015-06-27, post № 41
programming, Pygame, Python, #around, #bubbles, #circle, #colors, #fancy, #getCirclePos(), #gray, #gray tones, #red, #smoke
This program falls into the category ‘fancy, but not useful’. It basically starts with one circle, which spawns in new ones. The maximum number of circles is 𝟣𝟢𝟢, their color is a gray tone (rgb
between 𝟧𝟢 and 𝟣𝟢𝟢).
2015-06-21, post № 40
programming, Pygame, Python, #black, #dynamic, #file, #file check, #file system, #files, #filesystem, #fs, #red
Improving my first version — FS Letters — I changed a core behavior. Instead of going through the whole file system, saving it, interpreting it and then displaying it, I now went for a dynamic approach. As the filesystem gets checked (𝟨𝟢 times per second), the screen is also updating. This makes for both a more efficient (no freeze!) and a much nicer program. If the program is done checking the file system, the text ‘done’ will appear in the screen’s caption.
2015-06-20, post № 39
games, programming, Pygame, Python, #apples, #simple, #simple snake, #snake, #snake game, #snakes, #video game
Continuing to clone famous and fairly easy games, I now made my own version of Snake.
In this version you cannot leave the screen, there are never more than three apples on the screen and there are no blocks inside the field.
Your current score is displayed in the screen caption.
To get more information about Snake, check this Wikipedia entry.
Controls
- Arrow keys move the snake,
- Escape pauses and unpauses the game,
- ‘r’ resets the game.
2015-06-14, post № 38
art, #adventure, #burn, #dig, #digger, #digging, #exploration, #failed mission, #fire, #hot, #lava, #pixel, #pixel friend, #pixel guy, #straight tunnel, #tunneling, #tunnelling
Being curious of the world underneath his feet, our little pixel friend started an exploration. Who knew what torrid situation he could get in to…
Posts:
293-286, 285-278, 277-270, 269-262, 261-254, 253-246, 245-238, 237-230, 229-222, 221-214, 213-206, 205-198, 197-190, 189-182, 181-174, 173-166, 165-158, 157-150, 149-142, 141-134, 133-126, 125-118, 117-110, 109-102, 101-94, 93-86, 85-78, 77-70, 69-62, 61-54, 53-46, 45-38, 37-30, 29-22, 21-14, 13-6, 5-1Jonathan Frech's blog; built 2024/12/19 23:13:08 CET