NICE CODING
// .pde // Processing 3.4 ParticleSystem ps; void setup() { size(540, 750); background(0); ps = new ParticleSystem(); } void draw() { noStroke(); fill(0,10); rect(0,0,width,height); ps.addParticle(); ps.run(); } class ParticleSystem { ArrayList<Particle> particles; ParticleSystem() { particles = new ArrayList<Particle>(); } void addParticle() { for (int i = 0; i < 10; i++) { particles.add(new Particle(random(width), random(height))); } } void run() { for (int i = particles.size()-1; i >= 0; i--) { Particle p = particles.get(i); p.run(); if (p.isDead()) { particles.remove(i); } } } } class Particle { PVector location; PVector velocity; float lifespan; Particle(float x, float y) { location = new PVector(x,y); lifespan = 255.0; } void run() { update(); display(); } void update() { float angle = noise(location.x*.01,location.y*.01)*TAU; velocity = new PVector(sin(angle), cos(angle)); location.add(velocity); lifespan -= 1.0; } void display() { strokeWeight(2); stroke(255, lifespan); point(location.x, location.y); } boolean isDead() { if(location.x > width-120 || location.x < 120){ return true; } if(location.y > height-20 || location.y < 20){ return true; } if (lifespan < 0.0) { return true; } else { return false; } } }
The US Marine Corps today declared the F-35B jump-jet model flying with VMFA-121 to have achieved initial operational capability (IOC). VMFA-121 has ten aircraft in the Block 2B configuration with the requisite performance envelope and weapons clearances, to include the training, sustainment capabilities, and infrastructure to deploy to an austere site or a ship
P-51 Mustang fighter being re armed on Saipan (1945)
150529
Got bored, made throttle bodies for some reason.
Chicago
Another Chopes barrel defeated.
A short history of the world around us
(part two of two)
This is post number fifteen (015)
This is post number forty-four (044)