global forces

Let the developers know what you think of the software and what can be done to either improve the CFDG language or the Context Free program.

Moderators: MtnViewJohn, chris, mtnviewmark

Post Reply
some dude

global forces

Post by some dude »

Is there a way (currently) to add a global force?

I'm thinking something along the lines of gravity making things droop.

some dude

Post by some dude »

Now that I think about it a bit more I think this is equivalent to asking if there is a way to do iteration, so is there?

User avatar
lagroue
Posts: 114
Joined: Wed Jul 06, 2005 11:33 pm
Location: Paris, France
Contact:

Post by lagroue »

Iterations can be either enumerated, either recursively described.

Code: Select all

//enumeration
rule FiveSquares {
  SQUARE { }
  SQUARE { x 2 }
  SQUARE { x 4 }
  SQUARE { x 6 }
  SQUARE { x 8 }
}

//recursion
rule Infinity {
  SQUARE { }
  Infinity { x 1 s 0.9 } // move right, and scale down (so that squares get tinier and tinier, and the whole infinity fits in the screen).
}
I don't expect any "gravity" field appearing anytime soon, since any part of the pictures is supposed to be independent of all the rest of the picture. I mean : if a shape falls, then it is below another shape, and thus they are not independant : one is "below" the other.

There is no such things as top, bottom, left or right, tiny or large stuff. This is one meaning of "context free".

Post Reply