Your IP : 18.191.120.103
�
��^c @ s� d Z d d l Td d l Z d Z d Z d Z d Z d Z d � Z d
� Z d � Z
d � Z d
� Z d � Z
d � Z d d d � � YZ d e f d � � YZ d d d � � YZ d d d � � YZ d S( sz Strip viewer and related widgets.
The classes in this file implement the StripViewer shown in the top two thirds
of the main Pynche window. It consists of three StripWidgets which display
the variations in red, green, and blue respectively of the currently selected
r/g/b color value.
Each StripWidget shows the color variations that are reachable by varying an
axis of the currently selected color. So for example, if the color is
(R,G,B)=(127,163,196)
then the Red variations show colors from (0,163,196) to (255,163,196), the
Green variations show colors from (127,0,196) to (127,255,196), and the Blue
variations show colors from (127,163,0) to (127,163,255).
The selected color is always visible in all three StripWidgets, and in fact
each StripWidget highlights the selected color, and has an arrow pointing to
the selected chip, which includes the value along that particular axis.
Clicking on any chip in any StripWidget selects that color, and updates all
arrows and other windows. By toggling on Update while dragging, Pynche will
select the color under the cursor while you drag it, but be forewarned that
this can be slow.
i����( t *Ns� proc setcolor {canv colors} {
set i 1
foreach c $colors {
$canv itemconfigure $i -fill $c -outline $c
incr i
}
}
i i i t c C sX d | d } d } g } x7 | d k rS | j t | � � | | } | d } q W| S( Ng �o@i g i ( t appendt int( t numchipst stept startt seq( ( s8 /usr/lib64/python2.7/site-packages/pynche/StripViewer.pyt constant4 s
c C s&