#!/bin/sh
#
# smi2gif -- draw wide color-on-black gif from SMILES or TDT 
#

# set up CX and DY environments, gif geometries

. ./dcgi_env.sh

# Possible colormode (-c) option values:
# [ C(olor) | W(hite) | B(lack) ] O(n) [ B(lack) | W(hite) | P(aper) ]
# e.g., COB, COW, COP, WOB, BOW, WOP, BOP

# Possible colormode (-a) for ALAB values: 2,3,4,5,6,7,8,9,10
# Default is a smiles, for tdt format us the -t option
# 
# For use with depictfile.cgi example
#exec ./dcgi_smi2gif $1

# Example for generating a gif from tdt input (stigmata output file)
#NUMCOL='10'
#export NUMCOL
#exec ./dcgi_smi2gif -t -a $NUMCOL -w $DY_WIDE_WIDTH -h $DY_WIDE_HEIGHT -c COB $1
#Example for default gif generation from a hex-encoded SMILES
exec ./dcgi_smi2gif -w $DY_WIDE_WIDTH -h $DY_WIDE_HEIGHT -c COB $1