Changes between Version 13 and Version 14 of ChimeraAnimationState


Ignore:
Timestamp:
Jan 6, 2011, 11:18:38 AM (15 years ago)
Author:
Darren Weber
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • ChimeraAnimationState

    v13 v14  
    111111}}}
    112112
     113Interpolating color:
     114
     115{{{
     116#!python
     117>>> red = chimera.MaterialColor( 1.0, 0.0, 0.0, 0.0)
     118>>> green = chimera.MaterialColor( 0.0, 1.0, 0.0, 0.0)
     119>>> for w in [i/10.0 for i in range(11)]:
     120        mc = chimera.MaterialColor(red, green, w)
     121        print mc.rgba()
     122
     123(1.0, 0.0, 0.0, 0.0)
     124(1.0, 0.2, 0.0, 0.0)
     125(1.0, 0.4, 0.0, 0.0)
     126(1.0, 0.6, 0.0, 0.0)
     127(1.0, 0.8, 0.0, 0.0)
     128(1.0, 1.0, 0.0, 0.0)
     129(0.8, 1.0, 0.0, 0.0)
     130(0.6, 1.0, 0.0, 0.0)
     131(0.4, 1.0, 0.0, 0.0)
     132(0.2, 1.0, 0.0, 0.0)
     133(0.0, 1.0, 0.0, 0.0)
     134>>>
     135}}}
     136
     137
    113138
    114139==== Representations ====