background preloader

Image evolution

Image evolution
What is this? A simulated annealing like optimization algorithm, a reimplementation of Roger Alsing's excellent idea. The goal is to get an image represented as a collection of overlapping polygons of various colors and transparencies. We start from random 50 polygons that are invisible. In each optimization step we randomly modify one parameter (like color components or polygon vertices) and check whether such new variant looks more like the original image. If it is, we keep it, and continue to mutate this one instead. Fitness is a sum of pixel-by-pixel differences from the original image. This implementation is based on Roger Alsing's description, though not on his code. How does it look after some time? 50 polygons (4-vertex) ~15 minutes 644 benefitial mutations 6,120 candidates 88.74% fitness 50 polygons (6-vertex) ~15 minutes 646 benefitial mutations 6,024 candidates 89.04% fitness 50 polygons (10-vertex) ~15 minutes 645 benefitial mutations 5,367 candidates 87.01% fitness Requirements Related:  Unusual Finds

How to Get a Copy of Your FBI File (idea) by narzos The Freedom of Information Act is a powerful thing. If you've ever wanted to know just what those guvmint bastards have on you, anyway, here's your chance. Just fill in the italics in this form letter with the appropriate information, get your signature notarized, send it off, and you're in business! This should be free, though if your search returns reams of information, you may be charged 5 cents per page in duplication fees. Your Name Today's Date Your Address Line 2 of Your Address Federal Bureau of Investigation Records Resources Division - Attn.: FOIA/PA Office J. This is a request for records under both the Privacy Act and the Freedom of Information Act. My full name is: Your Name. FOIA/PA statutes provide that even if some of the requested material is properly exempt from mandatory disclosure, all segregable portions must be released. I hereby agree to pay reasonable costs associated with this request up to a maximum of $30. Sincerely,Your Signature Your Printed Name

Coda Popup Bubbles In particular, Jorge Mesa writes to ask how to re-create their ‘puff’ popup bubble shown when you mouse over the download image. In essence the effect is just a simple combination of effect, but there’s a few nuances to be wary of. How to Solve the Problem To create the puff popup bubble effect, we need the following: Markup that assumes that JavaScript is disabled. The biggest trick to be wary of is: when you move the mouse over the popup, this triggers a mouseout on the image used to trigger the popup being shown. I’ve provided a screencast to walk through how create this functionality. Watch the coda bubble screencast (alternative flash version) (QuickTime version is approx. 23Mb, flash version is streaming) View the demo and source code used in the screencast HTML Markup For the purpose of reusability, I’ve wrapped my ‘target’ and ‘popup’ in a div. There’s very little to the minimum required CSS. The minimum I recommend for the example is: jQuery Mouse Over Mouse Out The ‘Trick’

Virtual Pickett N909-ES SIMPLEX TRIG RULE with METRIC CONVERSION Slide Rule Simulated Pickett N909-ES Slide Rule [Instruction Sheet (jpg)][Explanation][Gallery Index][back to AntiQuark] [Copyright © 2005 Derek Ross] Maps home page Down to: 6th to 15th Centuries | 16th and 19th Centuries | 1901 to World War Two | 1946 to 21st Century The Ancient World ... index of places Aegean Region, to 300 BCE Aegean Region, 185 BCE Africa, 2500 to 1500 BCE Africa to 500 CE African Language Families Alexander in the East (334 to 323 BCE) Ashoka, Empire of (269 to 232 BCE) Athenian Empire (431 BCE) China, Korea and Japan (1st to 5th century CE) China's Warring States (245 to 235 BCE) Cyrus II, Empire of (559 to 530 BCE) Delian League, 431 BCE Egyptian and Hittite Empires, 1279 BCE Europe Fertile Crescent, 9000-4500 BCE Germania (120 CE) Greece (600s to 400s BCE) Gupta Empire (320 to 550 CE) Han China, circa 100 BCE Hellespont (Battle of Granicus River, 334 BCE) India to 500 BCE Israel and Judah to 733 BCE Italy and Sicily (400 to 200 BCE) Judea, Galilee, Idumea (1st Century BCE) Mesopotamia to 2500 BCE Mesoamerica and the Maya (250 to 500 CE) Oceania Power divisions across Eurasia, 301 BCE Roman Empire, CE 12 Roman Empire, CE 150 Roman Empire, CE 500

