<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://miniscript.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Chaos95</id>
	<title>MiniScript Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://miniscript.org/w/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Chaos95"/>
	<link rel="alternate" type="text/html" href="http://miniscript.org/wiki/Special:Contributions/Chaos95"/>
	<updated>2026-05-03T20:31:44Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.34.0</generator>
	<entry>
		<id>http://miniscript.org/w/index.php?title=Color&amp;diff=1019</id>
		<title>Color</title>
		<link rel="alternate" type="text/html" href="http://miniscript.org/w/index.php?title=Color&amp;diff=1019"/>
		<updated>2022-11-14T23:29:41Z</updated>

		<summary type="html">&lt;p&gt;Chaos95: Add Farmtronics category&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Color in [[Mini Micro]], [[Farmtronics]], and [[Soda]] is represented in RGB or RGBA hexadecimal format, similar to [https://htmlcolorcodes.com/ HTML color codes].&lt;br /&gt;
&lt;br /&gt;
[[File:ColorString.png|frameless]]&lt;br /&gt;
&lt;br /&gt;
The leading pound sign (&amp;lt;c&amp;gt;#&amp;lt;/c&amp;gt;) is required, as are the six digits representing the amounts of red, green, and blue in the color.  The last two digits, representing alpha, are optional.  If not specified, they are assumed to be FF (fully opaque).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;c&amp;gt;color&amp;lt;/c&amp;gt; is also the name of a standard module defined in &amp;lt;c&amp;gt;/sys/startup.ms&amp;lt;/c&amp;gt;.  The &amp;lt;c&amp;gt;color&amp;lt;/c&amp;gt; module defines the following 20 named colors:&lt;br /&gt;
&lt;br /&gt;
[[File:ColorTable.png|frameless|505px]]&lt;br /&gt;
&lt;br /&gt;
In addition to the above named colors, the &amp;lt;c&amp;gt;color&amp;lt;/c&amp;gt; module defines the following methods:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Method or Property !! Purpose&lt;br /&gt;
|-&lt;br /&gt;
| [[color.rgb]](''red'', ''green'', ''blue'')|| return a color string from red, green, and blue values in the range 0-255&lt;br /&gt;
|-&lt;br /&gt;
| [[color.rgba]](''red'', ''green'', ''blue'', ''alpha'') || return a color string from red, green, blue, and alpha values in the range 0-255&lt;br /&gt;
|-&lt;br /&gt;
| [[color.lerp]](''colorA'', ''colorB'', ''t'') || return a color interpolated between ''colorA'' and ''colorB'' by amount ''t'' (0-1)&lt;br /&gt;
|-&lt;br /&gt;
| [[color.toList]](''colorStr'') || convert a color into a list of the form &amp;lt;c&amp;gt;[red, green, blue, alpha]&amp;lt;/c&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| [[color.fromList]](''colorList'') || convert a list of the above form into a color string&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Usage Notes ==&lt;br /&gt;
&lt;br /&gt;
System functions that return a color from one of the displays include the alpha component, even if it was left implied when the color was drawn or assigned.  You must take this into account when comparing colors, for example by adding &amp;quot;FF&amp;quot; to any 7-character color string to extend it to the full 9 characters before comparing.&lt;br /&gt;
&lt;br /&gt;
[[Soda]] does not yet have a built-in &amp;lt;c&amp;gt;color&amp;lt;/c&amp;gt; module.  It does, however, represent colors in the same string format.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
The following example changes the text color to bright green, using the named color &amp;lt;c&amp;gt;lime&amp;lt;/c&amp;gt; in the &amp;lt;c&amp;gt;color&amp;lt;/c&amp;gt; module.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ms&amp;gt;text.color = color.lime&lt;br /&gt;
print &amp;quot;Assigned &amp;quot; + color.lime + &amp;quot;, and text.color is now &amp;quot; + text.color&amp;lt;/ms&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Output:&lt;br /&gt;
  Assigned #00FF00, and text.color is now #00FF00FF&lt;br /&gt;
&lt;br /&gt;
Notice that the color string assigned was only 6 digits (7 characters total), but the color string we get back is a full 9 characters long.  These two representations of &amp;quot;lime&amp;quot; color are equivalent.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Mini Micro]]&lt;br /&gt;
[[Category:Soda]]&lt;br /&gt;
[[Category:Farmtronics]]&lt;/div&gt;</summary>
		<author><name>Chaos95</name></author>
		
	</entry>
	<entry>
		<id>http://miniscript.org/w/index.php?title=Color&amp;diff=1017</id>
		<title>Color</title>
		<link rel="alternate" type="text/html" href="http://miniscript.org/w/index.php?title=Color&amp;diff=1017"/>
		<updated>2022-11-14T23:09:19Z</updated>

		<summary type="html">&lt;p&gt;Chaos95: Fix a typo&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Color in [[Mini Micro]] and [[Soda]] is represented in RGB or RGBA hexadecimal format, similar to [https://htmlcolorcodes.com/ HTML color codes].&lt;br /&gt;
&lt;br /&gt;
[[File:ColorString.png|frameless]]&lt;br /&gt;
&lt;br /&gt;
The leading pound sign (&amp;lt;c&amp;gt;#&amp;lt;/c&amp;gt;) is required, as are the six digits representing the amounts of red, green, and blue in the color.  The last two digits, representing alpha, are optional.  If not specified, they are assumed to be FF (fully opaque).&lt;br /&gt;
&lt;br /&gt;
&amp;lt;c&amp;gt;color&amp;lt;/c&amp;gt; is also the name of a standard module defined in &amp;lt;c&amp;gt;/sys/startup.ms&amp;lt;/c&amp;gt;.  The &amp;lt;c&amp;gt;color&amp;lt;/c&amp;gt; module defines the following 20 named colors:&lt;br /&gt;
&lt;br /&gt;
[[File:ColorTable.png|frameless|505px]]&lt;br /&gt;
&lt;br /&gt;
In addition to the above named colors, the &amp;lt;c&amp;gt;color&amp;lt;/c&amp;gt; module defines the following methods:&lt;br /&gt;
&lt;br /&gt;
{| class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Method or Property !! Purpose&lt;br /&gt;
|-&lt;br /&gt;
| [[color.rgb]](''red'', ''green'', ''blue'')|| return a color string from red, green, and blue values in the range 0-255&lt;br /&gt;
|-&lt;br /&gt;
| [[color.rgba]](''red'', ''green'', ''blue'', ''alpha'') || return a color string from red, green, blue, and alpha values in the range 0-255&lt;br /&gt;
|-&lt;br /&gt;
| [[color.lerp]](''colorA'', ''colorB'', ''t'') || return a color interpolated between ''colorA'' and ''colorB'' by amount ''t'' (0-1)&lt;br /&gt;
|-&lt;br /&gt;
| [[color.toList]](''colorStr'') || convert a color into a list of the form &amp;lt;c&amp;gt;[red, green, blue, alpha]&amp;lt;/c&amp;gt;&lt;br /&gt;
|-&lt;br /&gt;
| [[color.fromList]](''colorList'') || convert a list of the above form into a color string&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Usage Notes ==&lt;br /&gt;
&lt;br /&gt;
System functions that return a color from one of the displays include the alpha component, even if it was left implied when the color was drawn or assigned.  You must take this into account when comparing colors, for example by adding &amp;quot;FF&amp;quot; to any 7-character color string to extend it to the full 9 characters before comparing.&lt;br /&gt;
&lt;br /&gt;
[[Soda]] does not yet have a built-in &amp;lt;c&amp;gt;color&amp;lt;/c&amp;gt; module.  It does, however, represent colors in the same string format.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
The following example changes the text color to bright green, using the named color &amp;lt;c&amp;gt;lime&amp;lt;/c&amp;gt; in the &amp;lt;c&amp;gt;color&amp;lt;/c&amp;gt; module.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ms&amp;gt;text.color = color.lime&lt;br /&gt;
print &amp;quot;Assigned &amp;quot; + color.lime + &amp;quot;, and text.color is now &amp;quot; + text.color&amp;lt;/ms&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Output:&lt;br /&gt;
  Assigned #00FF00, and text.color is now #00FF00FF&lt;br /&gt;
&lt;br /&gt;
Notice that the color string assigned was only 6 digits (7 characters total), but the color string we get back is a full 9 characters long.  These two representations of &amp;quot;lime&amp;quot; color are equivalent.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Category:Mini Micro]]&lt;br /&gt;
[[Category:Soda]]&lt;/div&gt;</summary>
		<author><name>Chaos95</name></author>
		
	</entry>
	<entry>
		<id>http://miniscript.org/w/index.php?title=TextDisplay.color&amp;diff=1016</id>
		<title>TextDisplay.color</title>
		<link rel="alternate" type="text/html" href="http://miniscript.org/w/index.php?title=TextDisplay.color&amp;diff=1016"/>
		<updated>2022-11-14T22:55:28Z</updated>

		<summary type="html">&lt;p&gt;Chaos95: Add inline link to Color&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;c&amp;gt;[[TextDisplay]].color&amp;lt;/c&amp;gt; gets or sets the foreground [[Color|color]] used on any future printing to this&lt;br /&gt;
text display.  This is the text color for normal text, or the surrounding&lt;br /&gt;
color for inverse-mode text.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;ms&amp;gt;text.color = color.aqua&amp;lt;/ms&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Category:Mini Micro]]&lt;/div&gt;</summary>
		<author><name>Chaos95</name></author>
		
	</entry>
</feed>