|
|
SWIFT ETEBA <swi### [at] etebagr> wrote:
: I am trying to put an image (.bmp, .gif, etc) inside a wood frame.
: Or in other words I am trying to fit an image exactly in a finite plane
: (like the sides of a cube). Is there any suggestions?
: And another thing.
box
{ 0, <1, 1, .01>
pigment { image_map { ... } }
translate <-.5, -.5, 0>
scale <ImagemapWidth/ImagemapHeight, 1, 1>
(other transformations...)
}
The image will exactly fill the box. The height of the box is 1 and the
width depends on the aspect ratio of the image map. (Of course you have to
define ImagemapWidth and ImagemapHeight by yourself)
--
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/
Post a reply to this message
|
|