Difference between revisions of "83Plus:Basic:Graphics:Shade("

From WikiTI
Jump to: navigation, search
m (cleanup)
(Cleaned up to match template, added some info about patterns)
 
Line 4: Line 4:
 
'''Token size:''' 1 byte
 
'''Token size:''' 1 byte
  
'''Syntax:''' Shade(lower equation,upper equation[,left side of X to shade from,right side of X to shade to[,pattern,pixel frequency]])
+
'''Syntax:''' Shade(''lower_equation'',''upper equation''[,left_x_limit,right_x_limit[,pattern,pixel_frequency]])
  
Shades in an area defined by the two equations, with a pattern at a certain pixel frequency.
+
Shades in an area between two equations.
 +
 
 +
== Outputs: ==
 +
 
 +
The area between ''lower_equation'' and ''upper_equation'' is shaded on the graph screen.  The width can be specified with ''left_x_limit'' and ''right_x_limit''.  ''pattern'' and ''pixel_frequency'' can also be supplied to control the pattern used for shading.
  
 
Patterns are:
 
Patterns are:
 
* 1: vertical
 
* 1: vertical
 
* 2: horizontal
 
* 2: horizontal
* 3: slanted (top left to bottem right)
+
* 3: slanted (top left to bottom right)
* 4: slanted (bottem left to top left)
+
* 4: slanted (bottom left to top right)
 
+
== Outputs: ==
+
 
+
Shaded in area on the graph screen
+
  
 
== Comments ==
 
== Comments ==
  
* Pattern may only be 1-4
+
* If ''left_x_limit'' and ''right_x_limit'' are left out, the entire area on the screen between the equations is filled
 +
* Both equations are drawn on the graph screen along with the shading
 +
* ERR:DOMAIN if ''pattern'' isn't a valid pattern number or ''pixel_frequency'' is too large
 +
* If ''pattern'' and ''pixel_frequency'' are left out, the area will be filled with solid black
  
 
== Examples ==
 
== Examples ==

Latest revision as of 12:29, 18 September 2006


Synopsis

Token size: 1 byte

Syntax: Shade(lower_equation,upper equation[,left_x_limit,right_x_limit[,pattern,pixel_frequency]])

Shades in an area between two equations.

Outputs:

The area between lower_equation and upper_equation is shaded on the graph screen. The width can be specified with left_x_limit and right_x_limit. pattern and pixel_frequency can also be supplied to control the pattern used for shading.

Patterns are:

  • 1: vertical
  • 2: horizontal
  • 3: slanted (top left to bottom right)
  • 4: slanted (bottom left to top right)

Comments

  • If left_x_limit and right_x_limit are left out, the entire area on the screen between the equations is filled
  • Both equations are drawn on the graph screen along with the shading
  • ERR:DOMAIN if pattern isn't a valid pattern number or pixel_frequency is too large
  • If pattern and pixel_frequency are left out, the area will be filled with solid black

Examples

To make a sort of Star Trek: Voyager logo:

:Shade(−X^2-2,−X^2+7,−10,10,3,2