<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comentarios para HyperAndroid</title>
	<atom:link href="http://labs.hyperandroid.com/comments/feed" rel="self" type="application/rss+xml" />
	<link>http://labs.hyperandroid.com</link>
	<description>Coding experiments.</description>
	<lastBuildDate>Wed, 15 Feb 2012 16:33:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>Comentario en CAAT. Canvas Advanced Animation Toolkit por Anónimo</title>
		<link>http://labs.hyperandroid.com/animation#comment-295</link>
		<dc:creator>Anónimo</dc:creator>
		<pubDate>Wed, 15 Feb 2012 16:33:00 +0000</pubDate>
		<guid isPermaLink="false">http://labs.hyperandroid.com#comment-295</guid>
		<description>More than ever.

http://github.com/hyperandroid/caat http://labs.hyperandroid.com/static/CAAT-Samples/demos/demo1/path.html 
-ibon

El 15 de febrero de 2012 17:07, Disqus
escribió:</description>
		<content:encoded><![CDATA[<p>More than ever.</p>
<p><a href="http://github.com/hyperandroid/caat" rel="nofollow">http://github.com/hyperandroid/caat</a> <a href="http://labs.hyperandroid.com/static/CAAT-Samples/demos/demo1/path.html" rel="nofollow">http://labs.hyperandroid.com/static/CAAT-Samples/demos/demo1/path.html</a><br />
-ibon</p>
<p>El 15 de febrero de 2012 17:07, Disqus<br />
escribió:</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comentario en CAAT. Canvas Advanced Animation Toolkit por Drudi</title>
		<link>http://labs.hyperandroid.com/animation#comment-294</link>
		<dc:creator>Drudi</dc:creator>
		<pubDate>Wed, 15 Feb 2012 16:07:00 +0000</pubDate>
		<guid isPermaLink="false">http://labs.hyperandroid.com#comment-294</guid>
		<description>is this project still alive ?</description>
		<content:encoded><![CDATA[<p>is this project still alive ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comentario en MathMayhem por Joshua Gold</title>
		<link>http://labs.hyperandroid.com/mathmayhem#comment-293</link>
		<dc:creator>Joshua Gold</dc:creator>
		<pubDate>Tue, 31 Jan 2012 15:51:00 +0000</pubDate>
		<guid isPermaLink="false">http://labs.hyperandroid.com#comment-293</guid>
		<description>How about a multiplication version :)</description>
		<content:encoded><![CDATA[<p>How about a multiplication version <img src='http://labs.hyperandroid.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>Comentario en CAAT. Canvas Advanced Animation Toolkit por Anónimo</title>
		<link>http://labs.hyperandroid.com/animation#comment-292</link>
		<dc:creator>Anónimo</dc:creator>
		<pubDate>Tue, 24 Jan 2012 20:56:00 +0000</pubDate>
		<guid isPermaLink="false">http://labs.hyperandroid.com#comment-292</guid>
		<description>Hi, vinay

If you mean whether you could use embedded fonts like google fonts, the answer is yes.
The only drawback is that by the time the canvas element accessed in example a CAAT.TextActor which uses the font embedded, it may happen the font is not still loaded. To prevent this, you should create a div in your markup which references the embedded font, something like:

.

which will make your embedded font to be preloaded.

CAAT supports sprited fonts with the object CAAT.Font object. You could also draw text with an atlas texture with the CAAt.SpriteImage object as well.
Hope this helps.

Regards,

-ibon


2012/1/24 Disqus </description>
		<content:encoded><![CDATA[<p>Hi, vinay</p>
<p>If you mean whether you could use embedded fonts like google fonts, the answer is yes.<br />
The only drawback is that by the time the canvas element accessed in example a CAAT.TextActor which uses the font embedded, it may happen the font is not still loaded. To prevent this, you should create a div in your markup which references the embedded font, something like:</p>
<p>.</p>
<p>which will make your embedded font to be preloaded.</p>
<p>CAAT supports sprited fonts with the object CAAT.Font object. You could also draw text with an atlas texture with the CAAt.SpriteImage object as well.<br />
Hope this helps.</p>
<p>Regards,</p>
<p>-ibon</p>
<p>2012/1/24 Disqus</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comentario en CSS3 Tiler por Ricardo Sanchez</title>
		<link>http://labs.hyperandroid.com/css3-tiler#comment-291</link>
		<dc:creator>Ricardo Sanchez</dc:creator>
		<pubDate>Tue, 24 Jan 2012 11:09:00 +0000</pubDate>
		<guid isPermaLink="false">http://labs.hyperandroid.com#comment-291</guid>
		<description>Justo cuando pensaba estudiar CSS3D excellente!

Gracias por el post y codigo</description>
		<content:encoded><![CDATA[<p>Justo cuando pensaba estudiar CSS3D excellente!</p>
<p>Gracias por el post y codigo</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comentario en CAAT. Canvas Advanced Animation Toolkit por Vinay Chandra</title>
		<link>http://labs.hyperandroid.com/animation#comment-290</link>
		<dc:creator>Vinay Chandra</dc:creator>
		<pubDate>Tue, 24 Jan 2012 09:32:00 +0000</pubDate>
		<guid isPermaLink="false">http://labs.hyperandroid.com#comment-290</guid>
		<description>can we embed font through the caat...????</description>
		<content:encoded><![CDATA[<p>can we embed font through the caat&#8230;????</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comentario en MathMayhem por Marcos Triviño</title>
		<link>http://labs.hyperandroid.com/mathmayhem#comment-288</link>
		<dc:creator>Marcos Triviño</dc:creator>
		<pubDate>Sat, 10 Dec 2011 16:07:00 +0000</pubDate>
		<guid isPermaLink="false">http://labs.hyperandroid.com#comment-288</guid>
		<description>Muy muy bueno!!! Me ha encantado !
Felicitaciones.</description>
		<content:encoded><![CDATA[<p>Muy muy bueno!!! Me ha encantado !<br />
Felicitaciones.</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comentario en CAAT &#8211; Tutorial 2, Behaviors por Anónimo</title>
		<link>http://labs.hyperandroid.com/caat-tutorial-2-behaviors#comment-287</link>
		<dc:creator>Anónimo</dc:creator>
		<pubDate>Tue, 29 Nov 2011 11:10:00 +0000</pubDate>
		<guid isPermaLink="false">http://labs.hyperandroid.com/?p=379#comment-287</guid>
		<description>If you want to traverse the path inversely, you must set a different pathbehavior interpolator:
pathbehavior.setInterpolator( new CAAT.Interpolator().createLinearInterpolator( false, true );

false= no ping-pong (so only go throught the path)
true= inverse.

regards,
-i

2011/11/29 Disqus </description>
		<content:encoded><![CDATA[<p>If you want to traverse the path inversely, you must set a different pathbehavior interpolator:<br />
pathbehavior.setInterpolator( new CAAT.Interpolator().createLinearInterpolator( false, true );</p>
<p>false= no ping-pong (so only go throught the path)<br />
true= inverse.</p>
<p>regards,<br />
-i</p>
<p>2011/11/29 Disqus</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comentario en CAAT &#8211; Tutorial 2, Behaviors por Moritz Gerold</title>
		<link>http://labs.hyperandroid.com/caat-tutorial-2-behaviors#comment-286</link>
		<dc:creator>Moritz Gerold</dc:creator>
		<pubDate>Tue, 29 Nov 2011 10:25:00 +0000</pubDate>
		<guid isPermaLink="false">http://labs.hyperandroid.com/?p=379#comment-286</guid>
		<description>okay... i&#039;ve found the error... I used an pathActor instead of an simple path. 
But, how to change the direction of the path movement? 

setAutoRotate(true, CAAT.PathBehavior.autorotate.LEFT_TO_RIGHT)

changing this to

setAutoRotate(true, CAAT.PathBehavior.autorotate.RIGHT_TO_LEFT).

didn&#039;t work. any ideas?
</description>
		<content:encoded><![CDATA[<p>okay&#8230; i&#8217;ve found the error&#8230; I used an pathActor instead of an simple path.<br />
But, how to change the direction of the path movement? </p>
<p>setAutoRotate(true, CAAT.PathBehavior.autorotate.LEFT_TO_RIGHT)</p>
<p>changing this to</p>
<p>setAutoRotate(true, CAAT.PathBehavior.autorotate.RIGHT_TO_LEFT).</p>
<p>didn&#8217;t work. any ideas?</p>
]]></content:encoded>
	</item>
	<item>
		<title>Comentario en CAAT &#8211; Tutorial 2, Behaviors por Moritz Gerold</title>
		<link>http://labs.hyperandroid.com/caat-tutorial-2-behaviors#comment-285</link>
		<dc:creator>Moritz Gerold</dc:creator>
		<pubDate>Tue, 29 Nov 2011 09:18:00 +0000</pubDate>
		<guid isPermaLink="false">http://labs.hyperandroid.com/?p=379#comment-285</guid>
		<description>Hey hyperandroid,

i&#039;ve tried to do a very simple animation with CAAT. I&#039;ve clicked and search through most of the samples on the tutorial page, but didn&#039;t find the error of my code. Would be great if you or anyone else could help me... 

cheers!

The Error is: 
- his.path.getPosition is not a function
- var point= this.path.getPosition(time);
- caat.js (Zeile 3779)And thats the code:

    // DRAW THE CANVAS
    var director = new CAAT.Director().initialize(
        600,    // 100 pixels wide
        340,    // 100 pixels across
        document.getElementById(&#039;canv&#039;));
        
     // CREATE FIRST SZENE
    var scene_bg = director.createScene();        

    // DECLARE COLORS
    var bmwgrey = &#039;#888&#039;;
    var bmwstreet = &#039;#ccc&#039;;
    
     // PAINT BG
    var bg = new CAAT.Actor().
        setBounds(0,0,600,340).
        enableEvents(false);
    bg.paint = function() {
        var ctx = director.ctx;    
        ctx.fillStyle = bmwgrey;
        ctx.fillRect(0,0, 600, 60);
        ctx.fillRect(0,280, 600, 60);
        ctx.fillStyle = bmwstreet;
        ctx.fillRect(0,60, 600, 220);
        ctx.fillStyle = &quot;#FFF&quot;;
        ctx.fillRect(0,60,600,3);
        ctx.fillRect(0,277,600,3);
    }
    // create a line
    line = new CAAT.ShapeActor().
          setLocation(20, (director.height / 2) - 4).
          setSize(100, 8).
          setShape(CAAT.ShapeActor.prototype.SHAPE_RECTANGLE).
          enableEvents(false).
          setFillStyle( &#039;#FFF&#039; );
        
    // create a path.
    movingPath= new CAAT.PathActor().
    setBounds(0,0,600, 340).
        create().
        setPath(
            new CAAT.Path().beginPath(20,(director.height / 2) - 4).addLineTo(580, (director.height / 2) - 4).endPath().
        setInteractive(false));

    // moving the line
    var path_behavior= new CAAT.PathBehavior().
            setPath( movingPath ).
            setFrameTime(0,5000).
            setCycle(true).
            setAutoRotate( false );
    
    // ADD shapes and stuff
    scene_bg.addChild (bg);
    scene_bg.addChild(line);
    scene_bg.addChild( movingPath );
    line.addBehavior(path_behavior);
 
 
CAAT.loop(30);</description>
		<content:encoded><![CDATA[<p>Hey hyperandroid,</p>
<p>i&#8217;ve tried to do a very simple animation with CAAT. I&#8217;ve clicked and search through most of the samples on the tutorial page, but didn&#8217;t find the error of my code. Would be great if you or anyone else could help me&#8230; </p>
<p>cheers!</p>
<p>The Error is:<br />
- his.path.getPosition is not a function<br />
- var point= this.path.getPosition(time);<br />
- caat.js (Zeile 3779)And thats the code:</p>
<p>    // DRAW THE CANVAS<br />
    var director = new CAAT.Director().initialize(<br />
        600,    // 100 pixels wide<br />
        340,    // 100 pixels across<br />
        document.getElementById(&#8216;canv&#8217;));<br />
       <br />
     // CREATE FIRST SZENE<br />
    var scene_bg = director.createScene();        </p>
<p>    // DECLARE COLORS<br />
    var bmwgrey = &#8216;#888&#8242;;<br />
    var bmwstreet = &#8216;#ccc&#8217;;<br />
   <br />
     // PAINT BG<br />
    var bg = new CAAT.Actor().<br />
        setBounds(0,0,600,340).<br />
        enableEvents(false);<br />
    bg.paint = function() {<br />
        var ctx = director.ctx;   <br />
        ctx.fillStyle = bmwgrey;<br />
        ctx.fillRect(0,0, 600, 60);<br />
        ctx.fillRect(0,280, 600, 60);<br />
        ctx.fillStyle = bmwstreet;<br />
        ctx.fillRect(0,60, 600, 220);<br />
        ctx.fillStyle = &#8220;#FFF&#8221;;<br />
        ctx.fillRect(0,60,600,3);<br />
        ctx.fillRect(0,277,600,3);<br />
    }<br />
    // create a line<br />
    line = new CAAT.ShapeActor().<br />
          setLocation(20, (director.height / 2) &#8211; 4).<br />
          setSize(100, 8).<br />
          setShape(CAAT.ShapeActor.prototype.SHAPE_RECTANGLE).<br />
          enableEvents(false).<br />
          setFillStyle( &#8216;#FFF&#8217; );<br />
       <br />
    // create a path.<br />
    movingPath= new CAAT.PathActor().<br />
    setBounds(0,0,600, 340).<br />
        create().<br />
        setPath(<br />
            new CAAT.Path().beginPath(20,(director.height / 2) &#8211; 4).addLineTo(580, (director.height / 2) &#8211; 4).endPath().<br />
        setInteractive(false));</p>
<p>    // moving the line<br />
    var path_behavior= new CAAT.PathBehavior().<br />
            setPath( movingPath ).<br />
            setFrameTime(0,5000).<br />
            setCycle(true).<br />
            setAutoRotate( false );<br />
   <br />
    // ADD shapes and stuff<br />
    scene_bg.addChild (bg);<br />
    scene_bg.addChild(line);<br />
    scene_bg.addChild( movingPath );<br />
    line.addBehavior(path_behavior);<br />
 <br />
 <br />
CAAT.loop(30);</p>
]]></content:encoded>
	</item>
</channel>
</rss>

