Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

No color for grid effect?

 [1/5] from: semseddinm::bircom::com at: 5-Jan-2009 10:15


Hi, Grid Effect has a color option according to VID document: (http://www.rebol.com/docs/view-guide.html) { Grid: Generate a two dimensional grid of lines. This is a useful backdrop for graphical layout programs. The optional arguments are: a PAIR that specifies the horizontal and vertical spacing of the grid lines, a PAIR that specifies the offset of the first lines, a PAIR that indicates the THICKNESS of the horizontal and vertical lines, and a TUPLE that provides the color of the lines. } But the following two lines give same result, is color ignored or am I doing something wrong? view layout [box 100x100 blue effect [grid 5x8 10x10 2x1]] view layout [box 100x100 blue effect [grid 5x8 10x10 2x1 110.120.130]]

 [2/5] from: anton:wilddsl:au at: 5-Jan-2009 20:17


Hi, no it's probably not your fault; GRID unfortunately has inconsistencies with arguments, depending on how many of them you specify. This hasn't changed for a long-time, and unlikely to be fixed, since all effort moved to Rebol3. And none of us outside RT can fix it, because we don't have access to the source code. Regards, Anton. =DEemseddin Moldibi [ Bircom ] wrote:

 [3/5] from: semseddinm::bircom::com at: 5-Jan-2009 11:41


Thank you very much, Fortunately it is not a big problem, I just curious about it.

 [4/5] from: anton:wilddsl:au at: 6-Jan-2009 0:41


Hi again, My first reply was a bit hasty. I went back and checked my example code do http://anton.wildit.net.au/rebol/view/effect/grid.r and you can set grid colour as long as the arguments are specified in some ordered way. eg: [grid (spacing) (offset) (colour) (thickness)] [grid 11x11 2x2 purple 3x3 ] Regards, Anton. =DEemseddin Moldibi [ Bircom ] wrote:

 [5/5] from: semseddinm::bircom::com at: 5-Jan-2009 16:00


Wow! That's great! Thanks a lot!