Skip to content
Property Value
Hex Value $A4
Categories
Localizations
  • FR: Ombre(

Shade(

Overview

Draws lowerfunc and upperfunc in terms of X on the current graph and uses pattern and patres to shade and color the area bounded by lowerfunc, upperfunc, Xleft, and Xright. lowerfuncand upperfuncare shaded in the same specified color. Color#: 10 - 24 or color name pasted from [vars] COLOR.

Availability: Token available everywhere.

Syntax

Shade(lowerfunc,upperfunc[,Xleft,Xright,pattern,patres,color#])

Arguments

NameTypeOptional
lowerfunc
upperfunc
XleftYes
XrightYes
patternYes
patresYes
color#colorNumYes

Location

2nd, draw, DRAW, 7:Shade(


Description

The Shade( command draws two functions and shades the area between them.

Shade(lower func, upper func, [xmin, xmax, pattern #, resolution])

  • lowerfunc and upperfunc are the two functions (whenever lowerfunc<upperfunc, the area between them will be shaded)
  • xmin and xmax (optional) are left and right boundaries on where to shade.
  • pattern # (optional) is an integer 1-4 determining which pattern to use:
    • 1 — vertical shading (default)
    • 2 — horizontal shading
    • 3 — diagonal shading (negative slope)
    • 4 — diagonal shading (positive slope)
  • resolution (optional) is an integer 1-8 determining the spacing between shading lines. When it's 1 (default), everything is shaded, when it's 2, one pixel is skipped between lines, and so on - when it's 8, seven pixels are skipped.

Note that if you don't supply the resolution argument, it defaults to 1 and everything gets shaded regardless of the pattern.

Advanced Uses

Shade(Ymin,Ymax) is the smallest (though not the fastest) way to shade the entire screen.

See Also


Source: parts of this page were written by the following TI|BD contributors: DarkerLine, GoVegan, Timothy Foster.

History

Calculator OS Version Description
TI-82 1.0 Added

Last update: September 30, 2023 15:38:51
Created: February 23, 2023 23:15:01
Authors: Adrien Bertrand