<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://www.explainxkcd.com/wiki/index.php?action=history&amp;feed=atom&amp;title=User_talk%3AGuiRitter</id>
		<title>User talk:GuiRitter - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://www.explainxkcd.com/wiki/index.php?action=history&amp;feed=atom&amp;title=User_talk%3AGuiRitter"/>
		<link rel="alternate" type="text/html" href="https://www.explainxkcd.com/wiki/index.php?title=User_talk:GuiRitter&amp;action=history"/>
		<updated>2026-05-23T20:18:28Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https://www.explainxkcd.com/wiki/index.php?title=User_talk:GuiRitter&amp;diff=106313&amp;oldid=prev</id>
		<title>GuiRitter: found the Java code to treat the image</title>
		<link rel="alternate" type="text/html" href="https://www.explainxkcd.com/wiki/index.php?title=User_talk:GuiRitter&amp;diff=106313&amp;oldid=prev"/>
				<updated>2015-12-03T13:57:12Z</updated>
		
		<summary type="html">&lt;p&gt;found the Java code to treat the image&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 13:57, 3 December 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l358&quot; &gt;Line 358:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 358:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;The &lt;/del&gt;Java code to treat the image &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;was probably deleted after use&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;and was too simple anyway to post here&lt;/del&gt;. I just used it to separate the red lines from the black lines.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;{| class=&amp;quot;wikitable collapsible collapsed&amp;quot;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;! Here's the &lt;/ins&gt;Java code to treat the image&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;|-&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;|&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#160; package main;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#160; &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#160; import java.awt.image.BufferedImage;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#160; import java.awt.image.WritableRaster;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#160; import java.io.File;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#160; import java.io.IOException;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#160; import javax.imageio.ImageIO;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#160; &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#160; @SuppressWarnings(&amp;quot;Convert2Lambda&amp;quot;)&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#160; public final class Main {&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#160; &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#160; &amp;#160; &amp;#160; private static int color[] = null;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#160; &lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#160; &amp;#160; &amp;#160; public static void main(String args[]) throws IOException {&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; BufferedImage input = ImageIO.read(new File(&amp;quot;C:\\Users\\GuiR\\Desktop\\worst_hurricane_large.png&amp;quot;));&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; WritableRaster raster = input.getRaster();&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; for (int y = 0; y &amp;lt; input.getHeight(); y++) {&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; for (int x = 0; x &amp;lt; input.getWidth(); x++) {&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; color = raster.getPixel(x, y, (int[]) null);&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; //if ((color[0] != color[1]) || (color[1] != color[2]) || (color[0] != color[2])) {// it's red&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; if ((color[0] == color[1]) &amp;amp;&amp;amp; (color[1] == color[2])) {// it's not red&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; color[0] = 255;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; color[1] = 255;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; color[2] = 255;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; }&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; raster.setPixel(x, y, color);&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; }&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; }&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; //ImageIO.write(input, &amp;quot;png&amp;quot;, new File(&amp;quot;C:\\Users\\GuiR\\Desktop\\worst_hurricane_large_black.png&amp;quot;));&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160; ImageIO.write(input, &amp;quot;png&amp;quot;&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;new File(&amp;quot;C:\\Users\\GuiR\\Desktop\\worst_hurricane_large_red&lt;/ins&gt;.&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;png&amp;quot;));&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#160; &amp;#160; &amp;#160; }&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;&amp;#160; }&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;|}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;I just used it to separate the red lines from the black lines.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{| class=&amp;quot;wikitable collapsible collapsed&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;{| class=&amp;quot;wikitable collapsible collapsed&amp;quot;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>GuiRitter</name></author>	</entry>

	<entry>
		<id>https://www.explainxkcd.com/wiki/index.php?title=User_talk:GuiRitter&amp;diff=106102&amp;oldid=prev</id>
		<title>GuiRitter: added template image</title>
		<link rel="alternate" type="text/html" href="https://www.explainxkcd.com/wiki/index.php?title=User_talk:GuiRitter&amp;diff=106102&amp;oldid=prev"/>
				<updated>2015-11-30T14:18:54Z</updated>
		
		<summary type="html">&lt;p&gt;added template image&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 14:18, 30 November 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l359&quot; &gt;Line 359:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 359:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The Java code to treat the image was probably deleted after use, and was too simple anyway to post here. I just used it to separate the red lines from the black lines.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;The Java code to treat the image was probably deleted after use, and was too simple anyway to post here. I just used it to separate the red lines from the black lines.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{| class=&amp;quot;wikitable collapsible collapsed&amp;quot;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;! Here's the image I used to color the areas. Add the original image on top and set it to multiply.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|-&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[File:xkcd_1407_colored_template.png]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;|}&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;I was going to add the GIMP xcf image, but this wiki doesn't allow it.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[User:GuiRitter|GuiRitter]] ([[User talk:GuiRitter|talk]]) 12:45, 30 November 2015 (UTC)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[User:GuiRitter|GuiRitter]] ([[User talk:GuiRitter|talk]]) 12:45, 30 November 2015 (UTC)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>GuiRitter</name></author>	</entry>

	<entry>
		<id>https://www.explainxkcd.com/wiki/index.php?title=User_talk:GuiRitter&amp;diff=106080&amp;oldid=prev</id>
		<title>GuiRitter: 1407 nerdsnipe</title>
		<link rel="alternate" type="text/html" href="https://www.explainxkcd.com/wiki/index.php?title=User_talk:GuiRitter&amp;diff=106080&amp;oldid=prev"/>
				<updated>2015-11-30T12:45:11Z</updated>
		
		<summary type="html">&lt;p&gt;1407 nerdsnipe&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;I've been nerdsniped. I've colored the map from [[1407]] in two different ways. First, by using the index of the hurricane in the table, from 0 to 73. Second, by finding out in what day the hurricane happened (actually used dissipation day), then by converting this date to the {{w|Unix time|number of milliseconds since 1970/01/01}}, then by normalizing that to a 0–1 range. Both ranges where converted to a color with {{w|HSL_and_HSV|HSL}} (''x'', 100, 50), where ''x'' varies from red to blue, going through green. Some areas of the map remained blank because it's not stated which hurricane was most remembered there, and I'm not that interested in US geography/meteorology to find out. I used {{w|Java_(programming_language)|Java}} to parse the data and Java/{{w|GIMP|GIMP}} to make the images.&lt;br /&gt;
&lt;br /&gt;
Here's the map colored by each hurricane's dissipation date:&lt;br /&gt;
[[File:xkcd_1407_colored_millis.png]]&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable collapsible collapsed&amp;quot;&lt;br /&gt;
! Here's the data table for the date coloring&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
  day	month	year	name		millis		normalized		color&lt;br /&gt;
  23	8	1915	Galveston	-1715461200000	0.0			ff0000&lt;br /&gt;
  30	9	1915	1915 VI		-1712178000000	0.0010703936396083205	ff0100&lt;br /&gt;
  15	7	1916	1916 IV		-1687208400000	0.009211018951366336	ff0900&lt;br /&gt;
  20	8	1916	1916 VI		-1684098000000	0.01022507608362685	ff0a00&lt;br /&gt;
  7	8	1918	1918 I		-1622149200000	0.030421713967815425	ff1f00&lt;br /&gt;
  29	10	1921	1921 VI		-1520283600000	0.06363208504934725	ff4000&lt;br /&gt;
  2	8	1926	1926 I		-1370120400000	0.11258850993459096	ff7200&lt;br /&gt;
  8	8	1926	1926 II		-1369602000000	0.11275751945663438	ff7300&lt;br /&gt;
  27	8	1926	1926 III	-1367960400000	0.11329271627643854	ff7300&lt;br /&gt;
  22	9	1926	1926 VII	-1365714000000	0.11402509087196003	ff7400&lt;br /&gt;
  18	9	1928	1928 IV		-1302901200000	0.13450341129288762	ff8900&lt;br /&gt;
  15	8	1932	Freeport	-1179608400000	0.17469950928554745	ffb200&lt;br /&gt;
  25	8	1933	1933 VI		-1147208400000	0.18526260441326114	ffbc00&lt;br /&gt;
  6	9	1935	1935 III	-1083099600000	0.2061634486392973	ffd200&lt;br /&gt;
  22	9	1938	1938 VI		-987022800000	0.23748654672467762	fff200&lt;br /&gt;
  14	8	1940	1940 III	-927234000000	0.2569789782670186	f7ff00&lt;br /&gt;
  25	9	1941	1941 II		-892069200000	0.2684434575122972	ecff00&lt;br /&gt;
  31	8	1942	Matagord	-862693200000	0.27802066376142426	e2ff00&lt;br /&gt;
  15	9	1944	1944 VII	-798238800000	0.29903418100215606	ccff00&lt;br /&gt;
  20	10	1944	1944 XII	-795214800000	0.30002006988074265	cbff00&lt;br /&gt;
  14	10	1946	1946 VI		-732661200000	0.32041388554064854	b7ff00&lt;br /&gt;
  16	10	1947	King		-700952400000	0.330751634638971	acff00&lt;br /&gt;
  1	9	1949	1949 II		-641682000000	0.3500750566592686	98ff00&lt;br /&gt;
  9	9	1950	Easy		-609454800000	0.36058181527963445	8eff00&lt;br /&gt;
  1	9	1954	Carol		-483915600000	0.4015102878678158	64ff00&lt;br /&gt;
  15	9	1954	Edna		-482706000000	0.4019046434192504	64ff00&lt;br /&gt;
  18	10	1954	Hazel		-479854800000	0.40283419579048924	63ff00&lt;br /&gt;
  15	8	1955	Connie		-453848400000	0.41131284014633407	5aff00&lt;br /&gt;
  23	8	1955	Diane		-453157200000	0.4115381861757253	5aff00&lt;br /&gt;
  29	6	1957	Audrey		-394750800000	0.4305799256592838	46ff00&lt;br /&gt;
  29	9	1958	Helene		-355266000000	0.4434528175882576	39ff00&lt;br /&gt;
  30	9	1959	Gracie		-323643600000	0.45376239843290617	2fff00&lt;br /&gt;
  14	9	1960	Donna		-293403600000	0.46362128721877227	25ff00&lt;br /&gt;
  17	9	1961	Carla		-261608400000	0.47398720457076865	1aff00&lt;br /&gt;
  27	9	1961	Esther		-260744400000	0.47426888710750764	1aff00&lt;br /&gt;
  14	9	1964	Dora		-167173200000	0.5047751058363448	00ff04&lt;br /&gt;
  5	10	1964	Hilda		-165358800000	0.5053666391634968	00ff05&lt;br /&gt;
  13	9	1965	Betsy		-135723600000	0.5150283501736456	00ff0f&lt;br /&gt;
  13	6	1966	Alma		-112136400000	0.5227182834266211	00ff17&lt;br /&gt;
  22	9	1967	Beulah		-71874000000	0.5358446896386599	00ff24&lt;br /&gt;
  22	8	1969	Camille		-11394000000	0.5555624672103922	00ff38&lt;br /&gt;
  5	8	1970	Celia		18673200000	0.5653650194889105	00ff42&lt;br /&gt;
  23	6	1972	Agnes		78116400000	0.5847447780165559	00ff56&lt;br /&gt;
  10	9	1974	Carmen		148014000000	0.6075328952387435	00ff6d&lt;br /&gt;
  24	9	1975	Eloise		180759600000	0.6182086633811529	00ff78&lt;br /&gt;
  8	9	1979	David		305607600000	0.6589117899399429	00ffa2&lt;br /&gt;
  15	9	1979	Frederic	306212400000	0.6591089677156603	00ffa2&lt;br /&gt;
  11	8	1980	Allen		334810800000	0.6684326596817222	00ffab&lt;br /&gt;
  16	9	1984	Diana		464151600000	0.7106005354315552	00ffd6&lt;br /&gt;
  4	9	1985	Elena		494650800000	0.7205439289784431	00ffe0&lt;br /&gt;
  2	10	1985	Gloria		497070000000	0.7213326400813124	00ffe1&lt;br /&gt;
  23	11	1985	Kate		501559200000	0.7227962155951189	00ffe3&lt;br /&gt;
  25	9	1989	Hugo		622695600000	0.7622892809231676	00f2ff&lt;br /&gt;
  20	8	1991	Bob		682657200000	0.7818380489728564	00deff&lt;br /&gt;
  28	8	1992	Andrew		714970800000	0.7923729758468961	00d3ff&lt;br /&gt;
  5	10	1995	Opal		812862000000	0.8242876072594284	00b3ff&lt;br /&gt;
  10	9	1996	Fran		842324400000	0.8338929817622294	00a9ff&lt;br /&gt;
  30	8	1998	Bonnie		904446000000	0.8541459561537658	0094ff&lt;br /&gt;
  19	9	1999	Floyd		937710000000	0.8649907338182186	0089ff&lt;br /&gt;
  8	10	2002	Lili		1034046000000	0.8963983366646205	0069ff&lt;br /&gt;
  20	9	2003	Isabel		1064026800000	0.906172720689465	005fff&lt;br /&gt;
  15	8	2004	Charley		1092538800000	0.915468244401853	0056ff&lt;br /&gt;
  10	9	2004	Frances		1094785200000	0.9162006189973745	0055ff&lt;br /&gt;
  3	9	2004	Gaston		1094180400000	0.9160034412216571	0055ff&lt;br /&gt;
  24	9	2004	Ivan		1095994800000	0.9165949745488091	0055ff&lt;br /&gt;
  29	9	2004	Jeanne		1096426800000	0.9167358158171787	0054ff&lt;br /&gt;
  18	7	2005	Dennis		1121655600000	0.9249609458899584	004cff&lt;br /&gt;
  31	8	2005	Katrina		1125457200000	0.9262003490516101	004bff&lt;br /&gt;
  26	9	2005	Rita		1127703600000	0.9269327236471316	004aff&lt;br /&gt;
  7	9	2008	Gustav		1220756400000	0.9572699328539253	002bff&lt;br /&gt;
  15	9	2008	Ike		1221447600000	0.9574952788833165	002bff&lt;br /&gt;
  30	8	2011	Irene		1314673200000	0.9878888245974581	000cff&lt;br /&gt;
  6	9	2011	Lee		1315278000000	0.9880860023731753	000cff&lt;br /&gt;
  2	11	2012	Sandy		1351821600000	1.0			0000ff&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
Here's the map colored by each hurricane's index:&lt;br /&gt;
[[File:xkcd_1407_colored_index.png]]&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable collapsible collapsed&amp;quot;&lt;br /&gt;
! Here's the data table for the index coloring&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
  day	month	year	name		normalized position	color&lt;br /&gt;
  23	8	1915	Galveston	0.0			ff0000&lt;br /&gt;
  30	9	1915	1915 VI		0.0136986301369863	ff0100&lt;br /&gt;
  15	7	1916	1916 IV		0.0273972602739726	ff0900&lt;br /&gt;
  20	8	1916	1916 VI		0.0410958904109589	ff0a00&lt;br /&gt;
  7	8	1918	1918 I		0.0547945205479452	ff1f00&lt;br /&gt;
  29	10	1921	1921 VI		0.0684931506849315	ff4000&lt;br /&gt;
  2	8	1926	1926 I		0.0821917808219178	ff7200&lt;br /&gt;
  8	8	1926	1926 II		0.0958904109589041	ff7300&lt;br /&gt;
  27	8	1926	1926 III	0.1095890410958904	ff7300&lt;br /&gt;
  22	9	1926	1926 VII	0.1232876712328767	ff7400&lt;br /&gt;
  18	9	1928	1928 IV		0.136986301369863	ff8900&lt;br /&gt;
  15	8	1932	Freeport	0.1506849315068493	ffb200&lt;br /&gt;
  25	8	1933	1933 VI		0.1643835616438356	ffbc00&lt;br /&gt;
  6	9	1935	1935 III	0.1780821917808219	ffd200&lt;br /&gt;
  22	9	1938	1938 VI		0.1917808219178082	fff200&lt;br /&gt;
  14	8	1940	1940 III	0.2054794520547945	f7ff00&lt;br /&gt;
  25	9	1941	1941 II		0.2191780821917808	ecff00&lt;br /&gt;
  31	8	1942	Matagorda	0.2328767123287671	e2ff00&lt;br /&gt;
  15	9	1944	1944 VII	0.2465753424657534	ccff00&lt;br /&gt;
  20	10	1944	1944 XIII	0.2602739726027397	cbff00&lt;br /&gt;
  14	10	1946	1946 VI		0.273972602739726	b7ff00&lt;br /&gt;
  16	10	1947	King		0.2876712328767123	acff00&lt;br /&gt;
  1	9	1949	1949 II		0.3013698630136986	98ff00&lt;br /&gt;
  9	9	1950	Easy		0.3150684931506849	8eff00&lt;br /&gt;
  1	9	1954	Carol		0.3287671232876712	64ff00&lt;br /&gt;
  15	9	1954	Edna		0.3424657534246575	64ff00&lt;br /&gt;
  18	10	1954	Hazel		0.3561643835616438	63ff00&lt;br /&gt;
  15	8	1955	Connie		0.3698630136986301	5aff00&lt;br /&gt;
  23	8	1955	Diane		0.3835616438356164	5aff00&lt;br /&gt;
  29	6	1957	Audrey		0.3972602739726027	46ff00&lt;br /&gt;
  29	9	1958	Helene		0.410958904109589	39ff00&lt;br /&gt;
  30	9	1959	Gracie		0.4246575342465753	2fff00&lt;br /&gt;
  14	9	1960	Donna		0.4383561643835616	25ff00&lt;br /&gt;
  17	9	1961	Carla		0.4520547945205479	1aff00&lt;br /&gt;
  27	9	1961	Esther		0.4657534246575342	1aff00&lt;br /&gt;
  14	9	1964	Dora		0.4794520547945205	00ff04&lt;br /&gt;
  5	10	1964	Hilda		0.4931506849315068	00ff05&lt;br /&gt;
  13	9	1965	Betsy		0.5068493150684932	00ff0f&lt;br /&gt;
  13	6	1966	Alma		0.5205479452054794	00ff17&lt;br /&gt;
  22	9	1967	Beulah		0.5342465753424658	00ff24&lt;br /&gt;
  22	8	1969	Camille		0.547945205479452	00ff38&lt;br /&gt;
  5	8	1970	Celia		0.5616438356164384	00ff42&lt;br /&gt;
  23	6	1972	Agnes		0.5753424657534246	00ff56&lt;br /&gt;
  10	9	1974	Carmen		0.589041095890411	00ff6d&lt;br /&gt;
  24	9	1975	Eloise		0.6027397260273972	00ff78&lt;br /&gt;
  8	9	1979	David		0.6164383561643836	00ffa2&lt;br /&gt;
  15	9	1979	Frederic	0.6301369863013698	00ffa2&lt;br /&gt;
  11	8	1980	Allen		0.6438356164383562	00ffab&lt;br /&gt;
  16	9	1984	Diana		0.6575342465753424	00ffd6&lt;br /&gt;
  4	9	1985	Elena		0.6712328767123288	00ffe0&lt;br /&gt;
  2	10	1985	Gloria		0.684931506849315	00ffe1&lt;br /&gt;
  23	11	1985	Kate		0.6986301369863014	00ffe3&lt;br /&gt;
  25	9	1989	Hugo		0.7123287671232876	00f2ff&lt;br /&gt;
  20	8	1991	Bob		0.726027397260274	00deff&lt;br /&gt;
  28	8	1992	Andrew		0.7397260273972602	00d3ff&lt;br /&gt;
  5	10	1995	Opal		0.7534246575342466	00b3ff&lt;br /&gt;
  10	9	1996	Fran		0.7671232876712328	00a9ff&lt;br /&gt;
  30	8	1998	Bonnie		0.7808219178082192	0094ff&lt;br /&gt;
  19	9	1999	Floyd		0.7945205479452054	0089ff&lt;br /&gt;
  8	10	2002	Lili		0.8082191780821918	0069ff&lt;br /&gt;
  20	9	2003	Isabel		0.821917808219178	005fff&lt;br /&gt;
  15	8	2004	Charley		0.8356164383561644	0056ff&lt;br /&gt;
  10	9	2004	Frances		0.8493150684931506	0055ff&lt;br /&gt;
  3	9	2004	Gaston		0.863013698630137	0055ff&lt;br /&gt;
  24	9	2004	Ivan		0.8767123287671232	0055ff&lt;br /&gt;
  29	9	2004	Jeanne		0.8904109589041096	0054ff&lt;br /&gt;
  18	7	2005	Dennis		0.9041095890410958	004cff&lt;br /&gt;
  31	8	2005	Katrina		0.9178082191780822	004bff&lt;br /&gt;
  26	9	2005	Rita		0.9315068493150684	004aff&lt;br /&gt;
  7	9	2008	Gustav		0.9452054794520548	002bff&lt;br /&gt;
  15	9	2008	Ike		0.958904109589041	002bff&lt;br /&gt;
  30	8	2011	Irene		0.9726027397260274	000cff&lt;br /&gt;
  6	9	2011	Lee		0.9863013698630136	000cff&lt;br /&gt;
  2	11	2012	Sandy		1.0			0000ff&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable collapsible collapsed&amp;quot;&lt;br /&gt;
! Here's the Java code to parse the data&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
  package main;&lt;br /&gt;
  &lt;br /&gt;
  public final class xkcd1407Hurricane {&lt;br /&gt;
  &lt;br /&gt;
      public int color[] = null;&lt;br /&gt;
  &lt;br /&gt;
      public double colorNormalizedMillis = 0;&lt;br /&gt;
  &lt;br /&gt;
      public double colorNormalizedPosition = 0;&lt;br /&gt;
  &lt;br /&gt;
      public long date = 0;&lt;br /&gt;
  &lt;br /&gt;
      public byte day = 0;&lt;br /&gt;
  &lt;br /&gt;
      public byte month = 0;&lt;br /&gt;
  &lt;br /&gt;
      public String name = null;&lt;br /&gt;
  &lt;br /&gt;
      public short year = 0;&lt;br /&gt;
  }&lt;br /&gt;
&lt;br /&gt;
  package main;&lt;br /&gt;
  &lt;br /&gt;
  import java.util.GregorianCalendar;&lt;br /&gt;
  import java.util.LinkedList;&lt;br /&gt;
  &lt;br /&gt;
  public final class xkcd1407 {&lt;br /&gt;
  &lt;br /&gt;
      private static String fields[] = null;&lt;br /&gt;
  &lt;br /&gt;
      private static final LinkedList&amp;lt;xkcd1407Hurricane&amp;gt; hurricanes = new LinkedList&amp;lt;&amp;gt;();&lt;br /&gt;
  &lt;br /&gt;
      //&amp;lt;editor-fold desc=&amp;quot;input&amp;quot;&amp;gt;&lt;br /&gt;
      private static final String input&lt;br /&gt;
       = &amp;quot;23	8	1915	Galveston\n&amp;quot;&lt;br /&gt;
       + &amp;quot;30	9		1915 VI\n&amp;quot;&lt;br /&gt;
       + &amp;quot;15	7	1916	1916 IV\n&amp;quot;&lt;br /&gt;
       + &amp;quot;20	8		1916 VI\n&amp;quot;&lt;br /&gt;
       + &amp;quot;7	8	1918	1918 I\n&amp;quot;&lt;br /&gt;
       + &amp;quot;29	10	1921	1921 VI\n&amp;quot;&lt;br /&gt;
       + &amp;quot;2	8	1926	1926 I\n&amp;quot;&lt;br /&gt;
       + &amp;quot;8	8		1926 II\n&amp;quot;&lt;br /&gt;
       + &amp;quot;27	8		1926 III\n&amp;quot;&lt;br /&gt;
       + &amp;quot;22	9		1926 VII\n&amp;quot;&lt;br /&gt;
       + &amp;quot;18	9	1928	1928 IV\n&amp;quot;&lt;br /&gt;
       + &amp;quot;15	8	1932	Freeport\n&amp;quot;&lt;br /&gt;
       + &amp;quot;25	8	1933	1933 VI\n&amp;quot;&lt;br /&gt;
       + &amp;quot;6	9	1935	1935 III\n&amp;quot;&lt;br /&gt;
       + &amp;quot;22	9	1938	1938 VI\n&amp;quot;&lt;br /&gt;
       + &amp;quot;14	8	1940	1940 III\n&amp;quot;&lt;br /&gt;
       + &amp;quot;25	9	1941	1941 II\n&amp;quot;&lt;br /&gt;
       + &amp;quot;31	8	1942	Matagorda\n&amp;quot;&lt;br /&gt;
       + &amp;quot;15	9	1944	1944 VII\n&amp;quot;&lt;br /&gt;
       + &amp;quot;20	10		1944 XIII\n&amp;quot;&lt;br /&gt;
       + &amp;quot;14	10	1946	1946 VI\n&amp;quot;&lt;br /&gt;
       + &amp;quot;16	10	1947	King\n&amp;quot;&lt;br /&gt;
       + &amp;quot;1	9	1949	1949 II\n&amp;quot;&lt;br /&gt;
       + &amp;quot;9	9	1950	Easy\n&amp;quot;&lt;br /&gt;
       + &amp;quot;1	9	1954	Carol\n&amp;quot;&lt;br /&gt;
       + &amp;quot;15	9		Edna\n&amp;quot;&lt;br /&gt;
       + &amp;quot;18	10		Hazel\n&amp;quot;&lt;br /&gt;
       + &amp;quot;15	8	1955	Connie\n&amp;quot;&lt;br /&gt;
       + &amp;quot;23	8		Diane\n&amp;quot;&lt;br /&gt;
       + &amp;quot;29	6	1957	Audrey\n&amp;quot;&lt;br /&gt;
       + &amp;quot;29	9	1958	Helene\n&amp;quot;&lt;br /&gt;
       + &amp;quot;30	9	1959	Gracie\n&amp;quot;&lt;br /&gt;
       + &amp;quot;14	9	1960	Donna\n&amp;quot;&lt;br /&gt;
       + &amp;quot;17	9	1961	Carla\n&amp;quot;&lt;br /&gt;
       + &amp;quot;27	9		Esther\n&amp;quot;&lt;br /&gt;
       + &amp;quot;14	9	1964	Dora\n&amp;quot;&lt;br /&gt;
       + &amp;quot;5	10		Hilda\n&amp;quot;&lt;br /&gt;
       + &amp;quot;13	9	1965	Betsy\n&amp;quot;&lt;br /&gt;
       + &amp;quot;13	6	1966	Alma\n&amp;quot;&lt;br /&gt;
       + &amp;quot;22	9	1967	Beulah\n&amp;quot;&lt;br /&gt;
       + &amp;quot;22	8	1969	Camille\n&amp;quot;&lt;br /&gt;
       + &amp;quot;5	8	1970	Celia\n&amp;quot;&lt;br /&gt;
       + &amp;quot;23	6	1972	Agnes\n&amp;quot;&lt;br /&gt;
       + &amp;quot;10	9	1974	Carmen\n&amp;quot;&lt;br /&gt;
       + &amp;quot;24	9	1975	Eloise\n&amp;quot;&lt;br /&gt;
       + &amp;quot;8	9	1979	David\n&amp;quot;&lt;br /&gt;
       + &amp;quot;15	9		Frederic\n&amp;quot;&lt;br /&gt;
       + &amp;quot;11	8	1980	Allen\n&amp;quot;&lt;br /&gt;
       + &amp;quot;16	9	1984	Diana\n&amp;quot;&lt;br /&gt;
       + &amp;quot;4	9	1985	Elena\n&amp;quot;&lt;br /&gt;
       + &amp;quot;2	10		Gloria\n&amp;quot;&lt;br /&gt;
       + &amp;quot;23	11		Kate\n&amp;quot;&lt;br /&gt;
       + &amp;quot;25	9	1989	Hugo\n&amp;quot;&lt;br /&gt;
       + &amp;quot;20	8	1991	Bob\n&amp;quot;&lt;br /&gt;
       + &amp;quot;28	8	1992	Andrew\n&amp;quot;&lt;br /&gt;
       + &amp;quot;5	10	1995	Opal\n&amp;quot;&lt;br /&gt;
       + &amp;quot;10	9	1996	Fran\n&amp;quot;&lt;br /&gt;
       + &amp;quot;30	8	1998	Bonnie\n&amp;quot;&lt;br /&gt;
       + &amp;quot;19	9	1999	Floyd\n&amp;quot;&lt;br /&gt;
       + &amp;quot;8	10	2002	Lili\n&amp;quot;&lt;br /&gt;
       + &amp;quot;20	9	2003	Isabel\n&amp;quot;&lt;br /&gt;
       + &amp;quot;15	8	2004	Charley\n&amp;quot;&lt;br /&gt;
       + &amp;quot;10	9		Frances\n&amp;quot;&lt;br /&gt;
       + &amp;quot;3	9		Gaston\n&amp;quot;&lt;br /&gt;
       + &amp;quot;24	9		Ivan\n&amp;quot;&lt;br /&gt;
       + &amp;quot;29	9		Jeanne\n&amp;quot;&lt;br /&gt;
       + &amp;quot;18	7	2005	Dennis\n&amp;quot;&lt;br /&gt;
       + &amp;quot;31	8		Katrina\n&amp;quot;&lt;br /&gt;
       + &amp;quot;26	9		Rita\n&amp;quot;&lt;br /&gt;
       + &amp;quot;7	9	2008	Gustav\n&amp;quot;&lt;br /&gt;
       + &amp;quot;15	9		Ike\n&amp;quot;&lt;br /&gt;
       + &amp;quot;30	8	2011	Irene\n&amp;quot;&lt;br /&gt;
       + &amp;quot;6	9		Lee\n&amp;quot;&lt;br /&gt;
       + &amp;quot;2	11	2012	Sandy&amp;quot;;&lt;br /&gt;
      //&amp;lt;/editor-fold&amp;gt;&lt;br /&gt;
  &lt;br /&gt;
      public static int[] percentageToColor (double percentage) {&lt;br /&gt;
          int color[] = new int[]{255, 0, 0};&lt;br /&gt;
          if ((percentage &amp;gt; 0) &amp;amp;&amp;amp; (percentage &amp;lt; 0.25)) {&lt;br /&gt;
              color[0] = 255;&lt;br /&gt;
              color[1] = (int) (255 * (percentage * 4.0));&lt;br /&gt;
              color[2] = 0;&lt;br /&gt;
          } else if (percentage == 0.25) {&lt;br /&gt;
              color[0] = 255;&lt;br /&gt;
              color[1] = 255;&lt;br /&gt;
              color[2] = 0;&lt;br /&gt;
          } else if ((percentage &amp;gt; 0.25) &amp;amp;&amp;amp; (percentage &amp;lt; 0.5)) {&lt;br /&gt;
              color[0] = (int) (255 * ((percentage * (-4.0)) + 2));&lt;br /&gt;
              color[1] = 255;&lt;br /&gt;
              color[2] = 0;&lt;br /&gt;
          } else if (percentage == 0.5) {&lt;br /&gt;
              color[0] = 0;&lt;br /&gt;
              color[1] = 255;&lt;br /&gt;
              color[2] = 0;&lt;br /&gt;
          } else if ((percentage &amp;gt; 0.5) &amp;amp;&amp;amp; (percentage &amp;lt; 0.75)) {&lt;br /&gt;
              color[0] = 0;&lt;br /&gt;
              color[1] = 255;&lt;br /&gt;
              color[2] = (int) (255 * ((percentage * 4.0) - 2));&lt;br /&gt;
          } else if (percentage == 0.75) {&lt;br /&gt;
              color[0] = 0;&lt;br /&gt;
              color[1] = 255;&lt;br /&gt;
              color[2] = 255;&lt;br /&gt;
          } else if ((percentage &amp;gt; 0.75) &amp;amp;&amp;amp; (percentage &amp;lt; 1)) {&lt;br /&gt;
              color[0] = 0;&lt;br /&gt;
              color[1] = (int) (255 * ((percentage * (-4.0)) + 4));&lt;br /&gt;
              color[2] = 255;&lt;br /&gt;
          } else if (percentage == 1) {&lt;br /&gt;
              color[0] = 0;&lt;br /&gt;
              color[1] = 0;&lt;br /&gt;
              color[2] = 255;&lt;br /&gt;
          }&lt;br /&gt;
          return color;&lt;br /&gt;
      }&lt;br /&gt;
  &lt;br /&gt;
      public static void main (String args[]) throws IOException {&lt;br /&gt;
          {&lt;br /&gt;
              xkcd1407Hurricane hurricane = null;&lt;br /&gt;
              short lastYear = 0;&lt;br /&gt;
              for (String sI : input.split(&amp;quot;\n&amp;quot;)) {&lt;br /&gt;
                  fields = sI.split(&amp;quot;\t&amp;quot;);&lt;br /&gt;
                  hurricane = new xkcd1407Hurricane();&lt;br /&gt;
                  hurricane.day = Byte.parseByte(fields[0]);&lt;br /&gt;
                  hurricane.month = Byte.parseByte(fields[1]);&lt;br /&gt;
                  try {&lt;br /&gt;
                      hurricane.year = Short.parseShort(fields[2]);&lt;br /&gt;
                      lastYear = hurricane.year;&lt;br /&gt;
                  } catch (NumberFormatException ex) {&lt;br /&gt;
                      hurricane.year = lastYear;&lt;br /&gt;
                  }&lt;br /&gt;
                  hurricane.name = fields[3];&lt;br /&gt;
                  hurricane.date = new GregorianCalendar(hurricane.year, hurricane.month - 1, hurricane.day).getTimeInMillis();&lt;br /&gt;
                  hurricanes.add(hurricane);&lt;br /&gt;
              }&lt;br /&gt;
          }&lt;br /&gt;
          for (int i = 0; i &amp;lt; hurricanes.size(); i++) {&lt;br /&gt;
              hurricanes.get(i).colorNormalizedMillis&lt;br /&gt;
               = ((double) (hurricanes.get(i).date - hurricanes.getFirst().date))&lt;br /&gt;
               / ((double) (hurricanes.getLast().date - hurricanes.getFirst().date));&lt;br /&gt;
              hurricanes.get(i).colorNormalizedPosition&lt;br /&gt;
               = ((double) i) / ((double) hurricanes.size() - 1);&lt;br /&gt;
              hurricanes.get(i).color = percentageToColor(hurricanes.get(i).colorNormalizedMillis);&lt;br /&gt;
              //hurricanes.get(i).color = percentageToColor(hurricanes.get(i).colorNormalizedPosition);&lt;br /&gt;
          }&lt;br /&gt;
          for (xkcd1407Hurricane hI : hurricanes) {&lt;br /&gt;
              System.out.format(&amp;quot;  &amp;quot; + hI.day + &amp;quot;\t&amp;quot; + hI.month + &amp;quot;\t&amp;quot; + hI.year + &amp;quot;\t&amp;quot; + hI.name + &amp;quot;\t\t&amp;quot; + hI.date + &amp;quot;\t&amp;quot; + hI.colorNormalizedMillis + &amp;quot;\t%02x%02x%02x\n&amp;quot;, hI.color[0], hI.color[1], hI.color[2]);&lt;br /&gt;
              //System.out.format(&amp;quot;  &amp;quot; + hI.day + &amp;quot;\t&amp;quot; + hI.month + &amp;quot;\t&amp;quot; + hI.year + &amp;quot;\t&amp;quot; + hI.name + &amp;quot;\t\t&amp;quot; + hI.colorNormalizedPosition + &amp;quot;\t%02x%02x%02x\n&amp;quot;, hI.color[0], hI.color[1], hI.color[2]);&lt;br /&gt;
          }&lt;br /&gt;
      }&lt;br /&gt;
  }&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The Java code to treat the image was probably deleted after use, and was too simple anyway to post here. I just used it to separate the red lines from the black lines.&lt;br /&gt;
&lt;br /&gt;
[[User:GuiRitter|GuiRitter]] ([[User talk:GuiRitter|talk]]) 12:45, 30 November 2015 (UTC)&lt;/div&gt;</summary>
		<author><name>GuiRitter</name></author>	</entry>

	</feed>