all other gifs and minor changes for working (DVD Logo)

This commit is contained in:
Xevion
2019-12-10 02:20:58 -06:00
parent ceefa3e556
commit bcbd3baa6c
11 changed files with 38 additions and 22 deletions

BIN
other/Chaser.gif Normal file
View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 150 KiB

BIN
other/Clusters.gif Normal file
View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 MiB

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 150 KiB

View File

@@ -2,7 +2,7 @@ from random import choice, randint
import sys, os
def setup():
readSettings()
# readSettings()
frameRate(45)
size(1280, 720)
fill(0, 0, 0)
@@ -14,25 +14,25 @@ def setup():
# img = loadImage("DVD_video_logo.png")
# Create and/or overwrite the settings.json file in the directory
def createSettings():
settingsJSON = {
"height" : 1280,
"width" : 720,
"colorRGB" : [255, 255, 255]
}
with open(os.path.join(sys.path[2], 'settings.json'), 'w+') as settingsfile:
json.dump(settingsfile, settingsJSON)
# def createSettings():
# settingsJSON = {
# "height" : 1280,
# "width" : 720,
# "colorRGB" : [255, 255, 255]
# }
# with open(os.path.join(sys.path[2], 'settings.json'), 'w+') as settingsfile:
# json.dump(settingsfile, settingsJSON)
# Read the settings file, importing and setting the variables in the script to correlate
def readSettings():
try:
with open(os.path.join(sys.path[2], 'settings.json'), 'r+') as settingsfile:
data = json.load(settingsfile)
setup(data["height"], data["width"])
except IOError:
print("No settings file found. Creating one now.")
createSettings()
os.exec()
# def readSettings():
# try:
# with open(os.path.join(sys.path[2], 'settings.json'), 'r+') as settingsfile:
# data = json.load(settingsfile)
# setup(data["height"], data["width"])
# except IOError:
# print("No settings file found. Creating one now.")
# createSettings()
# os.exec()
# print("Settings file created. Exiting program")
# sys.exit()
Xspeed, Yspeed = 5,5

BIN
other/DVDLogo.gif Normal file
View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 MiB

BIN
other/DynamicLines.gif Normal file
View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 109 KiB

BIN
other/FlipFlopChain.gif Normal file
View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 MiB

BIN
other/GraphTheory.gif Normal file
View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 MiB

BIN
other/OldLines.gif Normal file
View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 MiB

View File

@@ -8,16 +8,32 @@ Other sketches without any specific purpose. If enough fit into a specific categ
- **Chaser** - A test demonstrating easing equations.
- **Clusters** - A test of a simple clusterization algorithm.
![Chaser](./Chaser.gif)
- **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.
![Clusters](./Clusters.gif)
- **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.
![DVD Logo](./DVDLogo.gif)
- **DynamicLines** - A very simple line drawing application.
![Dynamic Lines](./DynamicLines.gif)
- **FlipFlopChain** - A simple project displaying how one would count in binary.
- **Graph-Theory** - A simple project closely mimicing the particle.js library.
![FlipFlopChain](./FlipFlopChain.gif)
- **Graph-Theory** - A simple project closely mimicking the particle.js library.
![Graph Theory](./GraphTheory.gif)
- **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.
![Old Lines](./OldLines.gif)
- **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.
![Rotation Calculator](./RotationCalculator.gif)

View File

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 MiB