<?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:meneame="http://meneame.net/faq-es.php"
 >
<channel>
	<title>Menéame: comentarios [2367640]</title>
	<link>http://www.meneame.net</link>
	<image><title>www.meneame.net</title><link>http://www.meneame.net</link><url>http://cdn.mnmstatic.net/m/ocio/img/mnm/eli-rss.png</url></image>
	<description>Sitio colaborativo de publicación y comunicación entre blogs</description>
	<pubDate>Sun, 08 Mar 2015 21:33:32 +0000</pubDate>
	<generator>http://blog.meneame.net/</generator>
	<language>es</language>
	<item>
		<meneame:comment_id>16448857</meneame:comment_id>
		<meneame:link_id>2367640</meneame:link_id>
		<meneame:order>8</meneame:order>
		<meneame:user>mcfgdbbn3</meneame:user>
		<meneame:votes>1</meneame:votes>
		<meneame:karma>21</meneame:karma>
		<meneame:url>https://www.meneame.net/m/ocio/simulador-gravedad</meneame:url>
		<title>#8 Simulador de Gravedad</title>
		<link>https://www.meneame.net/m/ocio/simulador-gravedad/c08#c-8</link>
		<pubDate>Sun, 08 Mar 2015 21:33:32 +0000</pubDate>
		<dc:creator>mcfgdbbn3</dc:creator>
		<guid>https://www.meneame.net/m/ocio/simulador-gravedad/c08#c-8</guid>
		<description><![CDATA[<p><a class="tooltip c:2367640-5" href="https://www.meneame.net/m/ocio/simulador-gravedad/c05#c-5" rel="nofollow">#5</a>: Intenta añadir el código, si yo pude añadir efecto Doppler... ¡Tu también puedes! <img data-src="https://cdn.mnmstatic.net/v_149/img/menemojis/36/tongue.png" alt=":-P" title=":-P" width="18" height="18" src="https://cdn.mnmstatic.net/v_149/img/g.gif" class="emoji lazy" /><br />
<br />
Aquí lo tienes, sería si mirásemos desde la derecha: <a href="http://codepen.io/anon/pen/qEMpyr" title="codepen.io/anon/pen/qEMpyr" rel="nofollow">codepen.io/anon/pen/qEMpyr</a></p><p>&#187;&nbsp;autor: <strong>mcfgdbbn3</strong></p>]]></description>
	</item>

	<item>
		<meneame:comment_id>16448058</meneame:comment_id>
		<meneame:link_id>2367640</meneame:link_id>
		<meneame:order>7</meneame:order>
		<meneame:user>mcfgdbbn3</meneame:user>
		<meneame:votes>1</meneame:votes>
		<meneame:karma>21</meneame:karma>
		<meneame:url>https://www.meneame.net/m/ocio/simulador-gravedad</meneame:url>
		<title>#7 Simulador de Gravedad</title>
		<link>https://www.meneame.net/m/ocio/simulador-gravedad/c07#c-7</link>
		<pubDate>Sun, 08 Mar 2015 18:32:12 +0000</pubDate>
		<dc:creator>mcfgdbbn3</dc:creator>
		<guid>https://www.meneame.net/m/ocio/simulador-gravedad/c07#c-7</guid>
		<description><![CDATA[<p>Cambiad este trozo de código si queréis tener desplazamiento en las longitudes de onda (empieza en rojo y cuanto más rápido va una partícula más tiende al morado, pasando por tonos amrillentos, verdos, blanquecinos y azulados): <img data-src="https://cdn.mnmstatic.net/v_149/img/menemojis/36/tongue.png" alt=":-P" title=":-P" width="18" height="18" src="https://cdn.mnmstatic.net/v_149/img/g.gif" class="emoji lazy" /><br />
<br />
Edito: también podéis entrar aquí: <a href="http://codepen.io/anon/pen/Wbgdxg" title="codepen.io/anon/pen/Wbgdxg" rel="nofollow">codepen.io/anon/pen/Wbgdxg</a><br />
<br />
// Start Update<br />
<br />
    var loop = function() {<br />
 var i, len, g, p;<br />
<br />
 context.save();<br />
 context.fillStyle = BACKGROUND_COLOR;<br />
 context.fillRect(0, 0, screenWidth, screenHeight);<br />
 context.fillStyle = grad;<br />
 context.fillRect(0, 0, screenWidth, screenHeight);<br />
 context.restore();<br />
<br />
 for (i = 0, len = gravities.length; i &#60; len; i++) {<br />
 g = gravities[i];<br />
 if (g.dragging) g.drag(mouse);<br />
 g.render(context);<br />
 if (g.destroyed) {<br />
 gravities.splice(i, 1);<br />
 len--;<br />
 i--;<br />
 }<br />
 }<br />
 <br />
 bufferCtx.save();<br />
 bufferCtx.globalCompositeOperation = 'destination-out';<br />
 bufferCtx.globalAlpha = 0.35;<br />
 bufferCtx.fillRect(0, 0, screenWidth, screenHeight);<br />
 bufferCtx.restore();<br />
<br />
 // パーティクルをバッファに描画<br />
 // for (i = 0, len = particles.length; i &#60; len; i++) {<br />
 // particles[i].render(bufferCtx);<br />
 // }<br />
 len = particles.length;<br />
 bufferCtx.save();<br />
 bufferCtx.lineCap = bufferCtx.lineJoin = 'round';<br />
 bufferCtx.lineWidth = PARTICLE_RADIUS * 2;<br />
 for (i = 0; i &#60; len; i++) {<br />
 p = particles[i];<br />
 p.update();<br />
 var tono = p._speed.x * p._speed.x +  p._speed.y *  p._speed.y;<br />
 tono = tono.toFixed(0) * 2;<br />
 if (tono &#62; 360) tono = 360;<br />
 var lum = Math.abs(tono - 180) / 3.6;<br />
 lum = 100 - lum.toFixed(0);<br />
 /*var rojo = 255 - tono;<br />
 var verde = Math.abs(tono - 128) * 2;<br />
 var azul = tono<br />
 if(i == 18) <br />
   document.getElementById('aaaa').innerHTML = p._speed.x * p._speed.x +  p._speed.y *  p._speed.y;;*/<br />
 bufferCtx.beginPath();<br />
 bufferCtx.moveTo(p.x, p.y);<br />
 bufferCtx.fillStyle = 'hsl(' + tono + ', 100%, ' + lum +'%)';<br />
 //'rgb(' + rojo + ',' + verde + ',' + azul + ')';<br />
 bufferCtx.strokeStyle = 'hsl(' + tono + ', 100%, ' + lum +'%)';<br />
 bufferCtx.lineTo(p._latest.x, p._latest.y);<br />
 bufferCtx.stroke();<br />
 }<br />
 /*   bufferCtx.fillStyle = bufferCtx.strokeStyle = 'hsl(' + tono + ', 100%, 50%)';<br />
 bufferCtx.moveTo(400, 100);<br />
 bufferCtx.lineTo(50,40);<br />
 bufferCtx.stroke();*/<br />
 for (i = 0; i &#60; len; i++) {<br />
 p = particles[i];<br />
 var tono = p._speed.x * p._speed.x +  p._speed.y *  p._speed.y;<br />
 tono = tono.toFixed(0) * 2;<br />
 if (tono &#62; 360) tono = 360;<br />
 var lum = Math.abs(tono - 180) / 3.6;<br />
 lum = 100 - lum.toFixed(0);<br />
 /*var rojo = 255 - tono;<br />
 var verde = Math.abs(tono - 128) * 2;<br />
 var azul = tono;*/<br />
 bufferCtx.beginPath();<br />
 bufferCtx.moveTo(p.x, p.y);<br />
 bufferCtx.fillStyle = bufferCtx.strokeStyle ='hsl(' + tono + ', 100%, 50%)';<br />
 bufferCtx.arc(p.x, p.y, p.radius, 0, Math.PI * 2, false);<br />
 bufferCtx.fill();<br />
 }<br />
 bufferCtx.restore();<br />
 context.drawImage(bufferCvs, 0, 0);<br />
<br />
 // バッファをキャンバスに描画<br />
<br />
 requestAnimationFrame(loop);<br />
    };<br />
    loop();<br />
<br />
})();</p><p>&#187;&nbsp;autor: <strong>mcfgdbbn3</strong></p>]]></description>
	</item>

	<item>
		<meneame:comment_id>16435064</meneame:comment_id>
		<meneame:link_id>2367640</meneame:link_id>
		<meneame:order>6</meneame:order>
		<meneame:user>starblank</meneame:user>
		<meneame:votes>0</meneame:votes>
		<meneame:karma>7</meneame:karma>
		<meneame:url>https://www.meneame.net/m/ocio/simulador-gravedad</meneame:url>
		<title>#6 Simulador de Gravedad</title>
		<link>https://www.meneame.net/m/ocio/simulador-gravedad/c06#c-6</link>
		<pubDate>Fri, 06 Mar 2015 09:30:54 +0000</pubDate>
		<dc:creator>starblank</dc:creator>
		<guid>https://www.meneame.net/m/ocio/simulador-gravedad/c06#c-6</guid>
		<description><![CDATA[<p>Parece un banco de sardinas</p><p>&#187;&nbsp;autor: <strong>starblank</strong></p>]]></description>
	</item>

	<item>
		<meneame:comment_id>16433702</meneame:comment_id>
		<meneame:link_id>2367640</meneame:link_id>
		<meneame:order>5</meneame:order>
		<meneame:user>avpag</meneame:user>
		<meneame:votes>1</meneame:votes>
		<meneame:karma>20</meneame:karma>
		<meneame:url>https://www.meneame.net/m/ocio/simulador-gravedad</meneame:url>
		<title>#5 Simulador de Gravedad</title>
		<link>https://www.meneame.net/m/ocio/simulador-gravedad/c05#c-5</link>
		<pubDate>Fri, 06 Mar 2015 00:12:22 +0000</pubDate>
		<dc:creator>avpag</dc:creator>
		<guid>https://www.meneame.net/m/ocio/simulador-gravedad/c05#c-5</guid>
		<description><![CDATA[<p><a class="tooltip c:2367640-3" href="https://www.meneame.net/m/ocio/simulador-gravedad/c03#c-3" rel="nofollow">#3</a> <a class="tooltip c:2367640-4" href="https://www.meneame.net/m/ocio/simulador-gravedad/c04#c-4" rel="nofollow">#4</a> a mi también me ha cortado el rollo que los puntos negros no puedan orbitar entre ellos y se junten tan rápido, pero dejándolos estáticos o intentando que no se atraigan entre sí se puede hacer de todo con las partículas, a mi me ha tenido enganchado una hora!</p><p>&#187;&nbsp;autor: <strong>avpag</strong></p>]]></description>
	</item>

	<item>
		<meneame:comment_id>16432117</meneame:comment_id>
		<meneame:link_id>2367640</meneame:link_id>
		<meneame:order>4</meneame:order>
		<meneame:user>--177577--</meneame:user>
		<meneame:votes>4</meneame:votes>
		<meneame:karma>50</meneame:karma>
		<meneame:url>https://www.meneame.net/m/ocio/simulador-gravedad</meneame:url>
		<title>#4 Simulador de Gravedad</title>
		<link>https://www.meneame.net/m/ocio/simulador-gravedad/c04#c-4</link>
		<pubDate>Thu, 05 Mar 2015 19:03:11 +0000</pubDate>
		<dc:creator>--177577--</dc:creator>
		<guid>https://www.meneame.net/m/ocio/simulador-gravedad/c04#c-4</guid>
		<description><![CDATA[<p><a class="tooltip c:2367640-3" href="https://www.meneame.net/m/ocio/simulador-gravedad/c03#c-3" rel="nofollow">#3</a> Ahora que caes, caigo. Deberían incluso haber objeto que establecieran una órbita estable, supongo...</p><p>&#187;&nbsp;autor: <strong>--177577--</strong></p>]]></description>
	</item>

	<item>
		<meneame:comment_id>16432067</meneame:comment_id>
		<meneame:link_id>2367640</meneame:link_id>
		<meneame:order>3</meneame:order>
		<meneame:user>meprohibenpensar</meneame:user>
		<meneame:votes>4</meneame:votes>
		<meneame:karma>53</meneame:karma>
		<meneame:url>https://www.meneame.net/m/ocio/simulador-gravedad</meneame:url>
		<title>#3 Simulador de Gravedad</title>
		<link>https://www.meneame.net/m/ocio/simulador-gravedad/c03#c-3</link>
		<pubDate>Thu, 05 Mar 2015 18:55:34 +0000</pubDate>
		<dc:creator>meprohibenpensar</dc:creator>
		<guid>https://www.meneame.net/m/ocio/simulador-gravedad/c03#c-3</guid>
		<description><![CDATA[<p>Estaría bien si los &#34;puntos de gravedad también giraran. Ya que es muy raro que solo las partículas giren.</p><p>&#187;&nbsp;autor: <strong>meprohibenpensar</strong></p>]]></description>
	</item>

	<item>
		<meneame:comment_id>16432020</meneame:comment_id>
		<meneame:link_id>2367640</meneame:link_id>
		<meneame:order>2</meneame:order>
		<meneame:user>--418333--</meneame:user>
		<meneame:votes>3</meneame:votes>
		<meneame:karma>52</meneame:karma>
		<meneame:url>https://www.meneame.net/m/ocio/simulador-gravedad</meneame:url>
		<title>#2 Simulador de Gravedad</title>
		<link>https://www.meneame.net/m/ocio/simulador-gravedad/c02#c-2</link>
		<pubDate>Thu, 05 Mar 2015 18:44:17 +0000</pubDate>
		<dc:creator>--418333--</dc:creator>
		<guid>https://www.meneame.net/m/ocio/simulador-gravedad/c02#c-2</guid>
		<description><![CDATA[<p>Mooola... con 300 partículas a toda leche. <img data-src="https://cdn.mnmstatic.net/v_149/img/menemojis/36/cheesy.png" alt=":-&#62;" title=":-&#62;" width="18" height="18" src="https://cdn.mnmstatic.net/v_149/img/g.gif" class="emoji lazy" /></p><p>&#187;&nbsp;autor: <strong>--418333--</strong></p>]]></description>
	</item>

	<item>
		<meneame:comment_id>16432007</meneame:comment_id>
		<meneame:link_id>2367640</meneame:link_id>
		<meneame:order>1</meneame:order>
		<meneame:user>--177577--</meneame:user>
		<meneame:votes>1</meneame:votes>
		<meneame:karma>27</meneame:karma>
		<meneame:url>https://www.meneame.net/m/ocio/simulador-gravedad</meneame:url>
		<title>#1 Simulador de Gravedad</title>
		<link>https://www.meneame.net/m/ocio/simulador-gravedad/c01#c-1</link>
		<pubDate>Thu, 05 Mar 2015 18:41:34 +0000</pubDate>
		<dc:creator>--177577--</dc:creator>
		<guid>https://www.meneame.net/m/ocio/simulador-gravedad/c01#c-1</guid>
		<description><![CDATA[<p>Sin palabras <img data-src="https://cdn.mnmstatic.net/v_149/img/menemojis/36/smiley.png" alt=":-)" title=":-)" width="18" height="18" src="https://cdn.mnmstatic.net/v_149/img/g.gif" class="emoji lazy" /></p><p>&#187;&nbsp;autor: <strong>--177577--</strong></p>]]></description>
	</item>

</channel>
</rss>
