all other gifs and minor changes for working (DVD Logo)
BIN
other/Chaser.gif
Normal file
|
After Width: | Height: | Size: 150 KiB |
BIN
other/Clusters.gif
Normal file
|
After Width: | Height: | Size: 45 MiB |
BIN
other/DVD Logo/2019-12-10_02-09-00.gif
Normal file
|
After Width: | Height: | Size: 150 KiB |
@@ -2,7 +2,7 @@ from random import choice, randint
|
|||||||
import sys, os
|
import sys, os
|
||||||
|
|
||||||
def setup():
|
def setup():
|
||||||
readSettings()
|
# readSettings()
|
||||||
frameRate(45)
|
frameRate(45)
|
||||||
size(1280, 720)
|
size(1280, 720)
|
||||||
fill(0, 0, 0)
|
fill(0, 0, 0)
|
||||||
@@ -14,25 +14,25 @@ def setup():
|
|||||||
# img = loadImage("DVD_video_logo.png")
|
# img = loadImage("DVD_video_logo.png")
|
||||||
|
|
||||||
# Create and/or overwrite the settings.json file in the directory
|
# Create and/or overwrite the settings.json file in the directory
|
||||||
def createSettings():
|
# def createSettings():
|
||||||
settingsJSON = {
|
# settingsJSON = {
|
||||||
"height" : 1280,
|
# "height" : 1280,
|
||||||
"width" : 720,
|
# "width" : 720,
|
||||||
"colorRGB" : [255, 255, 255]
|
# "colorRGB" : [255, 255, 255]
|
||||||
}
|
# }
|
||||||
with open(os.path.join(sys.path[2], 'settings.json'), 'w+') as settingsfile:
|
# with open(os.path.join(sys.path[2], 'settings.json'), 'w+') as settingsfile:
|
||||||
json.dump(settingsfile, settingsJSON)
|
# json.dump(settingsfile, settingsJSON)
|
||||||
|
|
||||||
# Read the settings file, importing and setting the variables in the script to correlate
|
# Read the settings file, importing and setting the variables in the script to correlate
|
||||||
def readSettings():
|
# def readSettings():
|
||||||
try:
|
# try:
|
||||||
with open(os.path.join(sys.path[2], 'settings.json'), 'r+') as settingsfile:
|
# with open(os.path.join(sys.path[2], 'settings.json'), 'r+') as settingsfile:
|
||||||
data = json.load(settingsfile)
|
# data = json.load(settingsfile)
|
||||||
setup(data["height"], data["width"])
|
# setup(data["height"], data["width"])
|
||||||
except IOError:
|
# except IOError:
|
||||||
print("No settings file found. Creating one now.")
|
# print("No settings file found. Creating one now.")
|
||||||
createSettings()
|
# createSettings()
|
||||||
os.exec()
|
# os.exec()
|
||||||
# print("Settings file created. Exiting program")
|
# print("Settings file created. Exiting program")
|
||||||
# sys.exit()
|
# sys.exit()
|
||||||
Xspeed, Yspeed = 5,5
|
Xspeed, Yspeed = 5,5
|
||||||
|
|||||||
BIN
other/DVDLogo.gif
Normal file
|
After Width: | Height: | Size: 5.3 MiB |
BIN
other/DynamicLines.gif
Normal file
|
After Width: | Height: | Size: 109 KiB |
BIN
other/FlipFlopChain.gif
Normal file
|
After Width: | Height: | Size: 5.2 MiB |
BIN
other/GraphTheory.gif
Normal file
|
After Width: | Height: | Size: 17 MiB |
BIN
other/OldLines.gif
Normal file
|
After Width: | Height: | Size: 3.4 MiB |
@@ -8,16 +8,32 @@ Other sketches without any specific purpose. If enough fit into a specific categ
|
|||||||
|
|
||||||
- **Chaser** - A test demonstrating easing equations.
|
- **Chaser** - A test demonstrating easing equations.
|
||||||
|
|
||||||
- **Clusters** - A test of a simple clusterization algorithm.
|

|
||||||
|
|
||||||
- **DVD Logo** - A fun little sketch displaying the iconic bouncing DVD Logo. May need a little more work to better visualize true-to-heart.
|
- **Clusters** - A test of a simple clusterizing algorithm.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
|
- **DVD Logo** - A fun little sketch displaying the iconic bouncing DVD Logo. May need a little more work to better visualize true-to-heart. Centers are marked, but I don't really know how the circles radiuses are decided on. Also, the bounding boxes are terribly off. I had plans to make this much more customizable and functional, but I dropped the project since it was boring and image based. Inspired by watching a relevant The Office scene.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
- **DynamicLines** - A very simple line drawing application.
|
- **DynamicLines** - A very simple line drawing application.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
- **FlipFlopChain** - A simple project displaying how one would count in binary.
|
- **FlipFlopChain** - A simple project displaying how one would count in binary.
|
||||||
|
|
||||||
- **Graph-Theory** - A simple project closely mimicing the particle.js library.
|

|
||||||
|
|
||||||
|
- **Graph-Theory** - A simple project closely mimicking the particle.js library.
|
||||||
|
|
||||||
|

|
||||||
|
|
||||||
- **Old_Lines** - A short script connecting your current mouse position to that of yours moments ago.
|
- **Old_Lines** - A short script connecting your current mouse position to that of yours moments ago.
|
||||||
|
|
||||||
- **Rotating_Calculator** - Displays how Processing.py calculates the final position of an object given a rotational value. Mostly a test for me, trying to understand why some of my projects would rotate in strange and confusing ways.
|

|
||||||
|
|
||||||
|
- **Rotation_Calculator** - Displays how Processing.py calculates the final position of an object given a rotational value. Mostly a test for me, trying to understand why some of my projects would rotate in strange and confusing ways.
|
||||||
|
|
||||||
|

|
||||||
BIN
other/RotationCalculator.gif
Normal file
|
After Width: | Height: | Size: 1.7 MiB |