#170: r.colors: make nice random colors like r.watershed
--------------------------+-------------------------------------------------
  Reporter:  hamish       |       Owner:  [email protected]
      Type:  enhancement  |      Status:  new                      
  Priority:  minor        |   Milestone:  6.4.0                    
 Component:  default      |     Version:  svn-develbranch6         
Resolution:               |    Keywords:  r.colors                 
--------------------------+-------------------------------------------------
Comment (by hamish):

 re. the fairly dark r.watershed color rule:

 raster/r.watershed/ram/close_maps2.c
 {{{
 if((blue*.11 + red*.30 + green*.59) < 100) {
    G_set_color(r, rd, gr, bl, &colors);
 }}}


 Matlab (or Octave) calc:
 {{{
 >> rgb = [ 27 36 70 ]
 >> mult = [.11 .30 .59]
 >> sum(rgb .* mult)
 ans =

    55.0700
 }}}


 55.07 < 100   ???



 Hamish

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/170#comment:4>
GRASS GIS <http://grass.osgeo.org>
_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev

Reply via email to