home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-1.iso / Files / Educ / Calc / MathPad 2.35.sit / XFuns / imageRGB.rsrc / TEXT_128_imageRGB().txt next >
Encoding:
Text File  |  1995-04-29  |  389 b   |  14 lines

  1. -- imageRGB(rgbarray)
  2. -- Allows direct specification of the red, green and blue color components of each image element. The intensity of each component can range from 0.0 to 1.0
  3.  
  4. rgbarray[ix,iy] = {red(ix),green(iy),blue(ix)} dim[nrows,ncols]
  5.  
  6. n=15; nrows=n; ncols=n
  7. red(i)   = (i-1)/(n-1)
  8. green(i) = (i-1)/(n-1)
  9. blue(i)  = (n-i)/(n-1)
  10.  
  11. imageRGB(rgbarray):
  12.  
  13. Xmin=0; Xmax=n; Ymin=0; Ymax=n
  14.