<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Bienvenidos al Cabaret &#187; animaciones</title>
	<atom:link href="http://thecabaret.wordpress.com/category/animaciones/feed/" rel="self" type="application/rss+xml" />
	<link>http://thecabaret.wordpress.com</link>
	<description>¿A alguien no le gusta programar?</description>
	<lastBuildDate>Sun, 24 Feb 2008 00:46:31 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>es</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='thecabaret.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/d2108919d59e6a448130c422657c68b9?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Bienvenidos al Cabaret &#187; animaciones</title>
		<link>http://thecabaret.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://thecabaret.wordpress.com/osd.xml" title="Bienvenidos al Cabaret" />
		<item>
		<title>Bienvenidos a las animaciones</title>
		<link>http://thecabaret.wordpress.com/2006/12/23/bienvenidos-a-las-animaciones/</link>
		<comments>http://thecabaret.wordpress.com/2006/12/23/bienvenidos-a-las-animaciones/#comments</comments>
		<pubDate>Sat, 23 Dec 2006 15:03:12 +0000</pubDate>
		<dc:creator>david::</dc:creator>
				<category><![CDATA[animaciones]]></category>

		<guid isPermaLink="false">http://thecabaret.wordpress.com/2006/12/23/bienvenidos-a-las-animaciones/</guid>
		<description><![CDATA[
Ya estamos en navidades, tiempo de turrón de chocolate, de conseguir los apuntes que faltan y empezar a estudiar para febrero.
En estos últimos días me he dedicado a hacer el soporte para animaciones vía plugins. No es tan bonito como usar python, ni mucho menos, pero está chulo. En la foto de arriba se ve [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thecabaret.wordpress.com&blog=505707&post=10&subd=thecabaret&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://www.flickr.com/photos/voiser/330853010/" title="Photo Sharing"><img src="http://farm1.static.flickr.com/154/330853010_1eafb6c7d3.jpg" alt="Imagen 1" border="0" height="380" width="500" /></a><br />
Ya estamos en navidades, tiempo de turrón de chocolate, de conseguir los apuntes que faltan y empezar a estudiar para febrero.</p>
<p>En estos últimos días me he dedicado a hacer el soporte para animaciones vía plugins. No es tan bonito como usar python, ni mucho menos, pero está chulo. En la foto de arriba se ve una transparencia que muestra el código completo de un plugin tipo &#8220;persiana horizontal&#8221;. Y si, es C. Hay un <a href="https://forja.rediris.es/websvn/wsvn/csl-cabaret/src/CabaretElement.h?op=file&amp;rev=0&amp;sc=0">archivo de cabecera</a> que define una serie de macros que simplifican la sintaxis. De esta forma, quien quiera crear un plugin sólo debe saber unas pocas cosas:</p>
<ul>
<li>La animación hace referencia a un objeto concreto referenciado por &#8220;object&#8221; cuyas propiedades se pueden alterar y consultar con la notación típica &#8220;objeto.propiedad&#8221;</li>
<li>La transición es una función del tiempo que se identifica por la variable time. La aparición se hace iterando desde time=0 hasta time=1 y la desaparición desde time=1 hasta time=0</li>
<li>Las propiedades del objeto son:
<ul>
<li>posición: x, y</li>
<li>tamaño: w, h</li>
<li>color: r,g,b</li>
<li>nivel de transparencia: a</li>
</ul>
</li>
<li>Las macros W y H hacen referencia al ancho y alto de la transparencia. No son propias de cada objeto.</li>
</ul>
<p>Espero que guste</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/thecabaret.wordpress.com/10/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/thecabaret.wordpress.com/10/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/thecabaret.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/thecabaret.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/thecabaret.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/thecabaret.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/thecabaret.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/thecabaret.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/thecabaret.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/thecabaret.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/thecabaret.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/thecabaret.wordpress.com/10/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=thecabaret.wordpress.com&blog=505707&post=10&subd=thecabaret&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://thecabaret.wordpress.com/2006/12/23/bienvenidos-a-las-animaciones/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/c0c03516ee477185bf30b15be56ee4d4?s=96&#38;d=identicon" medium="image">
			<media:title type="html">david::</media:title>
		</media:content>

		<media:content url="http://farm1.static.flickr.com/154/330853010_1eafb6c7d3.jpg" medium="image">
			<media:title type="html">Imagen 1</media:title>
		</media:content>
	</item>
	</channel>
</rss>