
-----------------------------------
rizzix
Sat Apr 23, 2005 8:38 pm

[Tutorial] Turing Graphics Extensions
-----------------------------------
Turing Graphics Extenstions {the next sprite alternative}

Ok so, its funny I have all this stuff and it's just hatching on my computer. I've decided to get rid of them. So here's my first documented library: GFX.

GFX is a very robust and reliable, proceduaral based Turing graphics extenstion library. It includes quite a bit of stuff, useful for animation (as in sprites) and useful elementary drawing functions that extend those of Turing's standard functions.

Imports
Before using this library in your code, it is necessary to import GFX into your code likewise:import GFX in "path/to/GFX.tu",
       Globals in "path/to/Globals.tu"

Quick RGB Color functions
I've found it cumbersome to work with the turing color code. I rather prefer to work with the (255,255,255) tuple colour codes. So I deviced these quick RGB colour functions that return the equivalent (temporary) turing colour code for a given RGB colour code.

RGBi  (r, g, b : int) : Color
RGBr  (r, g, b : real) : Color
where RGBi takes in integer values r,g,b such that 0 