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

[REBOL] Re: draw question

From: greggirwin::starband::net at: 13-Sep-2001 14:49

Hi Graham, << What do I need to change to get my "circles" to draw across the edges of the grid. The top left hand one is truncated. >> Well, you're drawing on the image face, so anything you draw on there is going to be clipped to its boundaries. If you want to go outside those boundaries, I think you'll need to draw on another face. This shows drawing on the backdrop to accomplish the task. Note that it isn't "smart" in any way. I just pasted your draw commands so they occur for both the backdrop and the image. REBOL [] polished: load-thru/binary http://www.cybarite.com/public/polished.png palms: load-thru/binary http://www.rebol.com/view/palms.jpg pic-offset: 20x20 view layout [ size 400x400 backdrop polished gold effect [tile draw [ pen 200.0.0 fill-pen black circle (100x100 + pic-offset) 9 fill-pen white circle (200x200 + pic-offset) 9 fill-pen black circle (0x0 + pic-offset) 9 fill-pen white circle (100x120 + pic-offset) 9 ] ] at pic-offset image 360x360 palms effect [fit grid 20x20 draw [ pen 200.0.0 fill-pen black circle 100x100 9 fill-pen white circle 200x200 9 fill-pen black circle 0x0 9 fill-pen white circle 100x120 9 ] ] ] --Gregg