Пример #1
0
#schemer.py: Generate scheme tables to entered hex colours.
from Mezcal import Mezcal
import sys
mezcal = Mezcal()

x = None
while x is None:
	f = input("Enter a hex or 'N' to continue on..." )
	if f == "N" or f == "n":
		x = "SUM"
	else:
		t = mezcal.rumHex( hexval=f )
		x = None

f = file('schemer.html', 'w')
f.write( "<html>" )
f.write( "<head>" )
f.write( "</head>" )
f.write( "<body>" )
f.write( "<table>" )

hexsets = mezcal.hexsets

for clr in hexsets:
	# Write complimentary table
	f.write( "<tr><td bgcolor=", clr, ">",clr,"</td><td>compliments</td><td></td><td></td><td></td></tr>" )
	f.write( "<tr><td></td><td></td><td bgcolor=", hexsets[clr]['complimentary'][0], "><font color=", hexsets[clr]['complimentary'][1], ">hexsets[", clr, "]['complimentary'][0]</font></td><td><font color=", hexsets[clr]['complimentary'][0], "><b>spagetti</b></font></td></tr>" )
	f.write( "<tr><td></td><td></td><td bgcolor=", hexsets[clr]['complimentary'][1], "><font color=", hexsets[clr]['complimentary'][0], ">hexsets[", clr, "]['complimentary'][1]</font></td><td><font color=", hexsets[clr]['complimentary'][1], "><b>fork</b></font></td></tr>" )

	# Write splite-compliment table
	f.write( "<tr><td></td><td>split-compliments</td><td></td><td></td></tr>" )
Пример #2
0
3) Spirituality/Science (as a function of one's tools of preoccupation, essentially the same thing-- meaning making.)
4) Fun

1 compliments 3, as 2 compliments 4.  Similarly, you cant have 2 without 1, 3 without 2, or 4 without 3.

On another note, 'Parrot's Paradox', regarding immortality (survival) if mind is body then genes are memes: atleast until another species 'copies' a book (or someother conceptual device).

12 in. "in" a ft., 3 ft "in" a yrd., 60 sec./min "in" a min/hr, 24 hrs. "in" a day, 360 degrees "in" a circle.
"""

# Colour vars:
# base='#ff3333'
base = input("Enter a hexidecimal for Mezcal style sheet.")


cal = Mezcal()
scheme1 = cal.rumHex(hexval=base)
scheme2 = cal.rumHex(hexval=scheme1["tetrads"][1])
scheme3 = cal.rumHex(hexval=scheme1["tetrads"][2])
scheme4 = cal.rumHex(hexval=scheme1["tetrads"][3])

colour1 = "#d3d3d3"
colour2 = "#808080"
colour3 = "#000000"
colour7 = scheme3["triads"][1]  # Erik Erikson's  circuit-stage 5
colour5 = scheme3["triads"][0]  # Erik Erikson's  circuit-stage 6
colour4 = scheme4["triads"][1]  # Erik Erikson's  circuit-stage 7
colour9 = scheme4["triads"][0]  # Erik Erikson's  circuit-stage 8
colour8 = scheme1["triads"][1]  # Erik Erikson's circuit-stage 1
colour10 = scheme1["triads"][0]  # Erik Erikson's  circuit-stage 2
colour24 = scheme2["triads"][1]  # Erik Erikson's  circuit-stage 3