home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / historic / v941.tgz / icon.v941src.tar / icon.v941src / ipl / gprogs / isd2disd.icn < prev    next >
Text File  |  2002-01-24  |  1KB  |  42 lines

  1. ############################################################################
  2. #
  3. #    File:     isd2disd.icn
  4. #
  5. #    Subject:  Program to show convert ISD draft to drawdown form
  6. #
  7. #    Author:   Ralph E. Griswold
  8. #
  9. #    Date:     November 1, 2001
  10. #
  11. ############################################################################
  12. #
  13. #  This file is in the public domain.
  14. #
  15. ############################################################################
  16. #
  17. #  This program converts an ISD to an ISD with drawdown colors.
  18. #
  19. ############################################################################
  20. #
  21. #  Links:  weavutil, xcode
  22. #
  23. ############################################################################
  24.  
  25. link weavutil
  26. link xcode
  27.  
  28. procedure main()
  29.    local draft
  30.  
  31.    isd                # fly a kite, linker
  32.  
  33.    draft := xdecode(&input)
  34.  
  35.    draft.warp_colors := list(*draft.threading, 1)    # black
  36.    draft.weft_colors := list(*draft.treadling, 2)    # white
  37.    draft.color_list := [ColorValue("black"), ColorValue("white")]
  38.  
  39.    xencode(draft, &output)
  40.  
  41. end
  42.