Files
2026-08-03 18:42:47 +08:00

40 lines
659 B
Promela

# load pdb file which has a CRYST1 record
load 1DN2.pdb,1dn2
# create neighbors with contacts
symexp s,1dn2,(all),4.0
# display ribbon only, and make it a little bit "fatter"
hide
set ribbon_radius = 0.75
show ribbon
# rotate, zoom, and adjust clipping
reset
turn y,90
move z,50
turn x,5
turn y,5
# color symmetry-related copies distinctly
color white
color yellow, (1dn2)
color cyan, (s01-10100)
color marine, (s0000-100 or s00000100)
color red, (s01000000)
color violet, (s00000001 or s000000-1)
color orange, (s01000001)
color pink, (s01000101)
color green, (s01000100)
# now render (about 1 minute)
set antialias=1
ray
png packing.png