<?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"

			>

	<channel>
		<title>Cycling 74  &#187;  Topic: random color letter with mgraphics</title>
		<atom:link href="http://cycling74.com/forums/topic/random-color-letter-with-mgraphics/feed" rel="self" type="application/rss+xml" />
		<link>http://cycling74.com/forums/topic/random-color-letter-with-mgraphics/feed</link>
		<description></description>
		<pubDate>Thu, 20 Jun 2013 05:12:46 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.2.4</generator>
		<language></language>

		
														
					
				<item>
					<guid>http://cycling74.com/forums/topic/random-color-letter-with-mgraphics/#post-64920</guid>
					<title><![CDATA[random color letter with mgraphics]]></title>
					<link>http://cycling74.com/forums/topic/random-color-letter-with-mgraphics/#post-64920</link>
					<pubDate>Thu, 25 Oct 2012 13:15:03 +0000</pubDate>
					<dc:creator>freepoulite</dc:creator>

					<description>
						<![CDATA[
						<p>Hello</p>
<p>I&#8217;m trying to write a string with random color for each letter<br />
is anyone know how to do this with jsui?</p>
<p>here&#8217;s my code first test,the problem is that between each letter the &#8220;pencil&#8221; go to up/left corner&#8230; i could write &#8220;move_to(x,y)&#8221; but i don&#8217;t know the width of the precedent letter&#8230; </p>
<p>*************************************************************<br />
mgraphics.init();<br />
mgraphics.relative_coords = 1;<br />
//mgraphics.autofill = 0;</p>
<p>var stringA = new Array();<br />
var strCl = new String (&#8220;boby&#8221;);<br />
mgraphics.redraw();</p>
<p>function bang(){<br />
  mgraphics.redraw();<br />
}</p>
<p>function paint(){<br />
         mgraphics.move_to(-0.8, 0.5);<br />
	 mgraphics.set_font_size(60);</p>
<p>    for (e = 0; e < strCl.length; e++) {<br />
       with(mgraphics){<br />
              set_source_rgb(Math.random(),Math.random(),Math.random());<br />
	      text_path(strCl.charAt(e));<br />
	      fill();<br />
	    }<br />
    }</p>
<p>}</p>
<p>thanks</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/random-color-letter-with-mgraphics/#post-234065</guid>
					<title><![CDATA[Re: random color letter with mgraphics]]></title>
					<link>http://cycling74.com/forums/topic/random-color-letter-with-mgraphics/#post-234065</link>
					<pubDate>Fri, 26 Oct 2012 08:26:33 +0000</pubDate>
					<dc:creator>freepoulite</dc:creator>

					<description>
						<![CDATA[
						<p>up :)</p>
<p>please&#8230;</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/random-color-letter-with-mgraphics/#post-234066</guid>
					<title><![CDATA[Re: random color letter with mgraphics]]></title>
					<link>http://cycling74.com/forums/topic/random-color-letter-with-mgraphics/#post-234066</link>
					<pubDate>Fri, 26 Oct 2012 10:13:41 +0000</pubDate>
					<dc:creator>Darwin Grosse</dc:creator>

					<description>
						<![CDATA[
						<p>If you look in here:</p>
<p><a href="http://cycling74.com/forums/topic.php?id=36044" rel="nofollow">http://cycling74.com/forums/topic.php?id=36044</a></p>
<p>You will find all of the mgraphics Patch-a-day stuff. On November 30th, I did a routine that did text justification, and I used the &#8220;text_measure&#8221; routine to determine where things were at. That patch/javascript combo will probably give you enough information to do what you want.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/random-color-letter-with-mgraphics/#post-234067</guid>
					<title><![CDATA[Re: random color letter with mgraphics]]></title>
					<link>http://cycling74.com/forums/topic/random-color-letter-with-mgraphics/#post-234067</link>
					<pubDate>Fri, 26 Oct 2012 15:21:03 +0000</pubDate>
					<dc:creator>freepoulite</dc:creator>

					<description>
						<![CDATA[
						<p>thanks a lot Darwin, I haven&#8217;t noticed &#8221; text_measure&#8221;&#8230; that is what i need<br />
your patch a day serie was great!!</p>
<p>PB</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

