<?xml version="1.0" encoding="utf-8"?>
<?xml-stylesheet type="text/css" href="http://www.fenixdocs.com/skins/common/feed.css?63"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://www.fenixdocs.com/index.php?feed=atom&amp;title=Special%3ANewpages</id>
		<title>FenixWiki - New pages [en]</title>
		<link rel="self" type="application/atom+xml" href="http://www.fenixdocs.com/index.php?feed=atom&amp;title=Special%3ANewpages"/>
		<link rel="alternate" type="text/html" href="http://www.fenixdocs.com/index.php/Special:Newpages"/>
		<updated>2026-05-02T12:29:15Z</updated>
		<subtitle>From FenixWiki</subtitle>
		<generator>MediaWiki 1.10.1</generator>

	<entry>
		<id>http://www.fenixdocs.com/index.php/Stop_scroll</id>
		<title>Stop scroll</title>
		<link rel="alternate" type="text/html" href="http://www.fenixdocs.com/index.php/Stop_scroll"/>
				<updated>2009-06-25T11:26:04Z</updated>
		
		<summary type="html">&lt;p&gt;Summary: New page: [[Category:functions]] [[Category:scrolls]]  Stop_scroll(&amp;lt;int&amp;gt; scroll number)&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:functions]]&lt;br /&gt;
[[Category:scrolls]]&lt;br /&gt;
&lt;br /&gt;
Stop_scroll(&amp;lt;int&amp;gt; scroll number)&lt;/div&gt;</summary>
		<author><name>195.64.186.9</name></author>	</entry>

	<entry>
		<id>http://www.fenixdocs.com/index.php/Ascii</id>
		<title>Ascii</title>
		<link rel="alternate" type="text/html" href="http://www.fenixdocs.com/index.php/Ascii"/>
				<updated>2009-06-25T10:49:08Z</updated>
		
		<summary type="html">&lt;p&gt;Summary: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[category:global variables]]&lt;br /&gt;
&lt;br /&gt;
Returns the ASCII value of the last pressed key&lt;/div&gt;</summary>
		<author><name>195.64.186.9</name></author>	</entry>

	<entry>
		<id>http://www.fenixdocs.com/index.php/Scan_code</id>
		<title>Scan code</title>
		<link rel="alternate" type="text/html" href="http://www.fenixdocs.com/index.php/Scan_code"/>
				<updated>2009-06-25T10:45:50Z</updated>
		
		<summary type="html">&lt;p&gt;Summary: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[category:global variables]]&lt;br /&gt;
&lt;br /&gt;
Returns the [[scancode]] of a key (same code as scancodes _a, _b, _enter,...)&lt;/div&gt;</summary>
		<author><name>195.64.186.9</name></author>	</entry>

	<entry>
		<id>http://www.fenixdocs.com/index.php/Bool</id>
		<title>Bool</title>
		<link rel="alternate" type="text/html" href="http://www.fenixdocs.com/index.php/Bool"/>
				<updated>2008-12-28T19:17:28Z</updated>
		
		<summary type="html">&lt;p&gt;Summary: New page: [[Category:language]] [[Category:datatypes]]  == Definition == '''BOOL'''  '''Bool'''s are 1 or 0.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:language]]&lt;br /&gt;
[[Category:datatypes]]&lt;br /&gt;
&lt;br /&gt;
== Definition ==&lt;br /&gt;
'''BOOL'''&lt;br /&gt;
&lt;br /&gt;
'''Bool'''s are 1 or 0.&lt;/div&gt;</summary>
		<author><name>86.70.220.78</name></author>	</entry>

	<entry>
		<id>http://www.fenixdocs.com/index.php/Cd_currtrack</id>
		<title>Cd currtrack</title>
		<link rel="alternate" type="text/html" href="http://www.fenixdocs.com/index.php/Cd_currtrack"/>
				<updated>2008-08-29T20:41:34Z</updated>
		
		<summary type="html">&lt;p&gt;Summary: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:functions]]&lt;br /&gt;
