2015-09-05, post № 61
programming, Pygame, Python, #art, #change, #filter, #filters, #image, #image filters, #image software, #img, #manipulation, #pic, #picture
Getting into image manipulation, I created a few filters to change the look and feel of digital images. Though the software is not the most efficient, the results are looking good.
For demonstration purposes I used an image from my post Stacking Stones.
This filter I call Cixel, because it combines square pixels with round circles.
Again working with circles, the Draw filter tries to imitate a drawn picture.
The Drawing filter applied
Using lines and a fixed point, thed Stretch filter stretches the image to the lower right corner.
2015-08-30, post № 60
art, programming, Pygame, Python, #black, #black and white, #draw, #line, #pseudo random, #random, #white
Starting at the screen’s center, this program draws randomly long lines in a random direction. The lines cannot leave the screen.
2015-08-29, post № 59
programming, Pygame, Python, #aa, #antialiased, #black, #circles, #color, #colors, #different colors, #fade, #fading, #gfx, #gradient, #graphics, #onion, #pygame.gfxdraw()
Using the extended pygame graphics function pygame.gfxdraw
, this program creates randomly colored trippy circles. There are 𝟣𝟢𝟢 circles, which get redrawn every 𝟣𝟢𝟢 ticks (~ 𝟣.𝟨 seconds).
2015-08-23, post № 58
art, #pile, #rock, #stack
Driven by pure boredom, I started picking up some stones near a lake and tried to stack them on top of each other. I thought, they looked kind of cool — these are my favourite ones.
2015-08-22, post № 57
programming, Python, #address, #com, #domain, #page, #pseudo random, #random, #rrl, #url, #web, #webpage, #webserver, #websize
I once heard that every domain containing three letters of the alphabet and ending with ‘.com’ was assigned to some web server. This would mean, all 𝟣𝟩𝟧𝟩𝟨 domains were used.
To test it, I wrote this little Python program.
Usage
- To use it, simply press enter to open a random page. Because you often will get redirected, the program will print out the url on the screen.
2015-08-16, post № 56
games, programming, Pygame, Python, #asteroid, #asteroids, #black, #black and white, #comet, #missle, #random rocks, #rock, #rocket, #rocks, #space, #space craft, #space game, #space ship, #white
This game is my interpretation of the all-time classic arcade game Asteroids. Although it plays a little differently, it has all the components of the original game. The rocks are stationary, but — if destroyed — split into two smaller pieces. You can either destroy the rocks via missles or by just flying right into them.
Controls
- Left arrow key tilts the space craft to the left,
- Right arrow key tilts the space craft to the right,
- Up arrow key propels the space craft,
- ‘Space’ launches a missle.
2015-08-15, post № 55
games, programming, Pygame, Python, #4, #connect, #connecting, #detection, #four, #four in a row, #game, #IV, #mouse control, #red, #win, #win detection, #yellow
After having programmed Jic-Jac-Joe — where you need to connect three pieces —, I now programmed Connect Four (four pieces).
This version — although it does not have a computer player — includes win detection.
Controls
- Left-clicking puts your piece where the mouse cursor is positioned,
- ‘Escape’ restarts the game.
2015-08-09, post № 54
programming, Pygame, Python, #black, #Caesar cipher, #Caesar's cipher, #cipher, #code, #coding, #crypt, #cypher, #decrypt, #decryption, #encoder, #encoding, #encryption, #hidden, #key, #message, #private, #secret, #secret message, #unbreakable
This program lets you write a short line and encrypt it using Caesar’s Cipher. It shows the two prior and next rotations, as well as the current encryption key.
Usage
- Normal letters let you type text,
- ‘Backspace’ lets you delete the last letter,
- ‘Tab’ sets the encryption key to zero,
- ‘Escape’ toggles if key and other rotations are shown,
- ‘Return’ toggles if special characters (characters that are not contained in the standard alphabet) are displayed,
- Up arrow rotates up (encryption key decreases),
- Down arrow rotates down (encryption key increases).
Posts:
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/04/13 20:55:09 CEST