Permalink
Browse files

added license file + fixed typos in readme

  • Loading branch information...
1 parent f4c34a0 commit a06cbf8d50c1c062fd655505f859f9a6b65fde0e @dkln committed Jan 24, 2011
Showing with 32 additions and 5 deletions.
  1. +27 −0 LICENSE
  2. +5 −5 README.rdoc
View
27 LICENSE
@@ -0,0 +1,27 @@
+ Copyright 2010-2011 Diederick Lawson. All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without modification, are
+ permitted provided that the following conditions are met:
+
+ 1. Redistributions of source code must retain the above copyright notice, this list of
+ conditions and the following disclaimer.
+
+ 2. 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.
+
+ THIS SOFTWARE IS PROVIDED BY DIEDERICK LAWSON "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 DIEDERICK LAWSON 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.
+
+ The views and conclusions contained in the software and documentation are those of the
+ authors and should not be interpreted as representing official policies, either expressed
+ or implied, of Diederick Lawson.
+
+ @author D. Lawson <webmaster@altovista.nl>
View
@@ -52,7 +52,7 @@ Coffeescript:
A DisplayContainer is an object that can hold other graphical objects. These graphical objects can be nested in eachother. Just like <div>'s in <div>'s.
-The +x+ and +y+ position of graphical objects are relative and are translated to canvas +x+ and +y+ positions during the rendering process. This rendering process can be triggered by calling the +draw()+ function on any displaycontainer.
+The +x+ and +y+ position of graphical objects are relative and are translated to canvas +x+ and +y+ positions during the rendering process. This rendering process can be triggered by calling the +draw+ function on any displaycontainer.
Nesting objects:
obj = new Shape()
@@ -77,7 +77,7 @@ Note: The stage is the main screen. This object also acts as an DisplayContainer
== Drawing shapes
-The drawing API is almost the same as the Canvas drawing API. If you want to draw paths to the canvas, use the +canvaslib.Shape+ class.
+The drawing API is almost the same as the Canvas drawing API. If you want to draw paths to the canvas, use the +Shape+ class.
Drawing rectangles:
stage = new Stage("the_screen");
@@ -96,7 +96,7 @@ Drawing rectangles:
== Loading and drawing bitmaps
-Bitmaps can easily be loaded with the +canavaslib.StackedLoader+ class. The +canvaslib.StackedLoader+ manages all your assets so you can preload images or audio assets before rendering all your stuff.
+Bitmaps can easily be loaded with the +canavaslib.StackedLoader+ class. The +StackedLoader+ manages all your assets so you can preload images or audio assets before rendering all your stuff.
screen = new Stage("the_screen")
StackedLoader.add "image_id", "image", "logo.png"
@@ -113,7 +113,7 @@ The +load+ function adds an asset to the loadstack. The +start+ function trigger
== Animating objects
-You can use the +canvaslib.Tween+ class to tween objects between two points.
+You can use the +Tween+ class to tween objects between two points.
...
renderer = new Renderer(stage);
@@ -124,7 +124,7 @@ You can use the +canvaslib.Tween+ class to tween objects between two points.
The above example will tween the +x+ & +y+ property of object +someShape+ to coordinate 100 in 5 secs.
-Note: to use the tween engine, you'll need to set up a renderer with +canvaslib.Renderer+ or call the +canavslib.Tween+ +update+ method yourself:
+Note: to use the tween engine, you'll need to set up a renderer with +Renderer+ or call the +Tween+ +update+ method yourself:
Tween.update()

0 comments on commit a06cbf8

Please sign in to comment.