POV-Ray : Newsgroups : povray.binaries.images : First Post to P.B.I : Re: First Post to P.B.I Server Time
4 Oct 2024 15:15:06 EDT (-0400)
  Re: First Post to P.B.I  
From: Spider
Date: 6 Apr 1999 23:16:36
Message: <370ABF05.14EA1639@bahnhof.se>
Whatever people(I) say about javascript, it is a form of programming, and any
form of programming is useful, since the basic thinking can be applied to most
other programming languages.

I know this by practice, since once I learned Pascal, I found it very easy to
switch to Java or C, as well as it was even easier to understand the simpler
script languages(mIRC scrips....)


Thomas Lake wrote:
> 
> Ahh I see. I don't know how to program but I do know JavaScript and this is very
> similar to the do while loops in JavaScript. Thanks for clarifying.
> 
> Spider wrote:
> 
> > Macros are easy to use, they are basically a set of operations bundled together.
> > To add the use, you can call this set with different in-data.
> >
> > But before using a macro, It would be best to learn how to code.
> >
> > A good thing for this would be a #while() loop, stepping with the amount of
> > bricks in the wall, multiplying with the offset.
> >
> > This will create one line. to create more, just add another loop, but in height.
> >
> > (untested)this should be something like what you want.
> >
> > #declare nX = 10;
> > #declare nY = 5;
> > #declare brick = box { <0,0,0>,<1,0.5,1> pigment{ mortarRed }
> > #declare offset = 0.5;
> >
> > #declare Y = nY;
> > #while(Y>0)
> >   #declare X = nX;
> >   #while(X>0)
> >     object { brick translate <X*offset,0,Y*offset> }
> >     #declare X = X -1;
> >   #end
> >   #declare Y = Y - 1;
> > #end
> >
> > Margus Ramst wrote:
> > >
> > > Thomas Lake wrote in message <37094515.5FC05DCC@home.com>...
> > > >
> > > >>Ken Tyler
> > > >>Everyone knows that indenting mortar would be a mad and lunatic
> > > >>endeavour beneath even the lowest and unworthy Pov-ray user out
> > > >>there.
> > > >
> > > >What do you mean? Joke?
> > > >
> > >
> > > Long story...
> > >
> > > Margus
> >
> > --
> > //Spider
> >         [ spi### [at] bahnhofse ]-[ http://www.bahnhof.se/~spider/ ]
> > What I can do and what I could do, I just don't know anymore
> >                 "Marian"
> >         By: "Sisters Of Mercy"

-- 
//Spider
        [ spi### [at] bahnhofse ]-[ http://www.bahnhof.se/~spider/ ]
What I can do and what I could do, I just don't know anymore
                "Marian"
        By: "Sisters Of Mercy"


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.