added new script and files

This commit is contained in:
2021-07-30 15:22:49 +02:00
parent 7f9d60ac51
commit 3721ad746d
30 changed files with 11210 additions and 0 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+96
View File
@@ -0,0 +1,96 @@
+#######################################+
# #
# C&C: Red Alert [Internet] (TrueType) #
# Version 1.002 #
# Built 2008-02-06 #
# #
# Created by N3tRunn3r #
# #
+#######################################+
+###############+
# #
# INFORMATIONS #
# #
+###############+
Do you know the fonts of the Command & Conquer classics such as C&C: Red Alert?
My plans were to firstly re-create these fonts for a personal use, for my C&C website and later for the C&C community.
Today I want to provide you with these fonts!
My "C&C: Red Alert [Internet] (TrueType)" font is a minifont or also called as a pixelfont.
Pixelfonts are very small but in a way amazingly beautiful looking and fascinating fonts.
These kind of fonts are mostly best by using them in sizes between 8pt and 12pt.
It depends by their developer's thoughts and usage.
I personally commend using my C&C: Red Alert fonts in a size of 10pt!
This size is also the original one which is used within Command & Conquer and C&C: Red Alert.
This "C&C: Red Alert [Internet] (TrueType)" font is that one being used inside the C&C: Red Alert Internet lobby.
Some character additions and updates to my fonts were done as well.
Please notice that a lot of signs, symbols, and special characters are still missing, but will be added in future.
+#######################+
# #
# HOW-TO INSTALL #
# #
+#######################+
1.) Extract "C&C Red Alert [INET].ttf" out of this ZIP file, preferred is onto your Desktop
2.) Right-click this ttf-file and select "Install"
3.) Windows is now going to install this font on your machine
+###############+
# #
# DISCLAIMER #
# #
+###############+
MY C&C: RED ALERT FONTS ARE 100% FREEWARE AND SO ABSOLUTELY FREE-TO-USE FOR YOUR PERSONAL AND/OR COMMERCIAL USE!!
IF YOU RUN A FONT-RELATED WEBSITE AND WOULD LIKE TO OFFER MY FONTS THERE, GO RIGHT AHEAD!!
KEEP THIS README.TXT FILE WITH MY SPECIFIC FONTS INTACT TO PROVE THEIR ORIGINAL EXTRACTION!!
YOU ARE "NOT" ALLOWED TO SELL AND/OR DISTRIBUTE MY FONTS FOR PROFIT!!
YOU ARE "NOT" ALLOWED TO ALTER AND/OR MODIFY MY FONTS AND THEIR SOURCE CODES!!
YOU ARE "NOT" ALLOWED TO CLAIM THE FONT'S EXTRACTION!!
THESE FONTS WERE CREATED BY N3TRUNN3R
+#######################+
# #
# ADDITIONAL INFO #
# #
+#######################+
If you like to know some latest news about my fonts and/or have any questions about them, so contact me at:
n3trunn3r@hotmail.de
My website is currently offline and under maintenance. It will go back online in future.
Command & Conquer and Command & Conquer: Red Alert are still popular RTS games, developed by Westwood.
Both games were released in year 1995 and 1996.
Are you interested into playing the C&C classics online? Visit:
www.CNC-COMM.com
www.CNCNET.org
and
www.CNC-ONLINE.net
Have fun, and that's an order! :)
BEST REGARDS,
N3
Binary file not shown.
Binary file not shown.
+11014
View File
File diff suppressed because it is too large Load Diff
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.
BIN
View File
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 72 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 93 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 569 KiB

BIN
View File
Binary file not shown.
Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 32 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 69 KiB

BIN
View File
Binary file not shown.

After

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 461 B

+100
View File
@@ -0,0 +1,100 @@
#! /usr/bin/python3
# -*- coding: utf8 -*-
# load needed modules from luma
from luma.core.interface.serial import i2c, spi
from luma.core.render import canvas
from luma.oled.device import sh1106
from luma.core import lib
from luma.core.virtual import terminal
# load needed modules from RPi.GPIO
import RPi.GPIO as GPIO
# load needed modules from PIL
from PIL import ImageFont, ImageDraw, Image
# load more needed modules
import time
import sys
# load randommodules
from random import randint, gauss
from pathlib import Path
#GPIO define pins
RST_PIN = 25 #Reset
CS_PIN = 8
DC_PIN = 24
serial = spi(device=0, port=0, bus_speed_hz = 8000000, transfer_size = 4096, gpio_DC = DC_PIN, gpio_RST = RST_PIN)
device = sh1106(serial, rotate=2) #sh1106
def make_font(name, size):
font_path = str(Path(__file__).resolve().parent.joinpath('fonts', name))
return ImageFont.truetype(font_path, size)
def main():
while True:
for fontname, size in [(None, None), ("tiny.ttf", 6), ("ProggyTiny.ttf", 16), ("creep.bdf", 16), ("miscfs_.ttf", 12), ("FreePixel.ttf", 12), ('ChiKareGo.ttf', 16)]:
font = make_font(fontname, size) if fontname else None
term = terminal(device, font)
term.println("Terminal mode demo")
term.println("------------------")
term.println("Uses any font to output text using a number of different print methods.")
term.println()
time.sleep(2)
term.println("The '{0}' font supports a terminal size of {1}x{2} characters.".format(fontname, term.width, term.height))
term.println()
time.sleep(2)
term.println("An animation effect is defaulted to give the appearance of spooling to a teletype device.")
term.println()
time.sleep(2)
term.println("".join(chr(i) for i in range(32, 127)))
time.sleep(2)
term.clear()
for i in range(30):
term.println("Line {0:03d}".format(i))
term.animate = False
time.sleep(2)
term.clear()
term.println("Progress bar")
term.println("------------")
for mill in range(0, 10001, 25):
term.puts("\rPercent: {0:0.1f} %".format(mill / 100.0))
term.flush()
time.sleep(2)
term.clear()
term.puts("Backspace test.")
term.flush()
time.sleep(2)
for _ in range(17):
term.backspace()
time.sleep(0.2)
time.sleep(2)
term.clear()
term.animate = True
term.println("Tabs test")
term.println("|...|...|...|...|...|")
term.println("1\t2\t4\t11")
term.println("992\t43\t9\t12")
term.println("\t3\t99\t1")
term.flush()
time.sleep(2)
if __name__ == "__main__":
try:
main()
except KeyboardInterrupt:
pass
GPIO.cleanup()