⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 yabasic.xml

📁 Linux下VB解释器
💻 XML
📖 第 1 页 / 共 5 页
字号:
	</varlistentry>	<varlistentry>	  <term><link linkend="ref_poke">poke</link></term>	  <listitem>	    change selected internals of <application>yabasic</application>	  </listitem>	</varlistentry>	<varlistentry>	  <term><link linkend="ref_rem">rem</link></term>	  <listitem>	    start a comment	  </listitem>	</varlistentry>	<varlistentry>	  <term><link linkend="ref_sleep">sleep</link></term>	  <listitem>	    pause, sleep, wait for the specified number of seconds	  </listitem>	</varlistentry>	<varlistentry>	  <term><link linkend="ref_system">system$()</link></term>	  <listitem>	    hand a statement over to your operating system and return its output	  </listitem>	</varlistentry>	<varlistentry>	  <term><link linkend="ref_system2">system()</link></term>	  <listitem>	    hand a statement over to your operating system and return its exitcode	  </listitem>	</varlistentry>	<varlistentry>	  <term><link linkend="ref_time">time$</link></term>	  <listitem>	    return a string containing the current time	  </listitem>	</varlistentry>	<varlistentry>	  <term><link linkend="ref_to">to</link></term>	  <listitem>	    this keyword appears as part of other statements	  </listitem>	</varlistentry>	<varlistentry>	  <term><link linkend="ref_wait">wait</link></term>	  <listitem>	    pause, sleep, wait for the specified number of seconds	  </listitem>	</varlistentry>	<varlistentry>	  <term><link linkend="ref_double_slash">//</link></term>	  <listitem>	    starts a comment	  </listitem>	</varlistentry>	<varlistentry>	  <term><link linkend="ref_colon">:</link></term>	  <listitem>	    separate commands from each other	  </listitem>	</varlistentry>      </variablelist>    </sect1>    <sect1 renderas="sect2" id="top_graphics">      <title>Graphics and printing</title>      <variablelist>	<varlistentry>	  <term><link linkend="ref_backcolor">backcolor</link></term>	  <listitem>	    specify the colour for subsequent drawing of the background	  </listitem>	</varlistentry>	<varlistentry>	  <term><link linkend="ref_box">box</link></term>	  <listitem>	    draw a rectangle. A synonym for <function>rectangle</function>	  </listitem>	</varlistentry>	<varlistentry>	  <term><link linkend="ref_circle">circle</link></term>	  <listitem>	    draws a circle in the graphic-window	  </listitem>	</varlistentry>	<varlistentry>	  <term><link linkend="ref_clear">clear</link></term>	  <listitem>	    Erase <function>circle</function>s, <function>rectangle</function>s or <function>triangles</function>s	  </listitem>	</varlistentry>	<varlistentry>	  <term><link linkend="ref_clear_window">clear window</link></term>	  <listitem>	    clear the graphic window and begin a new page, if printing is under way	  </listitem>	</varlistentry>	<varlistentry>	  <term><link linkend="ref_close_curve">close curve</link></term>	  <listitem>	    close a curve, that has been drawn by the <function>line</function>-command	  </listitem>	</varlistentry>	<varlistentry>	  <term><link linkend="ref_close_window">close window</link></term>	  <listitem>	    close the graphics-window	  </listitem>	</varlistentry>	<varlistentry>	  <term><link linkend="ref_colour">colour</link></term>	  <listitem>	    specify the colour for subsequent drawing	  </listitem>	</varlistentry>	<varlistentry>	  <term><link linkend="ref_dot">dot</link></term>	  <listitem>	    draw a dot in the graphic-window	  </listitem>	</varlistentry>	<varlistentry>	  <term><link linkend="ref_fill">fill</link></term>	  <listitem>	    draw a filled <function>circle</function>s, <function>rectangle</function>s or <function>triangle</function>s	  </listitem>	</varlistentry>	<varlistentry>	  <term><link linkend="ref_getbit">getbit$()</link></term>	  <listitem>	    return a string representing the bit pattern of a rectangle within the graphic window	  </listitem>	</varlistentry>	<varlistentry>	  <term><link linkend="ref_line">line</link></term>	  <listitem>	    draw a line	  </listitem>	</varlistentry>	<varlistentry>	  <term><link linkend="ref_mouseb">mouseb</link></term>	  <listitem>	    extract the state of the mousebuttons from a string returned by <function>inkey$</function>	  </listitem>	</varlistentry>	<varlistentry>	  <term><link linkend="ref_mousemod">mousemod</link></term>	  <listitem>	    return the state of the modifier keys during a mouseclick	  </listitem>	</varlistentry>	<varlistentry>	  <term><link linkend="ref_mousex">mousex</link></term>	  <listitem>	    return the x-position of a mouseclick	  </listitem>	</varlistentry>	<varlistentry>	  <term><link linkend="ref_mousey">mousey</link></term>	  <listitem>	    return the y-position of a mouseclick	  </listitem>	</varlistentry>	<varlistentry>	  <term><link linkend="ref_new_curve">new curve</link></term>	  <listitem>	    start a new curve, that will be drawn with the <function>line</function>-command	  </listitem>	</varlistentry>	<varlistentry>	  <term><link linkend="ref_open_window">open window</link></term>	  <listitem>	    open a graphic window	  </listitem>	</varlistentry>	<varlistentry>	  <term><link linkend="ref_putbit">putbit</link></term>	  <listitem>	    draw a rectangle of pixels into the graphic window	  </listitem>	</varlistentry>	<varlistentry>	  <term><link linkend="ref_rectangle">rectangle</link></term>	  <listitem>	    draw a rectangle	  </listitem>	</varlistentry>	<varlistentry>	  <term><link linkend="ref_triangle">triangle</link></term>	  <listitem>	    draw a triangle	  </listitem>	</varlistentry>	<varlistentry>	  <term><link linkend="ref_text">text</link></term>	  <listitem>	    write text into your graphic-window	  </listitem>	</varlistentry>	<varlistentry>	  <term><link linkend="ref_origin">window origin</link></term>	  <listitem>	    move the origin of a window	  </listitem>	</varlistentry>      </variablelist>    </sect1>  </chapter>  <chapter id="chapter_ref_words">    <title>All commands and functions of <application>yabasic</application> grouped alphabetically</title>    <sect1 renderas="sect2" id="ref_a">      <title>A</title>      <refentry id="ref_abs">	<refmeta>	  <refentrytitle>abs()</refentrytitle>	</refmeta>	<refnamediv>	  <refname>abs()</refname>	  <refpurpose>returns the absolute value of its numeric argument</refpurpose>	</refnamediv>	<refsynopsisdiv>	  <synopsis>y=abs(x)</synopsis>	</refsynopsisdiv>	<refsect1>	  <title>Description</title>	  <para>If the argument of the <function>abs</function>-function is positive (e.g. 2) it is returned unchanged, if the argument is negative (e.g. -1) it is returned as a positive value (e.g. 1).</para>	</refsect1>	<refsect1>	  <title>Example</title>	  <informalexample>	    <programlisting>print abs(-2),abs(2)          </programlisting>	    <para>This example will print <computeroutput>2 2</computeroutput></para>	  </informalexample>	</refsect1>	<refsect1>	  <title>See also</title>	  <para><link linkend="ref_sig"><function>sig</function></link></para>	</refsect1>      </refentry>      <refentry id="ref_acos">	<refmeta>	  <refentrytitle>acos()</refentrytitle>	</refmeta>	<refnamediv>	  <refname>acos()</refname>	  <refpurpose>returns the arcus cosine of its numeric argument</refpurpose>	</refnamediv>	<refsynopsisdiv>	  <synopsis>x=acos(angle)</synopsis>	</refsynopsisdiv>	<refsect1>	  <title>Description</title>	  <para><function>acos</function> is the arcus cosine-function, i.e. the inverse of the <link linkend="ref_cos"><function>cos</function></link>-function. Or, more elaborate: It Returns the angle (in radian, not degree !), which, fed to the cosine-function will produce the argument passed to the <function>acos</function>-function.</para>	</refsect1>	<refsect1>	  <title>Example</title>	  <informalexample>	    <programlisting>print acos(0.5),acos(cos(pi))          </programlisting>	    <para>This example will print <computeroutput>1.0472 3.14159</computeroutput> which are &pgr;/3 and &pgr; respectively.</para>	  </informalexample>	</refsect1>	<refsect1>	  <title>See also</title>	  <para><link linkend="ref_cos"><function>cos</function></link>, <link linkend="ref_asin"><function>asin</function></link></para>	</refsect1>      </refentry>      <refentry id="ref_logical_and">	<refmeta>	  <refentrytitle>and</refentrytitle>	</refmeta>	<refnamediv>	  <refname>and</refname>	  <refpurpose>logical and, used in conditions</refpurpose>	</refnamediv>	<refsynopsisdiv>	  <synopsis>if (a and b) &hellip;while (a and b) &hellip;</synopsis>	</refsynopsisdiv>	<refsect1>	  <title>Description</title>	  <para>Used in conditions (e.g within <function><link linkend="ref_if">if</link></function>, <function><link linkend="ref_while">while</link></function> or <function><link linkend="ref_until">until</link></function>) to join two expressions. Returns <constant>true</constant>, if and only if its left and right argument are both <constant>true</constant> and <constant>false</constant> otherwise.</para>	  <para>Note, that <linklinkend="ref_logical_shortcuts"><emphasis>logical shortcuts</emphasis></link> may take place.</para>	</refsect1>	<refsect1>	  <title>Example</title>	  <informalexample>	    <programlisting>input "Please enter a

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -