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

<channel>
	<title>Silveira Neto &#187; colors</title>
	<atom:link href="http://silveiraneto.net/tag/colors/feed/" rel="self" type="application/rss+xml" />
	<link>http://silveiraneto.net</link>
	<description>the world is a pixel</description>
	<lastBuildDate>Sun, 08 Jan 2012 05:17:57 +0000</lastBuildDate>
	<language>pt-br</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
		<item>
		<title>Terminal with colors in OpenSolaris</title>
		<link>http://silveiraneto.net/2008/05/07/terminal-with-colors-in-opensolaris/</link>
		<comments>http://silveiraneto.net/2008/05/07/terminal-with-colors-in-opensolaris/#comments</comments>
		<pubDate>Thu, 08 May 2008 02:51:25 +0000</pubDate>
		<dc:creator>Silveira</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[bashrc]]></category>
		<category><![CDATA[colors]]></category>
		<category><![CDATA[ls]]></category>
		<category><![CDATA[Opensolaris]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[Sun]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://silveiraneto.net/?p=863</guid>
		<description><![CDATA[As the earlies versions of OpenSolaris, my terminal is without colors. That&#8217;s a little annoying. As the default user uses Bash you can configure your Bash options in the file ~/.bashrc. Insert in the last lines of your .bashrc file: alias ls=&#8217;ls &#8211;color=auto&#8217; Save, close and open your terminal (or just type source ~/.bashrc).]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><img class="alignnone size-full wp-image-865" title="opensolaris bash without colors" src="http://silveiraneto.net/wp-content/uploads/2008/05/opensolaris-bash-without-colors.png" alt="" /></p>
<p>As the earlies versions of OpenSolaris, my terminal is without colors. That&#8217;s a little annoying. As the default user uses Bash you can configure your Bash options in the file <em>~/.bashrc</em>. Insert in the last lines of your .bashrc file:</p>
<blockquote><p>alias ls=&#8217;ls &#8211;color=auto&#8217;</p></blockquote>
<p>Save, close and open your terminal (or just type <em>source ~/.bashrc</em>).</p>
<p style="text-align: center;"><img class="alignnone size-full wp-image-864" title="OpenSolaris bash with colors" src="http://silveiraneto.net/wp-content/uploads/2008/05/opensolaris-bash-with-colors.png" alt="" /></p>
]]></content:encoded>
			<wfw:commentRss>http://silveiraneto.net/2008/05/07/terminal-with-colors-in-opensolaris/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>JavaFX: Color picker</title>
		<link>http://silveiraneto.net/2008/02/19/javafx-color-picker/</link>
		<comments>http://silveiraneto.net/2008/02/19/javafx-color-picker/#comments</comments>
		<pubDate>Wed, 20 Feb 2008 01:56:01 +0000</pubDate>
		<dc:creator>Silveira</dc:creator>
				<category><![CDATA[english]]></category>
		<category><![CDATA[color]]></category>
		<category><![CDATA[color picker]]></category>
		<category><![CDATA[colors]]></category>
		<category><![CDATA[draggable]]></category>
		<category><![CDATA[JavaFX]]></category>
		<category><![CDATA[jfx]]></category>
		<category><![CDATA[jfxbest]]></category>
		<category><![CDATA[netbeans]]></category>
		<category><![CDATA[openjfx]]></category>
		<category><![CDATA[screencast]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[vídeo]]></category>

		<guid isPermaLink="false">http://silveiraneto.net/2008/02/19/javafx-color-picker/</guid>
		<description><![CDATA[An simple color picker that can be also used as a gadget. import javafx.ui.*; import javafx.ui.canvas.*; var colors = [red:Color, orange:Color, yellow:Color, green:Color, cyan:Color,blue:Color, magenta:Color, gray:Color]; var chosenColor: Paint; chosenColor = black:Color; var x = 120; var y = 70; Canvas{ content: Group{ transform: bind translate(x,y) content: [Star{ points: sizeof colors rin: 30 rout: 50 [...]]]></description>
			<content:encoded><![CDATA[<p>An simple color picker that can be also used as a gadget.</p>
<p><center><object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/nlldqniJiDg&#038;rel=1"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/nlldqniJiDg&#038;rel=1" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object></center></p>
<pre name="code" class="JAVA">
import javafx.ui.*;
import javafx.ui.canvas.*;

var colors = [red:Color, orange:Color, yellow:Color, green:Color,
     cyan:Color,blue:Color, magenta:Color, gray:Color];

var chosenColor: Paint;
chosenColor = black:Color;

var x = 120;
var y = 70;

Canvas{
    content: Group{
        transform: bind translate(x,y)
        content: [Star{
            points: sizeof colors
            rin: 30
            rout: 50
            fill: bind chosenColor
            onMouseDragged: operation(e) {
                x += e.localDragTranslation.x;
                y += e.localDragTranslation.y;
            }
        },
        foreach (i in [1..sizeof colors]) Circle {
            var: self
            transform: [rotate(i*360/sizeof colors,0,0), translate(50,0)]
            radius: 10
            fill: colors[i%sizeof colors]
            onMouseClicked: operation (e){
                chosenColor = self.fill;
            }
        }]
    }
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://silveiraneto.net/2008/02/19/javafx-color-picker/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

