Add license/readme. Link up canvas to our docs.
authorBenjamin Smedberg <benjamin@smedbergs.us>
Fri, 12 Dec 2008 16:23:59 -0500
changeset 10 2842d1ea59aa
parent 9 c7f0ffcfb541
child 11 1d79c88c68bb
push id1
push userbsmedberg@mozilla.com
push dateFri, 12 Dec 2008 21:25:26 +0000
Add license/readme. Link up canvas to our docs.
LICENSE
README
wordmap.html
new file mode 100644
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,10 @@
+Copyright (c) 2008, the Mozilla Foundation <http://www.mozilla.org/>
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+    * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+    * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+    * Neither the name of the <ORGANIZATION> nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
\ No newline at end of file
new file mode 100644
--- /dev/null
+++ b/README
@@ -0,0 +1,16 @@
+Inspired by wordle.net
+
+Licensed for any use, see LICENSE for details.
+
+Take a text (currently the BSBlog Atom feed) and turn it into a wordmap.
+
+There are many things which can/should be done to this code!
+
+* get arbitrary data off the web... perhaps proxied through the server to avoid same-origin restrictions?
+* color palette
+* font selection... using @font-face for server stored fonts?
+* better layout; I like the rather open layout this currently produces, but it would be nice to support a closer layout
+** thought: instead of fitting along a linear edge, fit into corners in some cases
+** thought: keep track of open space that can be filled, somehow? requires more graphics experience than I have!
+
+Benjamin Smedberg <benjamin@smedbergs.us>
--- a/wordmap.html
+++ b/wordmap.html
@@ -7,17 +7,20 @@
   </style>
 </head>
 <body>
   <h1>Word Maps</h1>
 
   <p>The word maps generated by <a href="http://www.wordle.net/">wordle.net</a> have been going around the
   Mozilla community. They are really pretty, but I wanted to hack out
   the output and algorithm, and avoid the unholy Java monster. So I
-  recreated it using the HTML &lt;canvas&gt; element and JavaScript.
+  recreated it using the <a
+  href="https://developer.mozilla.org/en/HTML:Canvas">HTML
+  &lt;canvas&gt; element</a> and
+  JavaScript.
 
   <p>Note: currently requires Firefox 3.1. If you'd like to host it
   yourself, or hack it, <a
   href="http://hg.mozilla.org/users/bsmedberg_mozilla.com/wordmap">get
   the code here</a>.
 
   <div>
   <input type="button" value="Wordmap of BSBlog" onclick="drawasync()">