From: Andreas Leitgeb on 7 Jul 2010 12:59 ZB <zbTHIS-NO(a)ispid.THIS-NOcom.pl> wrote: > Dnia 07.07.2010 Andreas Leitgeb <avl(a)gamma.logic.tuwien.ac.at> napisał/a: >> My personal opinion is: "not really worth that much trouble", >> as I believe it would be very complicated to implement, but >> anyway I hope to have correctly guessed and re-explained >> the OP's intention. > Yes, exactly; and I was wondering, would it be really that much trouble with > implementation? It surely isn't as simple as treating each coordinate modulo canvas-size, or you'd get a small 40x40 red square instead of the white cross in my previous example. An object that's cut off at the right side must be copied to the left side, so the parts chopped off on right side will reach in from left. If it's also surpassing the top or bottom edge, you'd even have to make it 4 items, to get the effect in both dimensions. And if the item is large, then you'd even need more copies per direction. If you merely meant, that each item would stay singular, but just drawn wrapped around, then binding to such items becomes quite a mess, because any mouseclick not only has to be checked for items underneath the click- point, but also underneath any virtual point, that after wrapping might fall under the click. And I wouldn't bet on that these are already all the possible problems. |