Skip to content

Instantly share code, notes, and snippets.

View AdmiralPotato's full-sized avatar
🐐
Probably filling databases with Goats

Admiral Potato AdmiralPotato

🐐
Probably filling databases with Goats
View GitHub Profile
@AdmiralPotato
AdmiralPotato / sketch_131121a.pde
Created November 21, 2013 23:32
Spiraling purple hexagons moving up and down along the Z axis
/**
* Created with IntelliJ IDEA.
* User: admiral
* Date: 11/17/13
* Time: 05:49 AM
* No idea yet!
*/
import java.lang.Math;
import processing.core.*;
#So far, my Python scripts for Blender are segmented into
#a "create the objects" script,
#and a "describe their motion over time" script.
#The "motion.py" script must be run and have the "register"
#checkbox clicked on it in the Blender "Text Editor" window,
#so that it will add the driver every time the file loads.
#To use the creation script, you must already have a group named
#"Dot" defined with some renderable mesh in it so that the
#"creation.py" script can create instances of that group.
#My "Dot" group has a 5 level subdivided Icosphere in it.
@AdmiralPotato
AdmiralPotato / README.MD
Last active December 21, 2016 10:53
IT IS THE FUTURE. THE DISTANT FUTURE.

#ROBOT ARM

IT IS THE FUTURE. THE DISTANT FUTURE.

I have no idea what I'm doing here. This was a sketch that I made years and years ago, but I thought I would use it as a text for bl.ocks.org because it looks dope af to me right now.

@AdmiralPotato
AdmiralPotato / gif_process.js
Created January 13, 2017 11:12
Reads folders of sequences of PNGs. Exports oodles of optimized GIFs at different sizes and crops to post at different internets places.
//REQUIREMENTS: The following programs must be installed and accessible in your PATH
// node > 6
// imagemagick's command line tool "convert"
// gifsicle
//USAGE: Change params at the top to your liking. `node gif_process.js` starts it up.
// EXECUTES ALL TASKS IN PARALEL.
// If you run it like this, it will CONSUME YOUR WHOLE COMPUTER (100% cpu, 100% memory) for a few minutes while it works.
//DISCLOSURE: I was running terribly low on sleep when I wrote this. It's a tool. It gets a job done like ten times ever. Don't judge me on this. The code I write for my day job is like way better and I care a lot more about it because I have to maintain it all the time.
//LICENSE: MIT
@AdmiralPotato
AdmiralPotato / README.md
Last active April 27, 2017 00:58
Tribute to: thedotisblack's "Optical Art with Lines"

The original work that inspired me is fantastic. I wanted so see if I could pull it off real quick and easy in SVG. Answer is mostly, but by the time I felt like going to bed, I realized that they used decreasing space between the lines, and mine was constant. Check the original, it's super relaxing to watch - it's quite a bit faster than mine though.

Original work: Generative Pattern Drawing: Optical Art with Lines (Made with code / Processing)

@AdmiralPotato
AdmiralPotato / gif_process-electric_leaves.js
Last active May 28, 2017 11:03
Sometimes Photoshop is a damn fool and you need an export process that sucks less at color palette selection and dithering.
//REQUIREMENTS: The following programs must be installed and accessible in your PATH
// node > 6
// imagemagick's command line tool "convert"
// giflossy - which can be installed with `npm install -g giflossy`, but only on mac and linux??
//USAGE: Change params at the top to your liking. `node gif_process.js` starts it up.
// EXECUTES ALL TASKS IN PARALEL.
// If you run it like this, it will CONSUME YOUR WHOLE COMPUTER (100% cpu, 100% memory) for a few minutes while it works.
//DISCLOSURE: I was running terribly low on sleep when I wrote this. It's a tool. It gets a job done like ten times ever. Don't judge me on this. The code I write for my day job is like way better and I care a lot more about it because I have to maintain it all the time.
//LICENSE: MIT
@AdmiralPotato
AdmiralPotato / README.md
Last active July 9, 2017 05:30
SVG Symmetry Thing

#SVG Symmetry Thing I'm going to try to make something inspired by the works of Atticus Bones.

@AdmiralPotato
AdmiralPotato / README.md
Created October 1, 2017 00:15
An interactive creative coding exercise

An interactive creative coding exercise

I don't know what I'm doing yet

@AdmiralPotato
AdmiralPotato / index.html
Last active February 25, 2019 15:24
Chrome has bad performance rendering SVG circles
<!DOCTYPE html>
<html lang="en">
<head>
<title>Chrome has bad performance rendering SVG circles</title>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, minimal-ui, maximum-scale=1, user-scalable=no">
<style>
html, body {
height: 100%;
}
@AdmiralPotato
AdmiralPotato / circular_associations_f.pde
Last active February 26, 2019 08:36 — forked from AdmiralPotato/circular_associations_e.pde
Originally created on 2014-06-14 @ ‏‎11:45:20
//configurable variables
boolean
exportMode = true; //set to true when exporting, false when designing
String
folderPrefix = "../f_480";
int
fps = 24,
outputScale = 1, //set to 2 or 4 when exporting, 1 when designing
windowSize = 480 * outputScale,
numFrames = 48,