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

[REBOL] deceleration !

From: frederic::email::wanadoo::fr at: 10-Oct-2002 17:35

Hi all !! i'm new in rebol and i'm not good in english so i'd try to be clear. I just test a script from auverlot's book, here it is : ********** REBOL [] pos-xy: none view layout [ b: box 400x400 white feel [ detect: func [face event] [ switch event/type [ move [ pos-xy: event/offset append b/effect/draw reduce [pos-xy] show b ] down [ pos-xy: event/offset append b/effect/draw reduce ['circle pos-xy 30 'line] show b ] alt-down [ append b/effect/draw reduce ['fill-pen (random 255.255.255) 'line] ] ] ] redraw: none ] effect [draw ['pen black 'line]] ] ************ So first when i moved around the mouse over the box very fast the pen seems to follow very good. but if i click down just one time (a circle is paint in the box), then suddenly the pen seems to be late. if i stop move the mouse, the pen ends up arriving, and if i move fast again, the pen is always late. I don't understand why a simple draw circle command in a dynamic drawing decrease the drawing performance. I hope that you've understand my question. Thanks in advance to all. Fred.