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

[REBOL] How to extend effects?

From: atruter::labyrinth::net::au at: 19-Mar-2003 9:28

Given the following: <code> REBOL [] img: to-image layout [origin 0 box 100x100 blue] my-effect: func [face] [ repeat pos (face/size/x * face/size/y) [ poke face pos either odd? pos [255.255.255.0][0.0.0.0] ] ] view layout [ image my-effect img ] </code> is it possible to simply have "view layout [image img effect [my-effect]]", in essence extending the effects available to VID? *If* this is possible, is it also possible to make the my-effect func generic such that "view layout [box blue effect [my-effect]]" works? If VID is a dialect, what are effects? Built-ins, properties, words? Are they something that "belongs" to VID or View? Regards, Ashley