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