How do you Select colors for GHEAT Tiles

10 views
Skip to first unread message

jried31

unread,
Feb 8, 2011, 11:26:23 AM2/8/11
to gheat
Hello,
I am trying to use your GHEAT code for a research project, and I’m
trying to get an understanding of how your code selects colors of
tiles given the PNG reference file of color shades in the “color-
scheme” directory.

We modified the code to take in the following logic, where a set of
data points each represent an individual square tile, and each tile’s
color should be based on the <value> attribute:
<point_a> < point_b> <value>
<point_a> < point_b> <value>
<point_a> < point_b> <value>
<point_a> < point_b> <value>
……..

I selected numbers randomly in hopes to understand whether you divide
the tiles into quarters in terms of values, but that doesn’t seem to
be the case….If it is the case, then where specifically do you specify
the value ranges that correspond to the color shades (for division).
If this is not the case, then I’m lost as to how you assign values to
color shade segments.

Steven Lehrburger

unread,
Feb 8, 2011, 10:42:40 PM2/8/11
to gh...@googlegroups.com
I have only limited familiarity with the gheat code, but take a look in pil_.py in _colorize - I think that's where the colors get assigned from the color scheme. I've used a fork of gheat, gheat-ae, and could explain how I'm selecting tiles in my somewhat heavily customized code if it would be helpful.

/~s



--
You received this message because you are subscribed to the Google Groups "gheat" group.
To post to this group, send email to gh...@googlegroups.com.
To unsubscribe from this group, send email to gheat+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/gheat?hl=en.


Reply all
Reply to author
Forward
0 new messages