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

impossible figure

 [1/8] from: anton:lexicon at: 4-Sep-2002 3:52


Here's a little graphic toy to play with. site: http://www.lexicon.net/anton/rebol/ do load-thru site/demo/impossible-figure.r This only works properly for view beta 1.2.5.3.1 and the latest view beta 1.2.8.3.1 I am hoping rebol 3.0 will come out soon, so then I will be able to fix a lot of stuff. Anton.

 [2/8] from: jjmmes::yahoo::es at: 3-Sep-2002 21:31


Hi Anton, you need to add: do load-thru site/library/include.r Cool demo ! As you seem to be a gfx wiz: Do you have any script to position an image (jpg or png) as a 3D face ? This also would be cool for the fonts tool I want to write (see gfx GURUS thread) Regards, Jose --- Anton <[anton--lexicon--net]> escribió: > Here's a little graphic toy to play with.

 [3/8] from: bodind:club-internet at: 3-Sep-2002 22:38


hello, Where can one find this view 1.2.8.3.1 beta ? Thank's 03/09/2002 19:52:07, "Anton" <[anton--lexicon--net]> a écrit:
>Here's a little graphic toy to play with. >site: http://www.lexicon.net/anton/rebol/
<<quoted lines omitted: 8>>
>[rebol-request--rebol--com] with "unsubscribe" in the >subject, without the quotes.
Dominique Bodin [bodind--club-internet--fr]

 [4/8] from: petr:krenzelok:trz:cz at: 4-Sep-2002 6:22


Anton wrote:
>Here's a little graphic toy to play with. >site: http://www.lexicon.net/anton/rebol/
<<quoted lines omitted: 3>>
>I am hoping rebol 3.0 will come out soon, >so then I will be able to fix a lot of stuff.
Rebol 3.0? You dreamer ;-) We've got those betas after one + few months from last official release and you hoping for 3.0 anytime soon? -pekr-

 [5/8] from: anton:lexicon at: 4-Sep-2002 16:19


Thanks Jose,
> Hi Anton, > > you need to add: > > do load-thru site/library/include.r
Thanks, I have fixed that now. And, even better, I also fixed the cause of the reason why I forgot about that. :) The reason is that I have modified my user.r to define a few useful words and functions that I use a lot. But I had no really easy way to switch on/off my definitions. And by "really easy" I don't mean opening up an editor and modifying user.r by hand. The effect of having to do that is that I never bothered to run a "clean" rebol to test my scripts, so occasionally bugs arrive in code I've uploaded. I wanted to have two icons, whose command lines are just slightly different: Rebol/View rebol.exe -- "do-anton-user?: true" Rebol/View (clean) rebol.exe And now I have. :) The first icon tells user.r to define my functions. See my other post today to see the details of that: system/options/args can be accessed in user.r I have had the same idea with fonts and 3d text, so I started work on a trapezoid function, that can map a 2d image into a trapezoid. It's not finished, but you can see what it can do at the moment. site: http://www.lexicon.net/anton/rebol/ do load-thru site/demo/demo-trapezoid-morph.r Together with a rotation function it could go places. (Although not fast. :) But, oh my gosh, my rotation demos are in a bit of a mess at the moment, because I'm half way through fixing them for the current beta release, and that broke them for older full releases, so they don't work for anyone! When rebol 3.0 comes out I'll be fixing everything frantically. Anton

 [6/8] from: reffy:ulrich at: 4-Sep-2002 5:46


Hey Anton, Those are some neato demos you have in your graphics directory !!

 [7/8] from: jjmmes:y:ahoo:es at: 4-Sep-2002 16:29


Hi Anton, Very interest in this. I'm running View beta and when I add some text and press Draw I get an error: "vertical-trapezoid" has no value Regards,

 [8/8] from: anton:lexicon at: 5-Sep-2002 2:57


Show us your code. Or - just take my code, then cut out pieces one by one until it stops working, then add the last piece in again, and repeat. Eventually, you will be left with the minimum required to get it working. You know the score. :) Or - see the top of the demo code; It uses a function 'include, which is in a separate file (which I use a lot), to include the trapezoid-morph function, which is in another file. Only after it has been included can you use the trapezoid-morph function. Details details... The user doesn't care, shouldn't care, but man, how else can I fight the beast of complexity, a creature I fight every day in my dreams? You don't have to answer that. Here are some snippets of code that may help you. You need at least this: site: http://www.lexicon.net/anton/rebol/ do load-thru site/library/include.r include [ site/library/trapezoid-morph.r [vertical-trapezoid] ] ; (now you can use vertical-trapezoid) Load an image, or create it from text: img: to-image layout [origin 0 backdrop black h1 "hello" white] You could use my trim-image function to crop away all the blank borders around the image, so the edges fit exactly: file: %trim-image.r if none? do load-thru site/library/:file [ view layout [h3 "Couldn't load-thru" h4 to-string site/library/:file] quit ] img: trim-image img Oops, I just noticed vertical-trapezoid does a show pic and ??? which just goes to show how beta it is. Anyway, let us do what it expects for now: ???: none view layout [ size 200x200 image img ; original image button "draw" [ vertical-trapezoid img none 2x2 40 120x10 80 ] pic: image img ] Happy hacking, Anton.

Notes
  • Quoted lines have been omitted from some messages.
    View the message alone to see the lines that have been omitted