Thank you for taking the time to answer my question and to provide a code example.
Honestly, I think that I'm in over my head here. I've tried several different ways to incorporate your code into my sketch and I keep getting error messages. (Newly revised code, using your suggestions, attached).
Error message: Arduino: 1.8.5 (Windows 10), Board: "Arduino/Genuino Uno"
C:\Program Files (x86)\Arduino\DemoNTSC_TESTER\DemoNTSC_TESTER.ino:27:9: warning: narrowing conversion of '(xOff - cSize)' from 'int' to 'float' inside { } [-Wnarrowing]
{xOff - cSize,yOff + cSize,zOff - cSize},
^
C:\Program Files (x86)\Arduino\DemoNTSC_TESTER\DemoNTSC_TESTER.ino:27:22: warning: narrowing conversion of '(yOff + cSize)' from 'int' to 'float' inside { } [-Wnarrowing]
{xOff - cSize,yOff + cSize,zOff - cSize},
^
C:\Program Files (x86)\Arduino\DemoNTSC_TESTER\DemoNTSC_TESTER.ino:27:35: warning: narrowing conversion of '(zOff - cSize)' from 'int' to 'float' inside { } [-Wnarrowing]
{xOff - cSize,yOff + cSize,zOff - cSize},
^
C:\Program Files (x86)\Arduino\DemoNTSC_TESTER\DemoNTSC_TESTER.ino:28:9: warning: narrowing conversion of '(xOff + cSize)' from 'int' to 'float' inside { } [-Wnarrowing]
{xOff + cSize,yOff + cSize,zOff - cSize},
^
C:\Program Files (x86)\Arduino\DemoNTSC_TESTER\DemoNTSC_TESTER.ino:28:22: warning: narrowing conversion of '(yOff + cSize)' from 'int' to 'float' inside { } [-Wnarrowing]
{xOff + cSize,yOff + cSize,zOff - cSize},
^
C:\Program Files (x86)\Arduino\DemoNTSC_TESTER\DemoNTSC_TESTER.ino:28:35: warning: narrowing conversion of '(zOff - cSize)' from 'int' to 'float' inside { } [-Wnarrowing]
{xOff + cSize,yOff + cSize,zOff - cSize},
^
C:\Program Files (x86)\Arduino\DemoNTSC_TESTER\DemoNTSC_TESTER.ino:29:9: warning: narrowing conversion of '(xOff - cSize)' from 'int' to 'float' inside { } [-Wnarrowing]
{xOff - cSize,yOff - cSize,zOff - cSize},
^
C:\Program Files (x86)\Arduino\DemoNTSC_TESTER\DemoNTSC_TESTER.ino:29:22: warning: narrowing conversion of '(yOff - cSize)' from 'int' to 'float' inside { } [-Wnarrowing]
{xOff - cSize,yOff - cSize,zOff - cSize},
^
C:\Program Files (x86)\Arduino\DemoNTSC_TESTER\DemoNTSC_TESTER.ino:29:35: warning: narrowing conversion of '(zOff - cSize)' from 'int' to 'float' inside { } [-Wnarrowing]
{xOff - cSize,yOff - cSize,zOff - cSize},
^
C:\Program Files (x86)\Arduino\DemoNTSC_TESTER\DemoNTSC_TESTER.ino:30:9: warning: narrowing conversion of '(xOff + cSize)' from 'int' to 'float' inside { } [-Wnarrowing]
{xOff + cSize,yOff - cSize,zOff - cSize},
^
C:\Program Files (x86)\Arduino\DemoNTSC_TESTER\DemoNTSC_TESTER.ino:30:22: warning: narrowing conversion of '(yOff - cSize)' from 'int' to 'float' inside { } [-Wnarrowing]
{xOff + cSize,yOff - cSize,zOff - cSize},
^
C:\Program Files (x86)\Arduino\DemoNTSC_TESTER\DemoNTSC_TESTER.ino:30:35: warning: narrowing conversion of '(zOff - cSize)' from 'int' to 'float' inside { } [-Wnarrowing]
{xOff + cSize,yOff - cSize,zOff - cSize},
^
C:\Program Files (x86)\Arduino\DemoNTSC_TESTER\DemoNTSC_TESTER.ino:31:9: warning: narrowing conversion of '(xOff - cSize)' from 'int' to 'float' inside { } [-Wnarrowing]
{xOff - cSize,yOff + cSize,zOff + cSize},
^
C:\Program Files (x86)\Arduino\DemoNTSC_TESTER\DemoNTSC_TESTER.ino:31:22: warning: narrowing conversion of '(yOff + cSize)' from 'int' to 'float' inside { } [-Wnarrowing]
{xOff - cSize,yOff + cSize,zOff + cSize},
^
C:\Program Files (x86)\Arduino\DemoNTSC_TESTER\DemoNTSC_TESTER.ino:31:35: warning: narrowing conversion of '(zOff + cSize)' from 'int' to 'float' inside { } [-Wnarrowing]
{xOff - cSize,yOff + cSize,zOff + cSize},
^
C:\Program Files (x86)\Arduino\DemoNTSC_TESTER\DemoNTSC_TESTER.ino:32:9: warning: narrowing conversion of '(xOff + cSize)' from 'int' to 'float' inside { } [-Wnarrowing]
{xOff + cSize,yOff + cSize,zOff + cSize},
^
C:\Program Files (x86)\Arduino\DemoNTSC_TESTER\DemoNTSC_TESTER.ino:32:22: warning: narrowing conversion of '(yOff + cSize)' from 'int' to 'float' inside { } [-Wnarrowing]
{xOff + cSize,yOff + cSize,zOff + cSize},
^
C:\Program Files (x86)\Arduino\DemoNTSC_TESTER\DemoNTSC_TESTER.ino:32:35: warning: narrowing conversion of '(zOff + cSize)' from 'int' to 'float' inside { } [-Wnarrowing]
{xOff + cSize,yOff + cSize,zOff + cSize},
^
C:\Program Files (x86)\Arduino\DemoNTSC_TESTER\DemoNTSC_TESTER.ino:33:9: warning: narrowing conversion of '(xOff - cSize)' from 'int' to 'float' inside { } [-Wnarrowing]
{xOff - cSize,yOff - cSize,zOff + cSize},
^
C:\Program Files (x86)\Arduino\DemoNTSC_TESTER\DemoNTSC_TESTER.ino:33:22: warning: narrowing conversion of '(yOff - cSize)' from 'int' to 'float' inside { } [-Wnarrowing]
{xOff - cSize,yOff - cSize,zOff + cSize},
^
C:\Program Files (x86)\Arduino\DemoNTSC_TESTER\DemoNTSC_TESTER.ino:33:35: warning: narrowing conversion of '(zOff + cSize)' from 'int' to 'float' inside { } [-Wnarrowing]
{xOff - cSize,yOff - cSize,zOff + cSize},
^
C:\Program Files (x86)\Arduino\DemoNTSC_TESTER\DemoNTSC_TESTER.ino:34:9: warning: narrowing conversion of '(xOff + cSize)' from 'int' to 'float' inside { } [-Wnarrowing]
{xOff + cSize,yOff - cSize,zOff + cSize}
^
C:\Program Files (x86)\Arduino\DemoNTSC_TESTER\DemoNTSC_TESTER.ino:34:22: warning: narrowing conversion of '(yOff - cSize)' from 'int' to 'float' inside { } [-Wnarrowing]
{xOff + cSize,yOff - cSize,zOff + cSize}
^
C:\Program Files (x86)\Arduino\DemoNTSC_TESTER\DemoNTSC_TESTER.ino:34:35: warning: narrowing conversion of '(zOff + cSize)' from 'int' to 'float' inside { } [-Wnarrowing]
{xOff + cSize,yOff - cSize,zOff + cSize}
^
C:\Program Files (x86)\Arduino\DemoNTSC_TESTER\DemoNTSC_TESTER.ino: In function 'void setup()':
DemoNTSC_TESTER:39: error: 'intro' was not declared in this scope
intro();
^
C:\Program Files (x86)\Arduino\DemoNTSC_TESTER\DemoNTSC_TESTER.ino: In function 'void cube()':
DemoNTSC_TESTER:106: error: 'zrotate' was not declared in this scope
zrotate(angle);
^
DemoNTSC_TESTER:107: error: 'printcube' was not declared in this scope
printcube();
^
DemoNTSC_TESTER:112: error: 'zrotate' was not declared in this scope
zrotate(2 * PI - angle);
^
DemoNTSC_TESTER:113: error: 'printcube' was not declared in this scope
printcube();
^
DemoNTSC_TESTER:118: error: 'xrotate' was not declared in this scope
xrotate(angle);
^
DemoNTSC_TESTER:119: error: 'printcube' was not declared in this scope
printcube();
^
DemoNTSC_TESTER:124: error: 'xrotate' was not declared in this scope
xrotate(2 * PI - angle);
^
DemoNTSC_TESTER:125: error: 'printcube' was not declared in this scope
printcube();
^
DemoNTSC_TESTER:130: error: 'yrotate' was not declared in this scope
yrotate(angle);
^
DemoNTSC_TESTER:131: error: 'printcube' was not declared in this scope
printcube();
^
DemoNTSC_TESTER:136: error: 'yrotate' was not declared in this scope
yrotate(2 * PI - angle);
^
DemoNTSC_TESTER:137: error: 'printcube' was not declared in this scope
printcube();
^
C:\Program Files (x86)\Arduino\DemoNTSC_TESTER\DemoNTSC_TESTER.ino: At global scope:
DemoNTSC_TESTER:145: error: expected unqualified-id before 'switch'
switch(random(6)) {
^
exit status 1
'intro' was not declared in this scope
This report would have more information with
"Show verbose output during compilation"
option enabled in File -> Preferences.
TVOut.txt (6.46 KB)