This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Interesting playing around with different ways of changing m and n | |
// Inspired by the Steve Mould video: https://www.youtube.com/watch?v=rjueHI002Fg | |
// Next steps: implement with a shader | |
float n = 100; | |
float m = 1; | |
float epsilon = 0.1; | |
float res; | |
int count = 500; | |
float increment = 0.001; | |
String currentlyAdjusting = "n"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import PySimpleGUI as sg | |
import sqlite3 | |
from datetime import timedelta, datetime | |
from enum import Enum | |
from collections import defaultdict | |
from typing import List, Tuple, Callable | |
import logging | |
logging.basicConfig(filename="main.log", filemode='w', level=logging.DEBUG, format='%(name)s - %(levelname)s - %(message)s') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Hex { | |
PVector pos; | |
int state; | |
float a; // tracking point in the cycle | |
float thisR; // current radius | |
float dist2c; | |
Hex(float x, float y) { | |
pos = new PVector(x, y); | |
state = 1; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// music from https://audionautix.com/free-music/meditative | |
import processing.sound.*; | |
SoundFile file; | |
int ptCount, stop; | |
PVector[] cpts0; | |
int everyXFrames; | |
int level; | |
Curve[] curves; |