[[Category:CD]]&lt;br /&gt;
&lt;br /&gt;
==Definition==&lt;br /&gt;
'''INT''' cd_currtrack ( &amp;lt;'''INT''' cdID&amp;gt; )&lt;br /&gt;
&lt;br /&gt;
Returns the currently being played track on the specified CD/DVD drive.&lt;br /&gt;
&lt;br /&gt;
* ''Added in [[Fenix]] [[0.92a]]''&lt;br /&gt;
* ''Removed in [[Fenix]] [[0.93]]'' (use [[cd_getinfo]]() and [[cdinfo]])&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{|&lt;br /&gt;
| '''INT''' cdID || - The cdID of the CD/DVD drive with the CD of which currently being played track is wanted.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
'''INT''' : The currently being played track number.&lt;br /&gt;
{|&lt;br /&gt;
| 0 || - Invalid CD/DVD drive.&lt;br /&gt;
|-&lt;br /&gt;
| 1 || - The currently being played track number.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{{Funcbox&lt;br /&gt;
  | category = CD&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Sandman</name></author>	</entry>

	<entry>
		<id>http://www.fenixdocs.com/index.php/Cd_numtracks</id>
		<title>Cd numtracks</title>
		<link rel="alternate" type="text/html" href="http://www.fenixdocs.com/index.php/Cd_numtracks"/>
				<updated>2008-08-29T20:32:36Z</updated>
		
		<summary type="html">&lt;p&gt;Summary: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:functions]]&lt;br /&gt;
[[Category:CD]]&lt;br /&gt;
&lt;br /&gt;
==Definition==&lt;br /&gt;
'''INT''' cd_numtracks ( &amp;lt;'''INT''' cdID&amp;gt; )&lt;br /&gt;
&lt;br /&gt;
Returns the number of tracks on the CD/DVD in the specified CD/DVD drive.&lt;br /&gt;
&lt;br /&gt;
* ''Added in [[Fenix]] [[0.92a]]''&lt;br /&gt;
* ''Removed in [[Fenix]] [[0.93]]'' (use [[cd_getinfo]]() and [[cdinfo]])&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{|&lt;br /&gt;
| '''INT''' cdID || - The cdID of the CD/DVD drive with the CD of which the number of tracks is wanted.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
'''INT''' : The number of tracks on the CD.&lt;br /&gt;
{|&lt;br /&gt;
| 0 || - Invalid CD/DVD drive; no tracks.&lt;br /&gt;
|-&lt;br /&gt;
| !0 || - The number of tracks on the CD.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{{Funcbox&lt;br /&gt;
  | category = CD&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Sandman</name></author>	</entry>

	<entry>
		<id>http://www.fenixdocs.com/index.php/Cd_stop</id>
		<title>Cd stop</title>
		<link rel="alternate" type="text/html" href="http://www.fenixdocs.com/index.php/Cd_stop"/>
				<updated>2008-08-29T20:29:34Z</updated>
		
		<summary type="html">&lt;p&gt;Summary: New page: [[Category:functions]] [[Category:CD]]  ==Definition== '''INT''' cd_stop ( &amp;lt;'''INT''' cdID&amp;gt; )  Stops playback of the specified CD/DVD drive.  == Parameters == {| | '''INT''' cdID || - The ...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:functions]]&lt;br /&gt;
[[Category:CD]]&lt;br /&gt;
&lt;br /&gt;
==Definition==&lt;br /&gt;
'''INT''' cd_stop ( &amp;lt;'''INT''' cdID&amp;gt; )&lt;br /&gt;
&lt;br /&gt;
Stops playback of the specified CD/DVD drive.&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{|&lt;br /&gt;
| '''INT''' cdID || - The cdID of the CD/DVD drive to stop playback on.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
'''INT'''&lt;br /&gt;
{|&lt;br /&gt;
| 0 || - Invalid CD/DVD drive.&lt;br /&gt;
|-&lt;br /&gt;
| 1 || - Playback of the CD/DVD drive is stopped.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{{Funcbox&lt;br /&gt;
  | category = CD&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Sandman</name></author>	</entry>

	<entry>
		<id>http://www.fenixdocs.com/index.php/Cd_resume</id>
		<title>Cd resume</title>
		<link rel="alternate" type="text/html" href="http://www.fenixdocs.com/index.php/Cd_resume"/>
				<updated>2008-08-29T20:28:44Z</updated>
		
		<summary type="html">&lt;p&gt;Summary: New page: [[Category:functions]] [[Category:CD]]  ==Definition== '''INT''' cd_resume ( &amp;lt;'''INT''' cdID&amp;gt; )  Resumes playback of the specified CD/DVD drive.  == Parameters == {| | '''INT''' cdID || - ...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:functions]]&lt;br /&gt;
[[Category:CD]]&lt;br /&gt;
&lt;br /&gt;
==Definition==&lt;br /&gt;
'''INT''' cd_resume ( &amp;lt;'''INT''' cdID&amp;gt; )&lt;br /&gt;
&lt;br /&gt;
Resumes playback of the specified CD/DVD drive.&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{|&lt;br /&gt;
| '''INT''' cdID || - The cdID of the CD/DVD drive to resume playback on.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
'''INT'''&lt;br /&gt;
{|&lt;br /&gt;
| 0 || - Invalid CD/DVD drive.&lt;br /&gt;
|-&lt;br /&gt;
| 1 || - Playback of the CD/DVD drive is resumed.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{{Funcbox&lt;br /&gt;
  | category = CD&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Sandman</name></author>	</entry>

	<entry>
		<id>http://www.fenixdocs.com/index.php/Cd_pause</id>
		<title>Cd pause</title>
		<link rel="alternate" type="text/html" href="http://www.fenixdocs.com/index.php/Cd_pause"/>
				<updated>2008-08-29T20:27:18Z</updated>
		
		<summary type="html">&lt;p&gt;Summary: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:functions]]&lt;br /&gt;
[[Category:CD]]&lt;br /&gt;
&lt;br /&gt;
==Definition==&lt;br /&gt;
'''INT''' cd_pause ( &amp;lt;'''INT''' cdID&amp;gt; )&lt;br /&gt;
&lt;br /&gt;
Pauses playback of the specified CD/DVD drive.&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{|&lt;br /&gt;
| '''INT''' cdID || - The cdID of the CD/DVD drive to pause playback on.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
'''INT'''&lt;br /&gt;
{|&lt;br /&gt;
| 0 || - Invalid CD/DVD drive.&lt;br /&gt;
|-&lt;br /&gt;
| 1 || - Playback of the CD/DVD drive is paused.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{{Funcbox&lt;br /&gt;
  | category = CD&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Sandman</name></author>	</entry>

	<entry>
		<id>http://www.fenixdocs.com/index.php/Cd_eject</id>
		<title>Cd eject</title>
		<link rel="alternate" type="text/html" href="http://www.fenixdocs.com/index.php/Cd_eject"/>
				<updated>2008-08-29T20:22:41Z</updated>
		
		<summary type="html">&lt;p&gt;Summary: New page: [[Category:functions]] [[Category:CD]]  ==Definition== '''INT''' cd_eject ( &amp;lt;'''INT''' cdID&amp;gt; )  Ejects the CD/DVD (tray) from the drive.  == Parameters == {| | '''INT''' cdID || - The cdID...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:functions]]&lt;br /&gt;
[[Category:CD]]&lt;br /&gt;
&lt;br /&gt;
==Definition==&lt;br /&gt;
'''INT''' cd_eject ( &amp;lt;'''INT''' cdID&amp;gt; )&lt;br /&gt;
&lt;br /&gt;
Ejects the CD/DVD (tray) from the drive.&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{|&lt;br /&gt;
| '''INT''' cdID || - The cdID of the CD/DVD drive of which the CD/DVD (tray) is to be ejected.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
'''INT'''&lt;br /&gt;
{|&lt;br /&gt;
| 0 || - Invalid CD/DVD drive.&lt;br /&gt;
|-&lt;br /&gt;
| 1 || - The CD/DVD (tray) is ejected.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{{Funcbox&lt;br /&gt;
  | category = CD&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Sandman</name></author>	</entry>

	<entry>
		<id>http://www.fenixdocs.com/index.php/Cd_play</id>
		<title>Cd play</title>
		<link rel="alternate" type="text/html" href="http://www.fenixdocs.com/index.php/Cd_play"/>
				<updated>2008-08-29T20:16:58Z</updated>
		
		<summary type="html">&lt;p&gt;Summary: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:functions]]&lt;br /&gt;
[[Category:CD]]&lt;br /&gt;
&lt;br /&gt;
==Definition==&lt;br /&gt;
'''INT''' cd_play ( &amp;lt;'''INT''' cdID&amp;gt; , &amp;lt;'''INT''' trackNumber&amp;gt; , [&amp;lt;'''INT''' tracks&amp;gt;] )&lt;br /&gt;
&lt;br /&gt;
Starts playing at the specified track on the specified CD/DVD drive and will keep on playing for the specified number of tracks or one if no number is specified.&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{|&lt;br /&gt;
| '''INT''' cdID || - The cdID of the CD/DVD drive with the CD to play.&lt;br /&gt;
|-&lt;br /&gt;
| '''INT''' trackNumber || - The track number to play.&lt;br /&gt;
|-&lt;br /&gt;
| '''INT''' tracks || - The number of tracks to play. Default is ''1''.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
'''INT'''&lt;br /&gt;
{|&lt;br /&gt;
| 0 || - Invalid CD/DVD drive or CD/DVD.&lt;br /&gt;
|-&lt;br /&gt;
| 1 || - The CD started playing.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{{Funcbox&lt;br /&gt;
  | category = CD&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Sandman</name></author>	</entry>

	<entry>
		<id>http://www.fenixdocs.com/index.php/Cdinfo</id>
		<title>Cdinfo</title>
		<link rel="alternate" type="text/html" href="http://www.fenixdocs.com/index.php/Cdinfo"/>
				<updated>2008-08-29T15:46:55Z</updated>
		
		<summary type="html">&lt;p&gt;Summary: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[category:variables]]&lt;br /&gt;
[[category:predefined]]&lt;br /&gt;
[[category:global variables]]&lt;br /&gt;
&lt;br /&gt;
[[Global variables|'''Up to Global Variables''']]&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Definition ==&lt;br /&gt;
'''Struct''' cdinfo&lt;br /&gt;
&lt;br /&gt;
cdinfo is a [[global|global variable]] [[struct]], containing information about a CD/DVD drive, last obtained using [[cd_getinfo]]().&lt;br /&gt;
&lt;br /&gt;
== Members ==&lt;br /&gt;
''filling this out later...''&lt;br /&gt;
{|&lt;br /&gt;
| ''Member name'' || - ''Description''&lt;br /&gt;
|-&lt;br /&gt;
| '''INT''' current_track || - &lt;br /&gt;
|-&lt;br /&gt;
| '''INT''' current_frame || - &lt;br /&gt;
|-&lt;br /&gt;
| '''INT''' tracks || - &lt;br /&gt;
|-&lt;br /&gt;
| '''INT''' minute || - &lt;br /&gt;
|-&lt;br /&gt;
| '''INT''' second || - &lt;br /&gt;
|-&lt;br /&gt;
| '''INT''' subframe || - &lt;br /&gt;
|-&lt;br /&gt;
| '''INT''' minutes || - &lt;br /&gt;
|-&lt;br /&gt;
| '''INT''' seconds || - &lt;br /&gt;
|-&lt;br /&gt;
| '''INT''' subframes || - &lt;br /&gt;
|-&lt;br /&gt;
| '''STRUCT''' track[99]&lt;br /&gt;
:{|&lt;br /&gt;
| '''INT''' audio || - &lt;br /&gt;
|-&lt;br /&gt;
| '''INT''' minutes || - &lt;br /&gt;
|-&lt;br /&gt;
| '''INT''' seconds || - &lt;br /&gt;
|-&lt;br /&gt;
| '''INT''' subframes || - &lt;br /&gt;
|}&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
&lt;br /&gt;
{{Globals}}&lt;/div&gt;</summary>
		<author><name>Sandman</name></author>	</entry>

	<entry>
		<id>http://www.fenixdocs.com/index.php/Cd_getinfo</id>
		<title>Cd getinfo</title>
		<link rel="alternate" type="text/html" href="http://www.fenixdocs.com/index.php/Cd_getinfo"/>
				<updated>2008-08-29T15:37:24Z</updated>
		
		<summary type="html">&lt;p&gt;Summary: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:functions]]&lt;br /&gt;
[[Category:CD]]&lt;br /&gt;
&lt;br /&gt;
==Definition==&lt;br /&gt;
'''INT''' cd_getinfo ( &amp;lt;'''INT''' cdID&amp;gt; )&lt;br /&gt;
&lt;br /&gt;
Fills the [[global]] [[structure]] [[cdinfo]] with information about the specified CD/DVD drive.&lt;br /&gt;
&lt;br /&gt;
Returns &amp;lt;code&amp;gt;1&amp;lt;/code&amp;gt; if there is a valid CD in the drive and &amp;lt;code&amp;gt;0&amp;lt;/code&amp;gt; otherwise.&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{|&lt;br /&gt;
| '''INT''' cdID || - The cdID of the CD/DVD drive of which the info is wanted.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
'''INT'''&lt;br /&gt;
{|&lt;br /&gt;
| 0 || - Invalid CD/DVD or no CD/DVD in drive.&lt;br /&gt;
|-&lt;br /&gt;
| 1 || - Valid CD (structure [[cdinfo]] is filled successfully with information about the CD).&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{{Funcbox&lt;br /&gt;
  | category = CD&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Sandman</name></author>	</entry>

	<entry>
		<id>http://www.fenixdocs.com/index.php/Cd_name</id>
		<title>Cd name</title>
		<link rel="alternate" type="text/html" href="http://www.fenixdocs.com/index.php/Cd_name"/>
				<updated>2008-08-29T15:30:04Z</updated>
		
		<summary type="html">&lt;p&gt;Summary: New page: [[Category:functions]] [[Category:CD]]  ==Definition== '''INT''' cd_name ( &amp;lt;'''INT''' cdID&amp;gt; )  Returns the current name of the specified CD/DVD drive.  == Parameters == {| | '''INT''' cdID...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:functions]]&lt;br /&gt;
[[Category:CD]]&lt;br /&gt;
&lt;br /&gt;
==Definition==&lt;br /&gt;
'''INT''' cd_name ( &amp;lt;'''INT''' cdID&amp;gt; )&lt;br /&gt;
&lt;br /&gt;
Returns the current name of the specified CD/DVD drive.&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{|&lt;br /&gt;
| '''INT''' cdID || - The cdID of the CD/DVD drive of which the name is wanted.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
'''INT''' : The current name of the specified CD/DVD drive.&lt;br /&gt;
&lt;br /&gt;
{{Funcbox&lt;br /&gt;
  | category = CD&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Sandman</name></author>	</entry>

	<entry>
		<id>http://www.fenixdocs.com/index.php/Cd_status</id>
		<title>Cd status</title>
		<link rel="alternate" type="text/html" href="http://www.fenixdocs.com/index.php/Cd_status"/>
				<updated>2008-08-29T15:27:23Z</updated>
		
		<summary type="html">&lt;p&gt;Summary: New page: [[Category:functions]] [[Category:CD]]  ==Definition== '''INT''' cd_status ( &amp;lt;'''INT''' cdID&amp;gt; )  Returns the current status of the specified CD/DVD drive.  See [[CD statuscodes]].  == Para...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:functions]]&lt;br /&gt;
[[Category:CD]]&lt;br /&gt;
&lt;br /&gt;
==Definition==&lt;br /&gt;
'''INT''' cd_status ( &amp;lt;'''INT''' cdID&amp;gt; )&lt;br /&gt;
&lt;br /&gt;
Returns the current status of the specified CD/DVD drive.&lt;br /&gt;
&lt;br /&gt;
See [[CD statuscodes]].&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{|&lt;br /&gt;
| '''INT''' cdID || - The cdID of the CD/DVD drive of which the status is wanted.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
'''INT''' : The current status of the specified CD/DVD drive.&lt;br /&gt;
&lt;br /&gt;
{{Funcbox&lt;br /&gt;
  | category = CD&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Sandman</name></author>	</entry>

	<entry>
		<id>http://www.fenixdocs.com/index.php/Cd_drives</id>
		<title>Cd drives</title>
		<link rel="alternate" type="text/html" href="http://www.fenixdocs.com/index.php/Cd_drives"/>
				<updated>2008-08-29T15:22:57Z</updated>
		
		<summary type="html">&lt;p&gt;Summary: New page: [[Category:functions]] [[Category:CD]]  ==Definition== '''INT''' cd_drives ( )  Returns the number of CD/DVD drives in the system.  == Returns == '''INT''' : The number of CD/DVD drives in...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:functions]]&lt;br /&gt;
[[Category:CD]]&lt;br /&gt;
&lt;br /&gt;
==Definition==&lt;br /&gt;
'''INT''' cd_drives ( )&lt;br /&gt;
&lt;br /&gt;
Returns the number of CD/DVD drives in the system.&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
'''INT''' : The number of CD/DVD drives in the system.&lt;br /&gt;
&lt;br /&gt;
{{Funcbox&lt;br /&gt;
  | category = CD&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Sandman</name></author>	</entry>

	<entry>
		<id>http://www.fenixdocs.com/index.php/Put_screen</id>
		<title>Put screen</title>
		<link rel="alternate" type="text/html" href="http://www.fenixdocs.com/index.php/Put_screen"/>
				<updated>2008-08-25T01:05:52Z</updated>
		
		<summary type="html">&lt;p&gt;Summary: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:functions]]&lt;br /&gt;
[[Category:screen]]&lt;br /&gt;
&lt;br /&gt;
==Definition==&lt;br /&gt;
'''INT''' put_screen ( &amp;lt;'''INT''' fileID&amp;gt; , &amp;lt;'''INT''' graphID&amp;gt; )&lt;br /&gt;
&lt;br /&gt;
Clears and draws ([[blit]]s) a [[graph]] onto the [[background]] in the center.&lt;br /&gt;
&lt;br /&gt;
For more advanced blitting, see:&lt;br /&gt;
* [[put]]()&lt;br /&gt;
* [[xput]]()&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{| &lt;br /&gt;
| '''INT''' fileID || - The [[file]] that holds the graph.&lt;br /&gt;
|-&lt;br /&gt;
| '''INT''' graphID || - The [[graph]] to draw with.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
'''INT'''&lt;br /&gt;
{|&lt;br /&gt;
| 0 || - Invalid map.&lt;br /&gt;
|-&lt;br /&gt;
| 1 || - Success.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
The center of the specified graph influences its placement.&lt;br /&gt;
&lt;br /&gt;
The following codes are equivalent:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
put_screen(f,g);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
clear_screen();&lt;br /&gt;
put(f,g,graphic_info(0,BACKGROUND,G_WIDTH)/2,graphic_info(0,BACKGROUND,G_HEIGHT)/2);&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
See [[clear_screen]](), [[put]]() and [[graphic_info]]().&lt;br /&gt;
&lt;br /&gt;
== Errors ==&lt;br /&gt;
{|&lt;br /&gt;
| Invalid map || - The specified map is invalid.&lt;br /&gt;
|-&lt;br /&gt;
| Unsupported color depth || - The origin graph's color depth is greater than the destination graph's.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{{Funcbox&lt;br /&gt;
  | category = Screen&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Zigo</name></author>	</entry>

	<entry>
		<id>http://www.fenixdocs.com/index.php/Import</id>
		<title>Import</title>
		<link rel="alternate" type="text/html" href="http://www.fenixdocs.com/index.php/Import"/>
				<updated>2008-07-29T15:06:23Z</updated>
		
		<summary type="html">&lt;p&gt;Summary: New Article: Import&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:General]]&lt;br /&gt;
[[Category:Language]]&lt;br /&gt;
&lt;br /&gt;
== Definition ==&lt;br /&gt;
&lt;br /&gt;
'''Import''' &amp;quot;&amp;lt;file name&amp;gt;&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
Imports a Fenix [[DLL]] with name &amp;lt;file name&amp;gt; into the program, which allows the usage of additional functions in a Fenix program. For more information, see the [[DLL | article on DLLs]].&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Import &amp;quot;my_dll.dll&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
Process main()&lt;br /&gt;
Begin&lt;br /&gt;
    Loop&lt;br /&gt;
        Frame;&lt;br /&gt;
    End&lt;br /&gt;
End&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Used in example: [[import]]&lt;/div&gt;</summary>
		<author><name>Rincewind</name></author>	</entry>

	<entry>
		<id>http://www.fenixdocs.com/index.php/Ln</id>
		<title>Ln</title>
		<link rel="alternate" type="text/html" href="http://www.fenixdocs.com/index.php/Ln"/>
				<updated>2008-07-29T14:28:14Z</updated>
		
		<summary type="html">&lt;p&gt;Summary: /* Definition */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:functions]]&lt;br /&gt;
[[Category:logdll]]&lt;br /&gt;
[[Category:dll]]&lt;br /&gt;
&lt;br /&gt;
[[Functioncategory:Logdll|'''Up to Log.dll functions''']]&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Definition==&lt;br /&gt;
'''FLOAT''' ln ( &amp;lt;'''FLOAT''' n&amp;gt; )&lt;br /&gt;
&lt;br /&gt;
Returns the [http://en.wikipedia.org/wiki/Natural_logarithm natural logarithm] of number ''n'' ([http://en.wikipedia.org/wiki/Logarithm logarithm] with base ε (Euler)).&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{| &lt;br /&gt;
| '''FLOAT''' n || - The number that will be used for the logarithm.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
'''FLOAT''' : The natural logarithm of ''n''.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Import &amp;quot;log.dll&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
Global&lt;br /&gt;
    float logarithm=0.0;&lt;br /&gt;
End&lt;br /&gt;
&lt;br /&gt;
Process main()&lt;br /&gt;
Begin&lt;br /&gt;
    write_float(0,160,100,4,&amp;amp;logarithm);&lt;br /&gt;
	&lt;br /&gt;
    While(not(key(_ESC)))&lt;br /&gt;
	If (key(_1)) logarithm=ln(13.37); End &lt;br /&gt;
&lt;br /&gt;
        Frame;&lt;br /&gt;
    End&lt;br /&gt;
End&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Used in example: [[import]], [[write_float]](), [[key]](), [[ln]]()&lt;br /&gt;
&lt;br /&gt;
{{Logfuncbox}}&lt;/div&gt;</summary>
		<author><name>85.144.194.29</name></author>	</entry>

	<entry>
		<id>http://www.fenixdocs.com/index.php/Log2</id>
		<title>Log2</title>
		<link rel="alternate" type="text/html" href="http://www.fenixdocs.com/index.php/Log2"/>
				<updated>2008-07-29T14:19:51Z</updated>
		
		<summary type="html">&lt;p&gt;Summary: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:functions]]&lt;br /&gt;
[[Category:logdll]]&lt;br /&gt;
[[Category:dll]]&lt;br /&gt;
&lt;br /&gt;
[[Functioncategory:Logdll|'''Up to Log.dll functions''']]&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Definition==&lt;br /&gt;
'''FLOAT''' log2 ( &amp;lt;'''FLOAT''' n&amp;gt; )&lt;br /&gt;
&lt;br /&gt;
Returns a [http://en.wikipedia.org/wiki/Logarithm logarithm] of number ''n'' with base 2.&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{| &lt;br /&gt;
| '''FLOAT''' n || - The number that will be used for the logarithm.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
'''FLOAT''' : The logarithm of ''n'' with base 2.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Import &amp;quot;log.dll&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
Global&lt;br /&gt;
    float logarithm=0.0;&lt;br /&gt;
End&lt;br /&gt;
&lt;br /&gt;
Process main()&lt;br /&gt;
Begin&lt;br /&gt;
    write_float(0,160,100,4,&amp;amp;logarithm);&lt;br /&gt;
	&lt;br /&gt;
    While(not(key(_esc)))&lt;br /&gt;
        If (key(_1)) logarithm=log2(1024); End &lt;br /&gt;
&lt;br /&gt;
        Frame;&lt;br /&gt;
    End&lt;br /&gt;
End&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Used in example: [[import]], [[write_float]](), [[key]](), [[log2]]()&lt;br /&gt;
&lt;br /&gt;
{{Logfuncbox}}&lt;/div&gt;</summary>
		<author><name>85.144.194.29</name></author>	</entry>

	<entry>
		<id>http://www.fenixdocs.com/index.php/Log</id>
		<title>Log</title>
		<link rel="alternate" type="text/html" href="http://www.fenixdocs.com/index.php/Log"/>
				<updated>2008-07-29T14:14:41Z</updated>
		
		<summary type="html">&lt;p&gt;Summary: combined definition to one, like seen on [[CD]] page&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:functions]]&lt;br /&gt;
[[Category:logdll]]&lt;br /&gt;
[[Category:dll]]&lt;br /&gt;
&lt;br /&gt;
[[Functioncategory:Logdll|'''Up to Log.dll functions''']]&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Definition==&lt;br /&gt;
'''FLOAT''' log ( &amp;lt;'''FLOAT''' n&amp;gt; , [&amp;lt;'''FLOAT''' b&amp;gt;] )&lt;br /&gt;
&lt;br /&gt;
Returns a [http://en.wikipedia.org/wiki/Logarithm logarithm] of number ''n'' with base ''b''. If ''b'' is not specified, the number 10 will be used as base.&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{| &lt;br /&gt;
| '''FLOAT''' n || - The number that will be used for the logarithm.&lt;br /&gt;
|-&lt;br /&gt;
| '''FLOAT''' base || - The base that will be used for the logarithm.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
'''FLOAT''' : The logarithm of ''n''.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Import &amp;quot;log.dll&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
Global&lt;br /&gt;
    float logarithm=0.0;&lt;br /&gt;
End&lt;br /&gt;
&lt;br /&gt;
Process main()&lt;br /&gt;
Begin&lt;br /&gt;
    write_float(0,160,100,4,&amp;amp;logarithm);&lt;br /&gt;
	&lt;br /&gt;
    While(not(key(_esc)))&lt;br /&gt;
        If (key(_1)) logarithm=log(1000,9); End &lt;br /&gt;
        If (key(_2)) logarithm=log(1000); End&lt;br /&gt;
&lt;br /&gt;
        Frame;&lt;br /&gt;
    End&lt;br /&gt;
End&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Used in example: [[import]], [[write_float]](), [[key]](), [[log]]()&lt;br /&gt;
&lt;br /&gt;
{{Logfuncbox}}&lt;/div&gt;</summary>
		<author><name>85.144.194.29</name></author>	</entry>

	<entry>
		<id>http://www.fenixdocs.com/index.php/Scroll_window</id>
		<title>Scroll window</title>
		<link rel="alternate" type="text/html" href="http://www.fenixdocs.com/index.php/Scroll_window"/>
				<updated>2008-07-28T00:29:38Z</updated>
		
		<summary type="html">&lt;p&gt;Summary: done; now ctype should be done&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[category:general]]&lt;br /&gt;
[[category:scroll]]&lt;br /&gt;
&lt;br /&gt;
== Definition ==&lt;br /&gt;
A [[scroll window]] is a [[region]] in which a scroll has been started by [[start_scroll]]() and setup with the [[global variable]] [[scroll]. This scroll window provides a view window into the scroll that has been setup there, with certain background and foreground [[graphics]]. The view window can be 'scrolled' over the scroll (and the graphics).&lt;br /&gt;
&lt;br /&gt;
[[Process]]es can also be added to a scroll (see the [[global variable]] [[ctype]]), in which case a lot of things related to that process change.&lt;br /&gt;
* The [[graphic]] of the process is not drawn to the screen, but to the scroll window, using the [[region]] of the scroll.&lt;br /&gt;
* The [[z]] of an added process only has a meaning to the scroll window and compared to other processes added to the same scroll, meaning from a user perspective, the process is drawn at the z value of the scroll. If two processes are added to the same scroll, the one with the lower z value will be drawn over the other one.&lt;br /&gt;
* The [[x]]- and [[y]]-coordinates are not relative to the upper left corner of the ''screen'', but relative to the upper left corner of the ''scroll''.&lt;br /&gt;
&lt;br /&gt;
You can control scrolls in multiple ways.&lt;br /&gt;
* Change the scroll coordinates directly using &amp;lt;code&amp;gt;x0&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;y0&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;x1&amp;lt;/code&amp;gt;, &amp;lt;code&amp;gt;y1&amp;lt;/code&amp;gt; in the [[global variable]] [[scroll]]. Be sure to alter the correct scroll.&lt;br /&gt;
* Tell the scroll to 'follow' another scroll, by using &amp;lt;code&amp;gt;[[scroll]].follow&amp;lt;/code&amp;gt;.&lt;br /&gt;
* Use a 'camera' process, which the scroll try to follow, by using &amp;lt;code&amp;gt;[[scroll]].camera&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
More about scrolls:&lt;br /&gt;
* A scroll with a lower z value will be drawn over a scroll with a lower z value.&lt;br /&gt;
* The foreground is the plane to be controlled and the background moves relative to the foreground.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Const&lt;br /&gt;
    SCREEN_WIDTH = 320;&lt;br /&gt;
    SCREEN_HEIGHT = 200;&lt;br /&gt;
    SCREEN_DEPTH = 8;&lt;br /&gt;
    MAP_WIDTH  = 500;&lt;br /&gt;
    MAP_HEIGHT = 400;&lt;br /&gt;
    SHIP_WIDTH  = 30;&lt;br /&gt;
    SHIP_HEIGHT = 30;&lt;br /&gt;
    SHIP_SPEED = 6;&lt;br /&gt;
End&lt;br /&gt;
&lt;br /&gt;
Declare Process playership(int x, int y)&lt;br /&gt;
End&lt;br /&gt;
Declare Function int makeMap(int width, int height, int depth)&lt;br /&gt;
End&lt;br /&gt;
Declare Function int makeShipGfx(int width, int height, int depth)&lt;br /&gt;
End&lt;br /&gt;
&lt;br /&gt;
Process Main()&lt;br /&gt;
Private&lt;br /&gt;
    int map;&lt;br /&gt;
Begin&lt;br /&gt;
    // Setup the screen&lt;br /&gt;
    set_mode(SCREEN_WIDTH,SCREEN_HEIGHT,SCREEN_DEPTH);&lt;br /&gt;
&lt;br /&gt;
    // Create the background graphic&lt;br /&gt;
    map = makeMap(MAP_WIDTH,MAP_HEIGHT,SCREEN_DEPTH);&lt;br /&gt;
&lt;br /&gt;
    // Start a new scroll&lt;br /&gt;
    // scrollNumber = 0&lt;br /&gt;
    // fileID = 0&lt;br /&gt;
    // foregroundGraphID = map&lt;br /&gt;
    // backgroundGraphID = 0: no background&lt;br /&gt;
    // region = 0: use entire screen&lt;br /&gt;
    // lockindicator = 0: don't repeat graphics&lt;br /&gt;
    start_scroll(0,0,map,0,0,0);&lt;br /&gt;
&lt;br /&gt;
    // Start a controllable object on the scroll&lt;br /&gt;
    playership(320,200);&lt;br /&gt;
&lt;br /&gt;
    // Wait till the key ESC is pressed&lt;br /&gt;
    Repeat&lt;br /&gt;
        frame;&lt;br /&gt;
    Until(key(_esc))&lt;br /&gt;
&lt;br /&gt;
OnExit&lt;br /&gt;
    // Kill all other processes&lt;br /&gt;
    let_me_alone();&lt;br /&gt;
&lt;br /&gt;
    // Clean up memory used for map&lt;br /&gt;
    unload_map(0,map);&lt;br /&gt;
End&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Process playership(int x, int y)&lt;br /&gt;
Private&lt;br /&gt;
    int sp = SHIP_SPEED;&lt;br /&gt;
    int halfWidth;&lt;br /&gt;
    int halfHeight;&lt;br /&gt;
Begin&lt;br /&gt;
&lt;br /&gt;
    // This process should be displayed on a scroll only&lt;br /&gt;
    ctype = c_scroll;&lt;br /&gt;
&lt;br /&gt;
    // This process should be tracked by the scroll&lt;br /&gt;
    Scroll.camera = id;&lt;br /&gt;
&lt;br /&gt;
    // Create a graph for this process&lt;br /&gt;
    graph = makeShipGfx(SHIP_WIDTH,SHIP_HEIGHT,SCREEN_DEPTH);&lt;br /&gt;
&lt;br /&gt;
    // Obtain the value of half the width of the graphic&lt;br /&gt;
    halfWidth  = graphic_info(0,graph,G_WIDTH )/2;&lt;br /&gt;
    halfHeight = graphic_info(0,graph,G_HEIGHT)/2;&lt;br /&gt;
&lt;br /&gt;
    // React on keys LEFT and RIGHT&lt;br /&gt;
    Loop&lt;br /&gt;
&lt;br /&gt;
        // Adjust x,y on input&lt;br /&gt;
        x+=(key(_right)-key(_left))*sp;&lt;br /&gt;
        y+=(key(_down)-key(_up))*sp;&lt;br /&gt;
&lt;br /&gt;
        // Make sure the ship stays on the scroll&lt;br /&gt;
        if(x &amp;gt; MAP_WIDTH-halfWidth)&lt;br /&gt;
            x = MAP_WIDTH-halfWidth;&lt;br /&gt;
        elseif(x &amp;lt; halfWidth)&lt;br /&gt;
            x = halfWidth;&lt;br /&gt;
        end&lt;br /&gt;
        if(y &amp;gt; MAP_HEIGHT-halfHeight)&lt;br /&gt;
            y = MAP_HEIGHT-halfHeight;&lt;br /&gt;
        elseif(y &amp;lt; halfHeight)&lt;br /&gt;
            y = halfHeight;&lt;br /&gt;
        end&lt;br /&gt;
&lt;br /&gt;
        frame;&lt;br /&gt;
&lt;br /&gt;
    End&lt;br /&gt;
&lt;br /&gt;
OnExit&lt;br /&gt;
    // Clean up used memory for graph&lt;br /&gt;
    unload_map(0,graph);&lt;br /&gt;
End&lt;br /&gt;
&lt;br /&gt;
Function int makeMap(int width, int height, int depth)&lt;br /&gt;
Private&lt;br /&gt;
    int n;&lt;br /&gt;
    int x1,y1;&lt;br /&gt;
    int m;&lt;br /&gt;
Begin&lt;br /&gt;
&lt;br /&gt;
    // New map&lt;br /&gt;
    m = new_map(width,height,depth);&lt;br /&gt;
&lt;br /&gt;
    // Put on some pretty stars&lt;br /&gt;
    rand_seed(100);&lt;br /&gt;
    for(n=0;n&amp;lt;1000;n++)&lt;br /&gt;
        map_put_pixel(0,m,rand(0,width),rand(0,height),rgb(150,170,200));&lt;br /&gt;
    end&lt;br /&gt;
&lt;br /&gt;
    // Return it&lt;br /&gt;
    return m;&lt;br /&gt;
&lt;br /&gt;
End&lt;br /&gt;
&lt;br /&gt;
Function int makeShipGfx(int width, int height, int depth)&lt;br /&gt;
Private&lt;br /&gt;
    int g;&lt;br /&gt;
Begin&lt;br /&gt;
&lt;br /&gt;
    // Return a map of one color (RGB(150,200,170))&lt;br /&gt;
    g=new_map(width,height,depth);&lt;br /&gt;
    map_clear(0,g,rgb(200,100,170));&lt;br /&gt;
    return g;&lt;br /&gt;
&lt;br /&gt;
End&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Used in example: [[set_mode]](), [[start_scroll]](), [[key]](), [[let_me_alone]](), [[unload_map]](), [[graphic_info]](), [[new_map]](), [[rand_seed]](), [[rand]](), [[rgb]](), [[map_put_pixel]](), [[map_clear]](), [[ctype]], [[scroll]]&lt;/div&gt;</summary>
		<author><name>Sandman</name></author>	</entry>

	<entry>
		<id>http://www.fenixdocs.com/index.php/Blur</id>
		<title>Blur</title>
		<link rel="alternate" type="text/html" href="http://www.fenixdocs.com/index.php/Blur"/>
				<updated>2008-07-24T09:30:26Z</updated>
		
		<summary type="html">&lt;p&gt;Summary: /* Returns */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:functions]]&lt;br /&gt;
[[Category:graphical effects]]&lt;br /&gt;
&lt;br /&gt;
==Definition==&lt;br /&gt;
'''INT''' blur ( &amp;lt;'''INT''' fileID&amp;gt; , &amp;lt;'''INT''' graphID&amp;gt; , &amp;lt;'''BYTE''' mode&amp;gt; )&lt;br /&gt;
&lt;br /&gt;
This will make the specified [[graphic]] blurry by using a specified mode. It manipulates the graphic directly.&lt;br /&gt;
&lt;br /&gt;
Only 16bit graphics are supported.&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{|&lt;br /&gt;
| '''INT''' fileID || - The [[fileID]] of the [[file]] that holds the graphics.&lt;br /&gt;
|-&lt;br /&gt;
| '''INT''' graphID || - The [[graphID]] of the [[graphic]] to convert.&lt;br /&gt;
|-&lt;br /&gt;
| '''BYTE''' mode || - The blur mode that is applied to the [[graphic]] (see [[#Blur Modes|below]]).&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
'''INT'''&lt;br /&gt;
{|&lt;br /&gt;
| 0 || - Invalid graphic or non 16bit graphic used.&lt;br /&gt;
|-&lt;br /&gt;
| 1 || - Success.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Errors ==&lt;br /&gt;
{|&lt;br /&gt;
| Unsupported color depth || - The graphic's color depth is not 16bit.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Blur Modes ==&lt;br /&gt;
{|&lt;br /&gt;
| ''Constant'' || - ''Value'' || - ''Description''&lt;br /&gt;
|-&lt;br /&gt;
| ??? || - 0 || - single pixel: considers pixels located to the left and above of each pixel.&lt;br /&gt;
|-&lt;br /&gt;
| ??? || - 1 || - 3x3: considers all 8 adjacent pixels.&lt;br /&gt;
|-&lt;br /&gt;
| ??? || - 2 || - 5x5: considers the 24 pixels that surrounds each pixel.&lt;br /&gt;
|-&lt;br /&gt;
| ??? || - 3 || - 5x5 with additional map: Just as the previous one but using a temporary map.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{{Funcbox&lt;br /&gt;
  | category=Graphical effects&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>84.59.50.129</name></author>	</entry>

	<entry>
		<id>http://www.fenixdocs.com/index.php/Y</id>
		<title>Y</title>
		<link rel="alternate" type="text/html" href="http://www.fenixdocs.com/index.php/Y"/>
				<updated>2008-06-19T12:20:31Z</updated>
		
		<summary type="html">&lt;p&gt;Summary: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[category:variables]]&lt;br /&gt;
[[category:predefined]]&lt;br /&gt;
[[category:local variables]]&lt;br /&gt;
&lt;br /&gt;
[[Local variables|'''Up to Local Variables''']]&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Definition ==&lt;br /&gt;
'''INT''' y&lt;br /&gt;
&lt;br /&gt;
'''y''' is a predefined [[local variable]].  It defines y-coordinate of the center of the [[process]] and the process' [[graphic]] will be drawn at this center. The local variable [[resolution]] specifies how accurate the [[y]] is.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[x]]&lt;br /&gt;
* [[z]]&lt;br /&gt;
* [[resolution]]&lt;br /&gt;
&lt;br /&gt;
{{Locals}}&lt;/div&gt;</summary>
		<author><name>86.70.220.11</name></author>	</entry>

	<entry>
		<id>http://www.fenixdocs.com/index.php/X</id>
		<title>X</title>
		<link rel="alternate" type="text/html" href="http://www.fenixdocs.com/index.php/X"/>
				<updated>2008-06-19T12:19:57Z</updated>
		
		<summary type="html">&lt;p&gt;Summary: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[category:variables]]&lt;br /&gt;
[[category:predefined]]&lt;br /&gt;
[[category:local variables]]&lt;br /&gt;
&lt;br /&gt;
[[Local variables|'''Up to Local Variables''']]&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Definition ==&lt;br /&gt;
'''INT''' x&lt;br /&gt;
&lt;br /&gt;
'''x''' is a predefined [[local variable]]. It defines x-coordinate of the center of the [[process]] and the process' [[graphic]] will be drawn at this center. The local variable [[resolution]] specifies how accurate the [[x]] is.&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[y]]&lt;br /&gt;
* [[z]]&lt;br /&gt;
* [[resolution]]&lt;br /&gt;
&lt;br /&gt;
{{Locals}}&lt;/div&gt;</summary>
		<author><name>86.70.220.11</name></author>	</entry>

	<entry>
		<id>http://www.fenixdocs.com/index.php/Save</id>
		<title>Save</title>
		<link rel="alternate" type="text/html" href="http://www.fenixdocs.com/index.php/Save"/>
				<updated>2008-05-23T10:27:24Z</updated>
		
		<summary type="html">&lt;p&gt;Summary: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:functions]]&lt;br /&gt;
[[Category:files]]&lt;br /&gt;
&lt;br /&gt;
==Definition==&lt;br /&gt;
'''INT''' save ( &amp;lt;'''STRING''' filename&amp;gt; , &amp;lt;'''VARSPACE''' data&amp;gt; )&lt;br /&gt;
&lt;br /&gt;
Saves the data from the specified variable to the specified file.&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{| &lt;br /&gt;
| '''STRING''' filename || - The name of the file that will be saved.&lt;br /&gt;
|-&lt;br /&gt;
| '''VARSPACE''' data || - The variable (of any [[datatype]])  that will be saved in a file.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
'''INT''' : The number of bytes written to the file.&lt;br /&gt;
&lt;br /&gt;
== Notes == &lt;br /&gt;
Attempting to use &amp;quot;?&amp;quot;,&amp;quot;*&amp;quot;,&amp;quot;&amp;lt;&amp;quot;,&amp;quot;&amp;gt;&amp;quot; or &amp;quot;|&amp;quot; in a filename will result in no file at all on Windows, while using &amp;quot;:&amp;quot; in a filename results in everything from the &amp;quot;:&amp;quot; and beyond being cut off from the file name and the resulting file will be of size 0.&lt;br /&gt;
&lt;br /&gt;
Using the characters &amp;quot;/&amp;quot; or &amp;quot;\&amp;quot; in the filename (without directories that can be accessed that way) results in everything from this character and before being cut off from the filename. The file will be saved successfully nonetheless.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Program test;&lt;br /&gt;
Global&lt;br /&gt;
    struct My_struct&lt;br /&gt;
        Level_number=&amp;quot;99&amp;quot;;&lt;br /&gt;
        string Map_name=&amp;quot;Amazing map&amp;quot;;&lt;br /&gt;
    End&lt;br /&gt;
Begin&lt;br /&gt;
        Save(&amp;quot;myfile.sav&amp;quot;,My_struct); // The content of My_struct is saved in myfile.sav&lt;br /&gt;
        Write(0,10,10,0,&amp;quot;Data saved!&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
    While (!key(_ESC))&lt;br /&gt;
        Frame;&lt;br /&gt;
    End&lt;br /&gt;
End&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Used in example: [[save]](), [[write]](), [[key]]()&lt;br /&gt;
&lt;br /&gt;
{{Funcbox&lt;br /&gt;
  | category = Files&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>85.144.194.29</name></author>	</entry>

	<entry>
		<id>http://www.fenixdocs.com/index.php/Load</id>
		<title>Load</title>
		<link rel="alternate" type="text/html" href="http://www.fenixdocs.com/index.php/Load"/>
				<updated>2008-05-23T09:38:06Z</updated>
		
		<summary type="html">&lt;p&gt;Summary: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:functions]]&lt;br /&gt;
[[Category:files]]&lt;br /&gt;
&lt;br /&gt;
==Definition==&lt;br /&gt;
'''INT''' load ( &amp;lt;'''STRING''' filename&amp;gt; , &amp;lt;'''VARSPACE''' data&amp;gt; )&lt;br /&gt;
&lt;br /&gt;
Loads the data read from the specified file into the specified variable.&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{| &lt;br /&gt;
| '''STRING''' filename || - The name of the file to be loaded.&lt;br /&gt;
|-&lt;br /&gt;
| '''VARSPACE''' data || - The variable (of any [[datatype]]) in which the data read from the file will be loaded.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
'''INT''' : The number of bytes read from the file.&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
To check whether a file exists before it is loaded, [[file_exists]]() can be used.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Program test;&lt;br /&gt;
Global&lt;br /&gt;
    struct My_struct&lt;br /&gt;
        Level_number;&lt;br /&gt;
        string Map_name;&lt;br /&gt;
    End&lt;br /&gt;
Begin&lt;br /&gt;
    If (file_exists(&amp;quot;myfile.sav&amp;quot;)) &lt;br /&gt;
        Load(&amp;quot;myfile.sav&amp;quot;,My_struct);            // Content from myfile.sav is loaded into My_struct&lt;br /&gt;
        Write(0,10,10,0,My_struct.level_number); // A variable from the loaded struct is shown on screen&lt;br /&gt;
        Write(0,10,20,0,My_struct.map_name);     // Another variable loaded is shown on screen&lt;br /&gt;
    Else&lt;br /&gt;
        Write(0,10,10,0,&amp;quot;File couldn't be loaded, it doesn't exist.&amp;quot;);&lt;br /&gt;
    End&lt;br /&gt;
&lt;br /&gt;
    While (!key(_esc))&lt;br /&gt;
        Frame;&lt;br /&gt;
    End&lt;br /&gt;
End&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Used in example: [[file_exists]](), [[load]](), [[write]](), [[key]]()&lt;br /&gt;
&lt;br /&gt;
{{Funcbox&lt;br /&gt;
  | category = Files&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>85.144.194.29</name></author>	</entry>

	<entry>
		<id>http://www.fenixdocs.com/index.php/Debug</id>
		<title>Debug</title>
		<link rel="alternate" type="text/html" href="http://www.fenixdocs.com/index.php/Debug"/>
				<updated>2008-04-24T11:03:29Z</updated>
		
		<summary type="html">&lt;p&gt;Summary: New page: [[Category:reserved]] [[Category:language]] [[Category:Basic statement]]  == Definition == '''Debug''';  Debug is a reserved word used to invoke the [[Fenix console]]. When this statement ...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:reserved]]&lt;br /&gt;
[[Category:language]]&lt;br /&gt;
[[Category:Basic statement]]&lt;br /&gt;
&lt;br /&gt;
== Definition ==&lt;br /&gt;
'''Debug''';&lt;br /&gt;
&lt;br /&gt;
Debug is a reserved word used to invoke the [[Fenix console]]. When this statement is reached, the console is immediately invoked and one can begin tracing from the debug statement.&lt;br /&gt;
&lt;br /&gt;
[[Debugging|Here]]'s a handy page about debugging a [[Fenix]] program.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Function int debug_warning(string warning)&lt;br /&gt;
Begin&lt;br /&gt;
    say(&amp;quot;Warning: &amp;quot; + warning);&lt;br /&gt;
    debug;&lt;br /&gt;
    return 0;&lt;br /&gt;
End&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Used in example: [[say]](), [[debug]]&lt;/div&gt;</summary>
		<author><name>Sandman</name></author>	</entry>

	<entry>
		<id>http://www.fenixdocs.com/index.php/Return</id>
		<title>Return</title>
		<link rel="alternate" type="text/html" href="http://www.fenixdocs.com/index.php/Return"/>
				<updated>2008-04-24T10:56:55Z</updated>
		
		<summary type="html">&lt;p&gt;Summary: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:reserved]]&lt;br /&gt;
[[Category:language]]&lt;br /&gt;
[[Category:Basic statement]]&lt;br /&gt;
&lt;br /&gt;
== Definition ==&lt;br /&gt;
'''Return''' [&amp;lt;value&amp;gt;];&lt;br /&gt;
&lt;br /&gt;
Return is a reserved word used to return a value in a function. The returned value must be of the datatype specified as the returndatatype (see [[Function]]). By default, the returntype of a process or function is an [[int]]. When this statement is reached, the function in which it resides will stop execution and return the specified value. If a value was not specified, the [[ProcessID]] will be returned.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Function string example_function()&lt;br /&gt;
Private&lt;br /&gt;
    string s;&lt;br /&gt;
Begin&lt;br /&gt;
    s = &amp;quot;Some string;&lt;br /&gt;
    return s;&lt;br /&gt;
End&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Used in example: [[Function]], [[Private]], [[Begin]], [[End]], [[Return]], [[String]]&lt;/div&gt;</summary>
		<author><name>Sandman</name></author>	</entry>

	<entry>
		<id>http://www.fenixdocs.com/index.php/Grayscale</id>
		<title>Grayscale</title>
		<link rel="alternate" type="text/html" href="http://www.fenixdocs.com/index.php/Grayscale"/>
				<updated>2008-04-14T19:10:35Z</updated>
		
		<summary type="html">&lt;p&gt;Summary: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:functions]]&lt;br /&gt;
[[Category:graphical effects]]&lt;br /&gt;
&lt;br /&gt;
==Definition==&lt;br /&gt;
'''INT''' grayscale ( &amp;lt;'''INT''' fileID&amp;gt; , &amp;lt;'''INT''' graphID&amp;gt; , &amp;lt;'''BYTE''' method&amp;gt; )&lt;br /&gt;
&lt;br /&gt;
This will convert the specified [[graphic]] by using the specified method; see [[#Notes|notes]] for the details.&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{|&lt;br /&gt;
| '''INT''' fileID || - The [[fileID]] of the [[file]] that holds the graphics.&lt;br /&gt;
|-&lt;br /&gt;
| '''INT''' graphID || - The [[graphID]] of the [[graphic]] to convert.&lt;br /&gt;
|-&lt;br /&gt;
| '''BYTE''' method || - The method used (see [[#Notes|notes]]).&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
'''INT'''&lt;br /&gt;
{|&lt;br /&gt;
| -1 || - Invalid graphic.&lt;br /&gt;
|-&lt;br /&gt;
| 1 || - Success.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Errors ==&lt;br /&gt;
{|&lt;br /&gt;
| Unsupported color depth || - The graphic's color depth is not 16bit.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
The exact formula is:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
c = 0.3 * oldpixel_r + 0.59 * oldpixel_g + 0.11 * oldpixel_b&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Method &amp;lt;code&amp;gt;0&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
for every pixel:&lt;br /&gt;
    newpixel_rgb = (c,c,c)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Method &amp;lt;code&amp;gt;1&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
for every pixel:&lt;br /&gt;
    newpixel_rgb = (c,0,0)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Method &amp;lt;code&amp;gt;2&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
for every pixel:&lt;br /&gt;
    newpixel_rgb = (0,c,0)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Method &amp;lt;code&amp;gt;3&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
for every pixel:&lt;br /&gt;
    newpixel_rgb = (0,0,c)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Method &amp;lt;code&amp;gt;4&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
for every pixel:&lt;br /&gt;
    newpixel_rgb = (c,c,0)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Method &amp;lt;code&amp;gt;5&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
for every pixel:&lt;br /&gt;
    newpixel_rgb = (c,0,c)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Method &amp;lt;code&amp;gt;6&amp;lt;/code&amp;gt;:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
for every pixel:&lt;br /&gt;
    newpixel_rgb = (0,c,c)&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Other methodnumbers:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
for every pixel:&lt;br /&gt;
    newpixel_rgb = oldpixel_rgb&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Note that &amp;lt;code&amp;gt;[[rgbscale]](0,map,1,1,1) = [[grayscale]](0,map,0)&amp;lt;/code&amp;gt; for a valid graphic (0,map).&lt;br /&gt;
&lt;br /&gt;
{{Funcbox&lt;br /&gt;
  | category=Graphical effects&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Sandman</name></author>	</entry>

	<entry>
		<id>http://www.fenixdocs.com/index.php/Rgbscale</id>
		<title>Rgbscale</title>
		<link rel="alternate" type="text/html" href="http://www.fenixdocs.com/index.php/Rgbscale"/>
				<updated>2008-04-13T22:04:49Z</updated>
		
		<summary type="html">&lt;p&gt;Summary: /* Notes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:functions]]&lt;br /&gt;
[[Category:graphical effects]]&lt;br /&gt;
&lt;br /&gt;
==Definition==&lt;br /&gt;
'''INT''' rgbscale ( &amp;lt;'''INT''' fileID&amp;gt; , &amp;lt;'''INT''' fraphID&amp;gt; , &amp;lt;'''FLOAT''' r&amp;gt; , &amp;lt;'''FLOAT''' g&amp;gt; , &amp;lt;'''FLOAT''' b&amp;gt; )&lt;br /&gt;
&lt;br /&gt;
This will convert the specified [[graphic]] by using the specified color as a reference. The converted graphic will have only the specified color and lighter/darker colors; see [[#Notes|notes]] for the details.&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{|&lt;br /&gt;
| '''INT''' fileID || - The [[fileID]] of the [[file]] that holds the graphics.&lt;br /&gt;
|-&lt;br /&gt;
| '''INT''' graphID || - The [[graphID]] of the [[graphic]] to convert.&lt;br /&gt;
|-&lt;br /&gt;
| '''FLOAT''' r || - The red component of the color to be used for reference.&lt;br /&gt;
|-&lt;br /&gt;
| '''FLOAT''' g || - The green component of the color to be used for reference.&lt;br /&gt;
|-&lt;br /&gt;
| '''FLOAT''' b || - The blue component of the color to be used for reference.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
'''INT'''&lt;br /&gt;
{|&lt;br /&gt;
| -1 || - Invalid graphic.&lt;br /&gt;
|-&lt;br /&gt;
| 1 || - Success.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Errors ==&lt;br /&gt;
{|&lt;br /&gt;
| Unsupported color depth || - The graphic's color depth is not 16bit.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
The exact formula is:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
for every pixel:&lt;br /&gt;
    c = 0.3 * oldpixel_r + 0.59 * oldpixel_g + 0.11 * oldpixel_b&lt;br /&gt;
    newpixel_r = r * c;&lt;br /&gt;
    newpixel_g = g * c;&lt;br /&gt;
    newpixel_b = b * c;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
where r,g,b are the specified r,g,b.&lt;br /&gt;
&lt;br /&gt;
Note that &amp;lt;code&amp;gt;[[rgbscale]](0,map,1,1,1) = [[grayscale]](0,map,0)&amp;lt;/code&amp;gt;, for a valid graphic (0,map).&lt;br /&gt;
&lt;br /&gt;
{{Funcbox&lt;br /&gt;
  | category=Graphical effects&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Sandman</name></author>	</entry>

	<entry>
		<id>http://www.fenixdocs.com/index.php/Fenix_profiler</id>
		<title>Fenix profiler</title>
		<link rel="alternate" type="text/html" href="http://www.fenixdocs.com/index.php/Fenix_profiler"/>
				<updated>2008-04-05T20:04:46Z</updated>
		
		<summary type="html">&lt;p&gt;Summary: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:general]]&lt;br /&gt;
[[Category:debugging]]&lt;br /&gt;
&lt;br /&gt;
The Fenix profiler is a handy debugging tool. It shows how much power is needed for certain systems of Fenix, most particularly the drawing and the interpreting.&lt;br /&gt;
&lt;br /&gt;
To use the profiler, run in debug mode by compiling your program in FXC.exe with the argument &amp;quot;-g&amp;quot;, and then show it in-program with ALT+P.&lt;br /&gt;
&lt;br /&gt;
Shortcuts:&lt;br /&gt;
{|&lt;br /&gt;
| ALT-P || - Show/hide the Fenix profiler&lt;br /&gt;
|-&lt;br /&gt;
| ALT-R || - Resets the profile history of the Fenix Profiler.&lt;br /&gt;
|-&lt;br /&gt;
| ALT-S || - Activate/Deactivate the Fenix Profiler.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Process Main()&lt;br /&gt;
Begin&lt;br /&gt;
&lt;br /&gt;
    // To make sure the profiler is updated every frame&lt;br /&gt;
    restore_type = COMPLETE_RESTORE;&lt;br /&gt;
&lt;br /&gt;
    A();&lt;br /&gt;
&lt;br /&gt;
    Loop&lt;br /&gt;
        frame;&lt;br /&gt;
    End&lt;br /&gt;
&lt;br /&gt;
End&lt;br /&gt;
&lt;br /&gt;
Process A()&lt;br /&gt;
Begin&lt;br /&gt;
    Loop&lt;br /&gt;
        frame;&lt;br /&gt;
    End&lt;br /&gt;
End&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Used in example: [[restore_type]], [[process]], [[frame]]&lt;br /&gt;
&lt;br /&gt;
{{Image&lt;br /&gt;
  | image = Profiler.png&lt;br /&gt;
  | caption = A typical profiler window of a program doing nothing&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
{{Debugging}}&lt;/div&gt;</summary>
		<author><name>Sandman</name></author>	</entry>

	<entry>
		<id>http://www.fenixdocs.com/index.php/Size</id>
		<title>Size</title>
		<link rel="alternate" type="text/html" href="http://www.fenixdocs.com/index.php/Size"/>
				<updated>2008-04-03T18:35:44Z</updated>
		
		<summary type="html">&lt;p&gt;Summary: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[category:variables]]&lt;br /&gt;
[[category:predefined]]&lt;br /&gt;
[[category:local variables]]&lt;br /&gt;
&lt;br /&gt;
[[Local variables|'''Up to Local Variables''']]&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Definition ==&lt;br /&gt;
'''INT''' size = 100&lt;br /&gt;
&lt;br /&gt;
Size is a predefined [[local variable]] that can be used to stretch or compress a graphic, equally along the horizontal axis and vertical axis. It is defined as a percentage of the original graphic size. The graphics's center will remain at the drawing coordinates when the graphic is drawn.&lt;br /&gt;
&lt;br /&gt;
This variable only has effect for the appearance of a [[process]]' [[graphic]] when its local variables [[size_x]] and [[size_y]] are both &amp;lt;code&amp;gt;100&amp;lt;/code&amp;gt;. When either is not equal to &amp;lt;code&amp;gt;100&amp;lt;/code&amp;gt;, [[size]] doesn't affect the appearance of the graphic.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&lt;br /&gt;
To make the [[graphic]] of a [[process]] continually stretch:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Process Main()&lt;br /&gt;
Begin&lt;br /&gt;
    graph = new_map(50,50,8); // Create a new graphic&lt;br /&gt;
    x = 100;                  // Position the graphic 100 pixels&lt;br /&gt;
    y = 100;                  // from the top and left of the screen&lt;br /&gt;
    Loop&lt;br /&gt;
        size += 1;            // Increase the height and width of the graphic by 1 percent each frame.&lt;br /&gt;
        frame;&lt;br /&gt;
    End&lt;br /&gt;
OnExit&lt;br /&gt;
    unload_map(0,graph);&lt;br /&gt;
End&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Used in example: [[new_map]](), [[x]], [[y]], [[size]], [[unload_map]]()&lt;br /&gt;
&lt;br /&gt;
== See also ==&lt;br /&gt;
* [[size_x]]&lt;br /&gt;
* [[size_y]]&lt;br /&gt;
&lt;br /&gt;
{{Locals}}&lt;/div&gt;</summary>
		<author><name>Sandman</name></author>	</entry>

	<entry>
		<id>http://www.fenixdocs.com/index.php/Bennu_WIP2</id>
		<title>Bennu WIP2</title>
		<link rel="alternate" type="text/html" href="http://www.fenixdocs.com/index.php/Bennu_WIP2"/>
				<updated>2008-03-28T20:07:27Z</updated>
		
		<summary type="html">&lt;p&gt;Summary: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Bennu]] Work in Progress 2.&lt;br /&gt;
&lt;br /&gt;
== Download ==&lt;br /&gt;
* [[Media:BennuGD-core-wip2.zip|Bennu WIP2 Core Files]]&lt;br /&gt;
* [[Media:BennuGD-externals-libs.zip|Bennu WIP2 External Libraries]]&lt;br /&gt;
* [[Media:BennuGD-modules-wip2.zip|Bennu WIP2 Modules]]&lt;br /&gt;
&lt;br /&gt;
== Bugs ==&lt;br /&gt;
&lt;br /&gt;
== Changelog ==&lt;/div&gt;</summary>
		<author><name>Sandman</name></author>	</entry>

	<entry>
		<id>http://www.fenixdocs.com/index.php/Include</id>
		<title>Include</title>
		<link rel="alternate" type="text/html" href="http://www.fenixdocs.com/index.php/Include"/>
				<updated>2008-03-19T14:48:27Z</updated>
		
		<summary type="html">&lt;p&gt;Summary: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:General]]&lt;br /&gt;
[[Category:Language]]&lt;br /&gt;
&lt;br /&gt;
== Definition ==&lt;br /&gt;
&lt;br /&gt;
'''Include''' &amp;quot;&amp;lt;filename&amp;gt;&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
When the compiler reaches an [[Include]] statement, it continues compilation at the included file (usually *.[[FH]] or *.[[INC]]) and when it's done resumes compiling from the [[Include]] statement. In other words, these files contain code that gets inserted at the place of inclusion.&lt;br /&gt;
&lt;br /&gt;
This is very handy for breaking up your code into pieces. The handling of video in one include file, audio in another, game logic in another, etc. This makes code more maintainable and understandable; moreover it makes code reusable. The video handling include file you made for one game can be used for another game (if it was coded in a generic fashion) without spitting through the whole sourcecode of the first game.&lt;br /&gt;
&lt;br /&gt;
Also headers can be used to import [[DLL]]s and possibly give a little more functionality to that DLL. For example [[Network.DLL]] uses a .[[FH]] header file to assure the DLL is only imported once during compilation and provides a little more functionality.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
'''main.prg'''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
// The code in &amp;quot;bar.inc&amp;quot; will be processed first:&lt;br /&gt;
include &amp;quot;bar.inc&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
Process Main()&lt;br /&gt;
Private&lt;br /&gt;
    int barcode;&lt;br /&gt;
Begin&lt;br /&gt;
    write_int(0,100,100,0,&amp;amp;barcode);&lt;br /&gt;
    barcode = bar();&lt;br /&gt;
    repeat     &lt;br /&gt;
        frame; &lt;br /&gt;
    until(key(_ESC))&lt;br /&gt;
End  &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''bar.inc'''&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Function int bar()&lt;br /&gt;
Begin&lt;br /&gt;
    return 5;&lt;br /&gt;
End&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Used in example: [[Include]], [[write_int]](), [[key]]()&lt;/div&gt;</summary>
		<author><name>212.123.12.180</name></author>	</entry>

	<entry>
		<id>http://www.fenixdocs.com/index.php/Value</id>
		<title>Value</title>
		<link rel="alternate" type="text/html" href="http://www.fenixdocs.com/index.php/Value"/>
				<updated>2008-03-01T11:15:32Z</updated>
		
		<summary type="html">&lt;p&gt;Summary: New page: A value can be in a container, like a [[variable]] or [[constant]]. It can also be returned by a [[process]] or [[function]].  == See Also == * [[Constant]] * [[Variable]]&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;A value can be in a container, like a [[variable]] or [[constant]]. It can also be returned by a [[process]] or [[function]].&lt;br /&gt;
&lt;br /&gt;
== See Also ==&lt;br /&gt;
* [[Constant]]&lt;br /&gt;
* [[Variable]]&lt;/div&gt;</summary>
		<author><name>Sandman</name></author>	</entry>

	<entry>
		<id>http://www.fenixdocs.com/index.php/Argument</id>
		<title>Argument</title>
		<link rel="alternate" type="text/html" href="http://www.fenixdocs.com/index.php/Argument"/>
				<updated>2008-03-01T10:49:26Z</updated>
		
		<summary type="html">&lt;p&gt;Summary: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Definition ==&lt;br /&gt;
&lt;br /&gt;
An argument is the [[value]] passed on when calling a [[function]] or [[process]]. The [[variable]] and its value inside the definition of a [[function]] or [[process]] is called a [[parameter]].&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Function int my_proc( int parameter )&lt;br /&gt;
Begin&lt;br /&gt;
    //statements&lt;br /&gt;
    return 0;&lt;br /&gt;
End&lt;br /&gt;
&lt;br /&gt;
Process Main()&lt;br /&gt;
Private&lt;br /&gt;
    int argument = 3;&lt;br /&gt;
Begin&lt;br /&gt;
    my_proc( argument );&lt;br /&gt;
    my_proc( 4);&lt;br /&gt;
End&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Used in example: [[Function]], [[Process]]&lt;br /&gt;
&lt;br /&gt;
[[Category:General]]&lt;/div&gt;</summary>
		<author><name>Sandman</name></author>	</entry>

	<entry>
		<id>http://www.fenixdocs.com/index.php/Load_ttfaa</id>
		<title>Load ttfaa</title>
		<link rel="alternate" type="text/html" href="http://www.fenixdocs.com/index.php/Load_ttfaa"/>
				<updated>2008-02-29T12:57:05Z</updated>
		
		<summary type="html">&lt;p&gt;Summary: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:functions]]&lt;br /&gt;
[[Category:ttfdll]]&lt;br /&gt;
[[Category:dll]]&lt;br /&gt;
&lt;br /&gt;
[[Functioncategory:Ttfdll|'''Up to TTF.DLL Functions''']]&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Definition==&lt;br /&gt;
'''INT''' load_ttfaa ( &amp;lt;'''STRING''' filename&amp;gt; , &amp;lt;'''INT''' height&amp;gt; , &amp;lt;'''INT''' colordepth&amp;gt; , &amp;lt;'''INT''' backgroundcolor&amp;gt; , &amp;lt;'''INT''' textcolor&amp;gt; )&lt;br /&gt;
&lt;br /&gt;
Loads a [[TTF]] file as a [[font]] into memory.&lt;br /&gt;
&lt;br /&gt;
Also called '''TTF_LoadAA'''() (if TTF.fh is included).&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{|&lt;br /&gt;
| '''STRING''' filename || - The filename of the [[TTF]] file that you wish to load (including extension and possible path).&lt;br /&gt;
|-&lt;br /&gt;
| '''INT''' height || - The height in pixels of the to be created font, a size indication.&lt;br /&gt;
|-&lt;br /&gt;
| '''INT''' colordepth || - The [[colordepth]] of the to be created font (1,8 or 16).&lt;br /&gt;
|-&lt;br /&gt;
| '''INT''' backgroundcolor || - The background color of the to be created font.&lt;br /&gt;
|-&lt;br /&gt;
| '''INT''' textcolor || - The text color of the to be created font.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
'''INT''' : [[FontID]]&lt;br /&gt;
{|&lt;br /&gt;
| -1 || - Error: file does not exist; insufficient memory; failed to init freetype.dll; error while loading file; error creating new font.&lt;br /&gt;
|-&lt;br /&gt;
| 0 || - Invalid filename.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;gt;0 || - The FontID.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Errors ==&lt;br /&gt;
{|&lt;br /&gt;
| Insufficient memory || - There is insufficient memory available. This error doesn't occur often.&lt;br /&gt;
|-&lt;br /&gt;
| Failed to init freetype.dll || - There was an error initializing freetype.dll&lt;br /&gt;
|-&lt;br /&gt;
| Error loading file || - There occurred an error while trying to load the file.&lt;br /&gt;
|-&lt;br /&gt;
| Error creating new font || - There occurred an error while trying to create a new font.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
This function gets a [http://en.wikipedia.org/wiki/Truetype TrueType] font and creates a new [[font]] with generated [[glyph]]s based on the recovered font in the standard characters set (ISO-8859-1).&lt;br /&gt;
These glyphs are generated with two colours, being the specified colours.&lt;br /&gt;
&lt;br /&gt;
It's possible to save the loaded font as [[FNT]] with [[save_fnt]](). This way the font can be reused on platforms not supporting [[TTF.DLL]]. Note that a FNT file only has information about the font for one size, while a TTF file has information for any size.&lt;br /&gt;
&lt;br /&gt;
The specified size is only an indication; some characters may be a little higher in fact.&lt;br /&gt;
&lt;br /&gt;
The parameters ''backgroundcolor'' and ''textcolor'' only matter for 8 and 16 bit colordepths. If you specify a colordepth of 1, then the returned font will be black (background) and white (textcolour). The advantage of this, is that you can use change the colour any time, even after loading, with [[set_text_color]]().&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
include &amp;quot;TTF.fh&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
Process Main()&lt;br /&gt;
Private&lt;br /&gt;
    int fontID;&lt;br /&gt;
Begin&lt;br /&gt;
&lt;br /&gt;
    fontID = load_ttfaa(&amp;quot;myttf.ttf&amp;quot;,20,1,0,0); // 1bit colordepth&lt;br /&gt;
    set_text_color(rgb(255,0,255)); // set_text_color() after load_ttfaa()&lt;br /&gt;
    write(fontID,160,100,4,&amp;quot;Look at my TTF font!&amp;quot;);&lt;br /&gt;
   &lt;br /&gt;
    Repeat&lt;br /&gt;
        frame;&lt;br /&gt;
    Until(key(_ESC))&lt;br /&gt;
&lt;br /&gt;
    unload_fnt(fontID);&lt;br /&gt;
&lt;br /&gt;
End&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Used in example: [[load_ttfaa]](), [[set_text_color]](), [[rgb]](), [[write]](), [[key]](), [[unload_fnt]]()&lt;br /&gt;
&lt;br /&gt;
{{Ttffuncbox}}&lt;/div&gt;</summary>
		<author><name>Sandman</name></author>	</entry>

	<entry>
		<id>http://www.fenixdocs.com/index.php/Load_ttf</id>
		<title>Load ttf</title>
		<link rel="alternate" type="text/html" href="http://www.fenixdocs.com/index.php/Load_ttf"/>
				<updated>2008-02-29T12:29:11Z</updated>
		
		<summary type="html">&lt;p&gt;Summary: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:functions]]&lt;br /&gt;
[[Category:ttfdll]]&lt;br /&gt;
[[Category:dll]]&lt;br /&gt;
&lt;br /&gt;
[[Functioncategory:Ttfdll|'''Up to TTF.DLL Functions''']]&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Definition==&lt;br /&gt;
'''INT''' load_ttf ( &amp;lt;'''STRING''' filename&amp;gt; , &amp;lt;'''INT''' height&amp;gt; )&lt;br /&gt;
&lt;br /&gt;
Loads a [[TTF]] file as a [[font]] into memory.&lt;br /&gt;
&lt;br /&gt;
Also called '''TTF_Load'''() (if TTF.fh is included).&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{|&lt;br /&gt;
| '''STRING''' filename || - The filename of the [[TTF]] file that you wish to load (including extension and possible path).&lt;br /&gt;
|-&lt;br /&gt;
| '''INT''' height || - The height in pixels of the to be created font, a size indication.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
'''INT''' : [[FontID]]&lt;br /&gt;
{|&lt;br /&gt;
| -1 || - Error: file does not exist; insufficient memory; failed to init freetype.dll; error while loading file; error creating new font.&lt;br /&gt;
|-&lt;br /&gt;
| 0 || - Invalid filename.&lt;br /&gt;
|-&lt;br /&gt;
| &amp;gt;0 || - The FontID.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Errors ==&lt;br /&gt;
{|&lt;br /&gt;
| Insufficient memory || - There is insufficient memory available. This error doesn't occur often.&lt;br /&gt;
|-&lt;br /&gt;
| Failed to init freetype.dll || - There was an error initializing freetype.dll&lt;br /&gt;
|-&lt;br /&gt;
| Error loading file || - There occurred an error while trying to load the file.&lt;br /&gt;
|-&lt;br /&gt;
| Error creating new font || - There occurred an error while trying to create a new font.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
This function gets a [http://en.wikipedia.org/wiki/Truetype TrueType] font and creates a new [[font]] with generated [[glyph]]s based on the recovered font in the standard characters set (ISO-8859-1).&lt;br /&gt;
These glyphs are generated with two colours, being colour 0 (transparent) and the color last set by [[set_text_color]](). The first one is the background colour and the last one is the colour of the characters self.&lt;br /&gt;
&lt;br /&gt;
It's possible to save the loaded font as [[FNT]] with [[save_fnt]](). This way the font can be reused on platforms not supporting [[TTF.DLL]]. Note that a FNT file only has information about the font for one size, while a TTF file has information for any size.&lt;br /&gt;
&lt;br /&gt;
The specified size is only an indication; some characters may be a little higher in fact.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
include &amp;quot;TTF.fh&amp;quot;;&lt;br /&gt;
&lt;br /&gt;
Process Main()&lt;br /&gt;
Private&lt;br /&gt;
    int fontID;&lt;br /&gt;
Begin&lt;br /&gt;
&lt;br /&gt;
    set_text_color(rgb(255,0,255));&lt;br /&gt;
    fontID = load_ttf(&amp;quot;myttf.ttf&amp;quot;,20);&lt;br /&gt;
&lt;br /&gt;
    write(fontID,160,100,4,&amp;quot;Look at my TTF font!&amp;quot;);&lt;br /&gt;
   &lt;br /&gt;
    Repeat&lt;br /&gt;
        frame;&lt;br /&gt;
    Until(key(_ESC))&lt;br /&gt;
&lt;br /&gt;
    unload_fnt(fontID);&lt;br /&gt;
&lt;br /&gt;
End&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Used in example: [[set_text_color]](), [[rgb]](), [[load_ttf]](), [[write]](), [[key]](), [[unload_fnt]]()&lt;br /&gt;
&lt;br /&gt;
{{Ttffuncbox}}&lt;/div&gt;</summary>
		<author><name>Sandman</name></author>	</entry>

	<entry>
		<id>http://www.fenixdocs.com/index.php/TTF_Changelog</id>
		<title>TTF Changelog</title>
		<link rel="alternate" type="text/html" href="http://www.fenixdocs.com/index.php/TTF_Changelog"/>
				<updated>2008-02-28T12:10:12Z</updated>
		
		<summary type="html">&lt;p&gt;Summary: New page: [[Category:changelog]] [[Category:ttfdll]] [[Category:dll]]  [[TTF.DLL|'''Up to TTF.DLL''']] ----   Changelog of [[TTF.DLL]].  {{Ttfdocbox}}&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:changelog]]&lt;br /&gt;
[[Category:ttfdll]]&lt;br /&gt;
[[Category:dll]]&lt;br /&gt;
&lt;br /&gt;
[[TTF.DLL|'''Up to TTF.DLL''']]&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Changelog of [[TTF.DLL]].&lt;br /&gt;
&lt;br /&gt;
{{Ttfdocbox}}&lt;/div&gt;</summary>
		<author><name>Sandman</name></author>	</entry>

	<entry>
		<id>http://www.fenixdocs.com/index.php/Clear_screen</id>
		<title>Clear screen</title>
		<link rel="alternate" type="text/html" href="http://www.fenixdocs.com/index.php/Clear_screen"/>
				<updated>2008-02-25T16:48:02Z</updated>
		
		<summary type="html">&lt;p&gt;Summary: /* Notes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:functions]]&lt;br /&gt;
[[Category:screen]]&lt;br /&gt;
&lt;br /&gt;
==Definition==&lt;br /&gt;
'''INT''' clear_screen ( )&lt;br /&gt;
&lt;br /&gt;
Clears the [[background]] of the screen.&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
'''INT''' : [[true]]&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
This is the same as &amp;lt;code&amp;gt;'''[[map_clear]]'''(0,[[BACKGROUND]])&amp;lt;/code&amp;gt;. When the background is cleared in either way, Fenix knows the background is empty and will take advantage of this knowledge.&lt;br /&gt;
&lt;br /&gt;
== Errors ==&lt;br /&gt;
{|&lt;br /&gt;
| Unsupported color depth || - The specified graph has a not supported color depth.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{{Funcbox&lt;br /&gt;
  | category = Screen&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>85.144.194.29</name></author>	</entry>

	<entry>
		<id>http://www.fenixdocs.com/index.php/Map_block_copy</id>
		<title>Map block copy</title>
		<link rel="alternate" type="text/html" href="http://www.fenixdocs.com/index.php/Map_block_copy"/>
				<updated>2008-02-17T19:53:49Z</updated>
		
		<summary type="html">&lt;p&gt;Summary: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:functions]]&lt;br /&gt;
[[Category:maps]]&lt;br /&gt;
&lt;br /&gt;
==Definition==&lt;br /&gt;
'''INT''' map_block_copy ( &amp;lt;'''INT''' fileID&amp;gt; , &amp;lt;'''INT''' destinationGraphID&amp;gt; , &amp;lt;'''INT''' destinationX&amp;gt; , &amp;lt;'''INT''' destinationY&amp;gt; , &amp;lt;'''INT''' originGraphID&amp;gt; , &amp;lt;'''INT''' x&amp;gt; , &amp;lt;'''INT''' y&amp;gt; , &amp;lt;'''INT''' width&amp;gt; , &amp;lt;'''INT''' height&amp;gt;, &amp;lt;'''INT''' blitflags&amp;gt;  )&lt;br /&gt;
&lt;br /&gt;
Draws ([[blit]]s) a rectangular block from one [[graphic]] onto another graphic.&lt;br /&gt;
&lt;br /&gt;
If the entire graphic is to be blitted, [[map_put]]() or [[map_xput]]() can be used.&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{| &lt;br /&gt;
| '''INT''' fileID || - The [[fileID]] of the [[file]] that holds the destination and origin graphics.&lt;br /&gt;
|-&lt;br /&gt;
| '''INT''' destinationGraphID || - The [[graphID]] of the [[graphic]] to draw on.&lt;br /&gt;
|-&lt;br /&gt;
| '''INT''' destinationX || - Where on the destination graph's x-axis to put the block.&lt;br /&gt;
|-&lt;br /&gt;
| '''INT''' destinationY || - Where on the destination graph's y-axis to put the block.&lt;br /&gt;
|-&lt;br /&gt;
| '''INT''' originGraphID || - The [[graphID]] of the [[graphic]] to draw with.&lt;br /&gt;
|-&lt;br /&gt;
| '''INT''' x || - The x-coordinate of the upperleft corner of the origin block.&lt;br /&gt;
|-&lt;br /&gt;
| '''INT''' y || - The y-coordinate of the upperleft corner of the origin block.&lt;br /&gt;
|-&lt;br /&gt;
| '''INT''' width || - The width of the block in pixels.&lt;br /&gt;
|-&lt;br /&gt;
| '''INT''' height|| - The height of the block in pixels.&lt;br /&gt;
|-&lt;br /&gt;
| '''INT''' blitflags || - What [[blit flags]] to draw the graphic with.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
'''INT''' : [[true]]&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
[[Blit flags]] can be used to give the drawing (blitting) a special effect.&lt;br /&gt;
&lt;br /&gt;
== Errors ==&lt;br /&gt;
{|&lt;br /&gt;
| Invalid origin graph || - The origin graph is invalid.&lt;br /&gt;
|-&lt;br /&gt;
| Invalid destination graph || - The destination graph is invalid.&lt;br /&gt;
|-&lt;br /&gt;
| Unsupported color depth || - The origin graphic's color depth is greater than the destination graph's.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{{Funcbox&lt;br /&gt;
  | category = Maps&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Eckolin</name></author>	</entry>

	<entry>
		<id>http://www.fenixdocs.com/index.php/Allpages</id>
		<title>Allpages</title>
		<link rel="alternate" type="text/html" href="http://www.fenixdocs.com/index.php/Allpages"/>
				<updated>2008-02-07T20:56:18Z</updated>
		
		<summary type="html">&lt;p&gt;Summary: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;From namespaces other than the general one, including redirects:&lt;br /&gt;
&amp;lt;dpl&amp;gt;&lt;br /&gt;
notnamespace=&lt;br /&gt;
titlematch=%&lt;br /&gt;
redirects = include&lt;br /&gt;
format = ,,,&lt;br /&gt;
resultsheader = %PAGES%\n&lt;br /&gt;
&amp;lt;/dpl&amp;gt;&lt;br /&gt;
From the general namespace, without redirects:&lt;br /&gt;
&amp;lt;dpl&amp;gt;&lt;br /&gt;
namespace=&lt;br /&gt;
titlematch=%&lt;br /&gt;
format = ,,,&lt;br /&gt;
resultsheader = %PAGES%\n&lt;br /&gt;
&amp;lt;/dpl&amp;gt;&lt;br /&gt;
From the general namespace, the redirects:&lt;br /&gt;
&amp;lt;dpl&amp;gt;&lt;br /&gt;
namespace=&lt;br /&gt;
titlematch=%&lt;br /&gt;
redirects = only&lt;br /&gt;
format = ,,,&lt;br /&gt;
resultsheader = %PAGES%\n&lt;br /&gt;
&amp;lt;/dpl&amp;gt;&lt;br /&gt;
==========&lt;br /&gt;
&amp;lt;dpl&amp;gt;&lt;br /&gt;
notnamespace=&lt;br /&gt;
titlematch=%&lt;br /&gt;
redirects = include&lt;br /&gt;
format = ,,\n\n[[%PAGE%]],&lt;br /&gt;
&amp;lt;/dpl&amp;gt;&lt;br /&gt;
&amp;lt;dpl&amp;gt;&lt;br /&gt;
namespace=&lt;br /&gt;
titlematch=%&lt;br /&gt;
format = ,,\n\n[[%PAGE%]],&lt;br /&gt;
&amp;lt;/dpl&amp;gt;&lt;br /&gt;
&amp;lt;dpl&amp;gt;&lt;br /&gt;
namespace=&lt;br /&gt;
titlematch=%&lt;br /&gt;
redirects = only&lt;br /&gt;
format = ,,\n\n[[%PAGE%]],&lt;br /&gt;
&amp;lt;/dpl&amp;gt;&lt;/div&gt;</summary>
		<author><name>Sandman</name></author>	</entry>

	<entry>
		<id>http://www.fenixdocs.com/index.php/LCD_ReadButton</id>
		<title>LCD ReadButton</title>
		<link rel="alternate" type="text/html" href="http://www.fenixdocs.com/index.php/LCD_ReadButton"/>
				<updated>2008-01-27T01:41:29Z</updated>
		
		<summary type="html">&lt;p&gt;Summary: New page: [[Category:functions]] [[Category:lcddll]] [[Category:dll]]  [[Functioncategory:Lcddll|'''Up to LCD.DLL Functions''']] ----   ==Definition== '''INT''' LCD_ReadButton ( &amp;lt;'''INT''' device&amp;gt; ,...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:functions]]&lt;br /&gt;
[[Category:lcddll]]&lt;br /&gt;
[[Category:dll]]&lt;br /&gt;
&lt;br /&gt;
[[Functioncategory:Lcddll|'''Up to LCD.DLL Functions''']]&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Definition==&lt;br /&gt;
'''INT''' LCD_ReadButton ( &amp;lt;'''INT''' device&amp;gt; , &amp;lt;'''INT''' button&amp;gt; )&lt;br /&gt;
&lt;br /&gt;
Returns whether a button is being pressed on a device.&lt;br /&gt;
&lt;br /&gt;
This also updates the button integer specified at [[LCD_Open]]().&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{|&lt;br /&gt;
| '''INT''' device || - Number of the device.&lt;br /&gt;
|-&lt;br /&gt;
| '''INT''' button || - Number of the button.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
'''INT''' : [[LCD_ERRORCODES|LCD.DLL Errorcodes]]&lt;br /&gt;
{|&lt;br /&gt;
| [[TRUE]] || - 1 || - The button is being pressed.&lt;br /&gt;
|-&lt;br /&gt;
| [[FALSE]] || - 0 || - The button is not being pressed.&lt;br /&gt;
|-&lt;br /&gt;
| LCD_ERROR_SERVICEINACTIVE || - -14 || - The service is inactive.&lt;br /&gt;
|-&lt;br /&gt;
| LCD_ERROR_INVALIDPARAMETER || - -22 || - Invalid parameter.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{{Lcdfuncbox}}&lt;/div&gt;</summary>
		<author><name>Sandman</name></author>	</entry>

	<entry>
		<id>http://www.fenixdocs.com/index.php/LCD_Devices</id>
		<title>LCD Devices</title>
		<link rel="alternate" type="text/html" href="http://www.fenixdocs.com/index.php/LCD_Devices"/>
				<updated>2008-01-27T01:28:35Z</updated>
		
		<summary type="html">&lt;p&gt;Summary: New page: [[Category:functions]] [[Category:lcddll]] [[Category:dll]]  [[Functioncategory:Lcddll|'''Up to LCD.DLL Functions''']] ----   ==Definition== '''INT''' LCD_Devices ( )  Returns the number o...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:functions]]&lt;br /&gt;
[[Category:lcddll]]&lt;br /&gt;
[[Category:dll]]&lt;br /&gt;
&lt;br /&gt;
[[Functioncategory:Lcddll|'''Up to LCD.DLL Functions''']]&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Definition==&lt;br /&gt;
'''INT''' LCD_Devices ( )&lt;br /&gt;
&lt;br /&gt;
Returns the number of devices available.&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
'''INT''' : The number of LCD devices available.&lt;br /&gt;
{|&lt;br /&gt;
| 0 || - No devices or error.&lt;br /&gt;
|-&lt;br /&gt;
| !0 || - The number of LCD devices available.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{{Lcdfuncbox}}&lt;/div&gt;</summary>
		<author><name>Sandman</name></author>	</entry>

	<entry>
		<id>http://www.fenixdocs.com/index.php/Delete_draw</id>
		<title>Delete draw</title>
		<link rel="alternate" type="text/html" href="http://www.fenixdocs.com/index.php/Delete_draw"/>
				<updated>2008-01-22T20:52:55Z</updated>
		
		<summary type="html">&lt;p&gt;Summary: Moved here from delete_drawing which does not exist&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:functions]]&lt;br /&gt;
[[Category:drawing]]&lt;br /&gt;
&lt;br /&gt;
==Definition==&lt;br /&gt;
'''INT''' delete_draw ( &amp;lt;'''INT''' DrawID&amp;gt; )&lt;br /&gt;
&lt;br /&gt;
Deletes a certain [[drawing]] from the screen.&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{|&lt;br /&gt;
| '''INT''' DrawID || - [[DrawID]] of the [[drawing]] to be deleted.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
'''INT''' : [[true]]&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
[[Delete_draw]](0) deletes all drawings from the screen.&lt;br /&gt;
&lt;br /&gt;
{{Funcbox&lt;br /&gt;
  | category=Drawing&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>85.144.194.29</name></author>	</entry>

	<entry>
		<id>http://www.fenixdocs.com/index.php/Reserved</id>
		<title>Reserved</title>
		<link rel="alternate" type="text/html" href="http://www.fenixdocs.com/index.php/Reserved"/>
				<updated>2008-01-20T23:45:15Z</updated>
		
		<summary type="html">&lt;p&gt;Summary: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[category:variables]]&lt;br /&gt;
[[category:predefined]]&lt;br /&gt;
[[category:local variables]]&lt;br /&gt;
&lt;br /&gt;
[[Local variables|'''Up to Local Variables''']]&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Definition ==&lt;br /&gt;
'''Struct''' Reserved&lt;br /&gt;
&lt;br /&gt;
Reserved is a [[local|local variable]] [[struct]], containing information that is reserved for [[Fenix]]' internals. However, sometimes you may wish to use certain members of it. Using in the sense of reading only, '''do not under any circumstances alter their values'''.&lt;br /&gt;
&lt;br /&gt;
If it's not documented what these members do, their use is reasonably limited. If you want to know what these members do, your programming goals are of a level, where you can also look in the [[Latest_Fenix_version|sourcecode]]. This is because most of these members would require a lengthy explanation about what they do and why.&lt;br /&gt;
&lt;br /&gt;
== Members ==&lt;br /&gt;
{|&lt;br /&gt;
| ''Member name'' || - ''Description''&lt;br /&gt;
|-&lt;br /&gt;
| '''INT''' ID_scan || - Internal use only (formerly [[get_id|got]] [[processID]] from within the [[process]]).&lt;br /&gt;
|-&lt;br /&gt;
| '''INT''' process_type || - The [[ProcessTypeID]] of the process.&lt;br /&gt;
|-&lt;br /&gt;
| '''INT''' type_scan || - Internal use only (formerly [[get_id|got]] [[processTypeID]] from within the process).&lt;br /&gt;
|-&lt;br /&gt;
| '''INT''' status || - The status of the process, containing a [[Process_statuscodes|status code]].&lt;br /&gt;
|-&lt;br /&gt;
| '''INT''' changed || - Internal use only.&lt;br /&gt;
|-&lt;br /&gt;
| '''INT''' xgraph_flags || - Internal use only ([[blit flags]] for [[xgraph]]).&lt;br /&gt;
|-&lt;br /&gt;
| '''INT''' saved_status || - Internal use only (for [[signals]]).&lt;br /&gt;
|-&lt;br /&gt;
| '''INT''' prev_z || - Previous [[z]] value.&lt;br /&gt;
|-&lt;br /&gt;
| '''INT''' distance1 || - Not used.&lt;br /&gt;
|-&lt;br /&gt;
| '''INT''' distance2 || - Not used.&lt;br /&gt;
|-&lt;br /&gt;
| '''INT''' frame_percent || - Internal use only.&lt;br /&gt;
|-&lt;br /&gt;
| '''INT''' box_x0 || - The x-coordinate of the topleft corner of the process' [[graphic]] (process.x-graphic.width/2).&lt;br /&gt;
|-&lt;br /&gt;
| '''INT''' box_y0 || - The y-coordinate of the topleft corner of the process' graphic (process.y-graphic.height/2).&lt;br /&gt;
|-&lt;br /&gt;
| '''INT''' box_x1 || - The x-coordinate of the bottomright corner of the process' graphic (process.x+graphic.width/2).&lt;br /&gt;
|-&lt;br /&gt;
| '''INT''' box_y1 || - The y-coordinate of the bottomright corner of the process' graphic (process.y+graphic.height/2).&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
{{Globals}}&lt;/div&gt;</summary>
		<author><name>Sandman</name></author>	</entry>

	<entry>
		<id>http://www.fenixdocs.com/index.php/Blend_operation</id>
		<title>Blend operation</title>
		<link rel="alternate" type="text/html" href="http://www.fenixdocs.com/index.php/Blend_operation"/>
				<updated>2008-01-17T23:03:53Z</updated>
		
		<summary type="html">&lt;p&gt;Summary: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:blendops]]&lt;br /&gt;
&lt;br /&gt;
== Definition ==&lt;br /&gt;
A blend operation is the act of executing the blend using a [[blend table]].&lt;br /&gt;
&lt;br /&gt;
This is done when [[blendop_apply]]() is used or each [[frame]] for a certain [[graphic]] when a blend table is [[blendop_assign|assigned]] to that graphic.&lt;/div&gt;</summary>
		<author><name>Sandman</name></author>	</entry>

	<entry>
		<id>http://www.fenixdocs.com/index.php/Blend_table</id>
		<title>Blend table</title>
		<link rel="alternate" type="text/html" href="http://www.fenixdocs.com/index.php/Blend_table"/>
				<updated>2008-01-17T22:55:23Z</updated>
		
		<summary type="html">&lt;p&gt;Summary: /* Example */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:blendops]]&lt;br /&gt;
&lt;br /&gt;
== Definition ==&lt;br /&gt;
A blend table contains the blend data needed to perform the blend between the object (source) and where the object is drawn (destination). The table contains those two sections: source and destination; these section are added together when blending, which cannot be altered, but the sections themselves can be influenced by the [[Functioncategory:Blendops|blend operations]] available.&lt;br /&gt;
&lt;br /&gt;
One can even make homemade blending operations, if one has enough knowledge of the subject, as [[blendop_new]]() returns a pointer to the created blend table. This table is constructed like this:&lt;br /&gt;
{|&lt;br /&gt;
| ''bytes-start'' || - ''bytes-end'' || - ''total'' || - ''purpose''&lt;br /&gt;
|-&lt;br /&gt;
| 0 || - 65535 || - 65536 || - Source section&lt;br /&gt;
|-&lt;br /&gt;
| 65536 || - 131071 || - 65536 || - Destination section&lt;br /&gt;
|}&lt;br /&gt;
Each pixel of a section represents a colour. When a blend table is initialized, it's done like this:&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
for (i = 0 ; i &amp;lt; 65536 ; i++) source[i] = i ;&lt;br /&gt;
for (i = 0 ; i &amp;lt; 65536 ; i++) destination[i] = 0 ;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
So:&lt;br /&gt;
* For the source section the following applies: The ''n''th index has value ''n''.&lt;br /&gt;
* For the destination section the following applies: The ''n''th index has value 0.&lt;br /&gt;
&lt;br /&gt;
== Example ==&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
Global&lt;br /&gt;
    int bo_tintred;&lt;br /&gt;
    int bo_tintredAndTranslucent;&lt;br /&gt;
    int bo_intense;&lt;br /&gt;
    int bo_destintense;&lt;br /&gt;
    int bo_grayscale;&lt;br /&gt;
    int bo_destgrayscale;&lt;br /&gt;
    int map;&lt;br /&gt;
End&lt;br /&gt;
&lt;br /&gt;
Process Main()&lt;br /&gt;
Begin&lt;br /&gt;
&lt;br /&gt;
    // Set mode to 320x200x16&lt;br /&gt;
    set_mode(320,200,16);&lt;br /&gt;
&lt;br /&gt;
    // Init tables&lt;br /&gt;
    bo_tintred = blendop_new();&lt;br /&gt;
    bo_tintredAndTranslucent = blendop_new();&lt;br /&gt;
    bo_intense = blendop_new();&lt;br /&gt;
    bo_grayscale = blendop_new();&lt;br /&gt;
    bo_destintense = blendop_new();&lt;br /&gt;
    bo_destgrayscale = blendop_new();&lt;br /&gt;
&lt;br /&gt;
    // Red tint&lt;br /&gt;
    blendop_tint(bo_tintred,0.5,100,0,0);&lt;br /&gt;
&lt;br /&gt;
    // Red tint with translucency&lt;br /&gt;
    blendop_tint(bo_tintredAndTranslucent,0.5,250,0,0);&lt;br /&gt;
    blendop_translucency(bo_tintredAndTranslucent,0.5);&lt;br /&gt;
&lt;br /&gt;
    // Intense&lt;br /&gt;
    blendop_intensity(bo_intense,1.5);&lt;br /&gt;
&lt;br /&gt;
    // Display the destination intense&lt;br /&gt;
    blendop_intensity(bo_destintense,1.5);&lt;br /&gt;
    blendop_swap(bo_destintense);&lt;br /&gt;
&lt;br /&gt;
    // Grayscale&lt;br /&gt;
    blendop_grayscale(bo_grayscale,1);&lt;br /&gt;
&lt;br /&gt;
    // Display the destination in grayscale&lt;br /&gt;
    blendop_grayscale(bo_destgrayscale,3);&lt;br /&gt;
    blendop_swap(bo_destgrayscale);&lt;br /&gt;
&lt;br /&gt;
    // Make a new map&lt;br /&gt;
    map = some_map(80,80,16);&lt;br /&gt;
&lt;br /&gt;
    // Make the background rgb(50,150,150)&lt;br /&gt;
    map_clear(0,background,rgb(50,150,150));&lt;br /&gt;
&lt;br /&gt;
    // Show the four different blend operations&lt;br /&gt;
    a( 50, 50,map,0,&amp;quot;original&amp;quot;);&lt;br /&gt;
    a(150, 50,map,bo_tintred,&amp;quot;red&amp;quot;);&lt;br /&gt;
    a(250, 50,map,bo_tintredAndTranslucent,&amp;quot;red+transparent&amp;quot;);&lt;br /&gt;
    a( 50,150,map,bo_intense,&amp;quot;intense&amp;quot;);&lt;br /&gt;
    a(150,150,map,bo_destintense,&amp;quot;dest instense&amp;quot;);&lt;br /&gt;
    a(250,150,map,bo_grayscale,&amp;quot;grayscale&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
    // Give this process one too&lt;br /&gt;
    blendop_assign(0,map,bo_destgrayscale);&lt;br /&gt;
    graph = map;&lt;br /&gt;
&lt;br /&gt;
    Repeat&lt;br /&gt;
        x = mouse.x;&lt;br /&gt;
        y = mouse.y;&lt;br /&gt;
        if(mouse.left)&lt;br /&gt;
            z = -1;&lt;br /&gt;
        else&lt;br /&gt;
            z = 1;&lt;br /&gt;
        end&lt;br /&gt;
        frame;&lt;br /&gt;
    Until(key(_ESC))&lt;br /&gt;
&lt;br /&gt;
OnExit&lt;br /&gt;
    let_me_alone();&lt;br /&gt;
End&lt;br /&gt;
&lt;br /&gt;
/**&lt;br /&gt;
 * Description&lt;br /&gt;
 *   Create a new process at the given coordinates.&lt;br /&gt;
 *   Its graph will be cloned from the specified one and the&lt;br /&gt;
 *   specified blendtable will be assigned.&lt;br /&gt;
 *   The specified text will be put on the background below the graph.&lt;br /&gt;
 *&lt;br /&gt;
 * Parameters&lt;br /&gt;
 *   int x,y         - Coordinates the process will be at.&lt;br /&gt;
 *   int graph       - The graph to be cloned (file=0).&lt;br /&gt;
 *   int blendtable  - The blendtable to assign to the graph.&lt;br /&gt;
 *   int string text - The text to put on the map.&lt;br /&gt;
 *&lt;br /&gt;
 * Returns&lt;br /&gt;
 *   ProcessID&lt;br /&gt;
 */&lt;br /&gt;
Process a(int x,int y,int graph, int blendtable, string text)&lt;br /&gt;
Begin&lt;br /&gt;
    &lt;br /&gt;
    // Clone the map&lt;br /&gt;
    graph = map_clone(0,graph);&lt;br /&gt;
&lt;br /&gt;
    // Assign the blend table&lt;br /&gt;
    blendop_assign(0,graph,blendtable);&lt;br /&gt;
&lt;br /&gt;
    // Set z=0&lt;br /&gt;
    z = 0;&lt;br /&gt;
&lt;br /&gt;
    // Create text and put it on the background&lt;br /&gt;
    set_text_color(rgb(100,200,250));&lt;br /&gt;
    height=write_in_map(0,text,1);&lt;br /&gt;
    put(0,height,x,y+1+graphic_info(0,graph,G_HEIGHT)/2);&lt;br /&gt;
    unload_map(0,height);&lt;br /&gt;
&lt;br /&gt;
    // Loop&lt;br /&gt;
    Loop frame; End&lt;br /&gt;
&lt;br /&gt;
End&lt;br /&gt;
&lt;br /&gt;
/**&lt;br /&gt;
 * Description&lt;br /&gt;
 *   Creates a map with the four corners coloured differently.&lt;br /&gt;
 *&lt;br /&gt;
 * Parameters&lt;br /&gt;
 *   int x,y,z       - The width, height and depth of the map to be created.&lt;br /&gt;
 *&lt;br /&gt;
 * Returns&lt;br /&gt;
 *   The graphID of the created map&lt;br /&gt;
 */&lt;br /&gt;
Function int some_map(int x, int y, int z)&lt;br /&gt;
Begin&lt;br /&gt;
    height = new_map(x,y,z);&lt;br /&gt;
    map_clear(0,height,rgb(50,100,150));&lt;br /&gt;
    drawing_map(0,height);&lt;br /&gt;
    drawing_color(rgb(200,50,100));&lt;br /&gt;
    draw_box(0,0,x/2,y/2);&lt;br /&gt;
    drawing_color(rgb(0,250,100));&lt;br /&gt;
    draw_box(x/2,0,x,y/2);&lt;br /&gt;
    drawing_color(rgb(150,50,250));&lt;br /&gt;
    draw_box(x/2,y/2,x,y);&lt;br /&gt;
    return height;&lt;br /&gt;
End&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
Used in example: [[set_mode]](), [[blendop_new]](), [[blendop_tint]](), [[blendop_translucency]](), [[blendop_intensity]](), [[blendop_swap]](), [[blendop_grayscale]](), [[map_clear]](), [[blendop_assign]](), [[key]](), [[let_me_alone]](), [[map_clone]](), [[set_text_color]](), [[write_in_map]](), [[put]](), [[unload_map]](), [[new_map]](), [[drawing_map]](), [[drawing_color]](), [[draw_box]](), [[mouse]]&lt;br /&gt;
&lt;br /&gt;
This will result in something like:&lt;br /&gt;
&lt;br /&gt;
[[Image:Blendops.PNG]]&lt;/div&gt;</summary>
		<author><name>Sandman</name></author>	</entry>

	<entry>
		<id>http://www.fenixdocs.com/index.php/Blendop_swap</id>
		<title>Blendop swap</title>
		<link rel="alternate" type="text/html" href="http://www.fenixdocs.com/index.php/Blendop_swap"/>
				<updated>2008-01-17T12:30:09Z</updated>
		
		<summary type="html">&lt;p&gt;Summary: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category:functions]]&lt;br /&gt;
[[Category:Blendops]]&lt;br /&gt;
&lt;br /&gt;
==Definition==&lt;br /&gt;
'''INT''' blendop_swap ( &amp;lt;'''INT''' blendTable&amp;gt; )&lt;br /&gt;
&lt;br /&gt;
Modify the [[blend table]] by swapping the source and destination sections. This means that the [[graphic]] the blend operation is assigned to will appear like what is  behind the object and the background will look like the object.&lt;br /&gt;
&lt;br /&gt;
This will swap the source and destination section of the [[blend table]].&lt;br /&gt;
&lt;br /&gt;
== Parameters ==&lt;br /&gt;
{|&lt;br /&gt;
| '''INT''' blendTable || - The [[blend table]] to swap the sections of.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Returns ==&lt;br /&gt;
'''INT''' : [[true]]&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
To understand what swapping actually does, consider the following:&lt;br /&gt;
* When done a blendop_swap() on a just initialized [[blend table]], the [[graphic]] it is assigned to will 'disappear'.&lt;br /&gt;
&lt;br /&gt;
{{Funcbox&lt;br /&gt;
  | category = Blendops&lt;br /&gt;
}}&lt;/div&gt;</summary>
		<author><name>Sandman</name></author>	</entry>

	</feed>