15 Awesome Free JavaScript Charts / JavaScripts / Splashnology - Web Design and Web Technology Community inShare11 Plotting your data can serve as a replacement to tabular data, and is also a great way to add practical graphics to your web page or application. There are many ways you can plot data, but here I have included 15 Awesome Free JavaScript Charts In Your Sites/Blog Pages which serves as a easy Charting solution. Hope you like it. FusionCharts – Delightful JavaScript Charts for your web & mobile apps FusionCharts Suite XT gives you delightful JavaScript charts that work across devices and platforms. Website: Trial: RGraph: HTML5 & Javascript charts for your website RGraph is a charts library written in Javascript that uses HTML5 to draw and supports over twenty different types of charts. RGraph is free to use on non-commercial websites such as personal blogs, educational or charity sites. Some of the features of RGraph: TufteGraph Advertisement Highcharts Flot

Jet Propulsion I’ve grudgingly included this section by popular request. Rocket and turbojet engines are fabulous technological achievements—but they’re so simple that the animations are boring! At least I think so. You be the judge! Rocket The rocket engine is the simplest of this family, so we’ll start there. In order to work in outer space, rocket engines must carry their own supply of oxygen as well as fuel. To test this principle yourself, inflate a toy balloon and release it without tying it off…rocket propulsion at its simplest. Turbojet The turbojet employs the same principle as the rocket, except that it burns oxygen from the atmosphere instead of carrying its own supply. Notice the similarities: Fuel continuously burns inside a combustion chamber just like the rocket. Now the differences: On its way out the nozzle, some of the gas pressure is used to drive a turbine. At the front of the engine, the turbine shaft drives a compressor. Turboprop Turbofan

Ghost Quiz In 1885, Cecilia Garrett Smith and a friend were experimenting with automatic writing using a primitive Ouija board on which a planchette was guided by a visiting “spirit.” “We got all sorts of nonsense out of it, sometimes long doggerel rhymes with several verses,” but the prophecies they asked for were rarely answered. When they asked who the guiding spirit was, the planchette wrote that his name was Jim and that he had been Senior Wrangler at Cambridge. Intrigued, they asked Jim to write the equation describing the heart-shaped planchette they were using, and they received this response: This they interpreted as , which J.W. “I am quite sure that I had never seen the curve before, and therefore the production of the equation could not have been an act of unconscious memory on my part,” Smith wrote later. One wonders what Jim thought of all this.

2008 - A Year of Awesome JavaScript Games It's been a great year for JavaScript games. It looks like DHTML and canvas-based games are now capable of taking over some of the areas where Flash used to dominate. Many people have been building remakes of classic video games like Super Mario, Pac-Man, Breakout, Space Invaders, Bomberman or T&C Surf Designs. Others took the old arcade traditions and applied them to their own ideas, giving us cool games like Matt Hackett's Spacius, Mark Wilcox's Invaders from Mars, VertigoProject's RedLine Racing or a twist on the classic Tetris game. We've even seen some roleplaying games, like the very cool Tombs of Asciiroth or the more graphical CanvasQuest by Andrew Wooldridge and the Prototype based ProtoRPG by Pierre Chassaing. 2008 also saw a few libraries for JavaScript / DHTML game development pop up, most notably GameJS (pictured to the left with its demo game, Jetris) and GameQuery, the latter being an extension to the popular jQuery library. Demos Emulation Graphics Audio Odds and ends

True-Color GIF Example The three images to the left demonstrate the difference between a spectrum of 32697 colors and the same spectrum reduced by quantization to only 256 colors. All three images are in GIF format. All three conform to the GIF89A format specification as published by Compuserve. The big difference is that the ANGIF library was used to generate the true color GIF directly from the data buffer in the program that created the spectrum of colors in the 217 x 217 pixel image. The mistaken belief that GIF has a limit of 256 colors probably comes from the way GIF was first used when it came out. In the late 1980's, PC video cards generally supported no more than 256 colors. The more colors a picture has, the larger the GIF file will be. While using more than 256 colors in GIF is in most cases a bad practice, and should be limited to certain technical cases where extreme size can be tolerated, a statement that the GIF image file format is limited to 256 colors is simply false.

Most Interesting Libraries of the World The Royal library Black Diamond at the waterfront of Copenhagen owes its name to the black granite from Zimbabwe used for the facade of the building. The name was used by the public first and has been adapted officially later. Design by the Danish architects Schmidt, Hammer & Lassen. Photography by Mirage Bookmark Flickr.com

Related: