Constants coords, but unconstant size

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
-M&N-
Posts: 1
Joined: Sun Aug 05, 2007 8:25 am

Constants coords, but unconstant size

Post by -M&N- »

I wanted to create something similar to following:

Code: Select all

startshape CIRCLES_TABLE

rule CIRCLES_TABLE{
	CIRCLES_ROW1{}
	CIRCLES_ROW2{y 1}
	CIRCLES_ROW3{y 2}
	CIRCLES_ROW4{y 3}
	CIRCLES_ROW5{y 4}
	CIRCLES_ROW6{y 5}
	CIRCLES_ROW7{y 6}
	CIRCLES_ROW8{y 7}
	CIRCLES_ROW9{y 8}
	CIRCLES_ROW10{y 9}
}

rule CIRCLES_ROW1{
	10* {x 1} CIRCLE{}
}
rule CIRCLES_ROW2{
	10* {x 1} CIRCLE{s 0.9}
}
rule CIRCLES_ROW3{
	10* {x 1} CIRCLE{s 0.8}
}
rule CIRCLES_ROW4{
	10* {x 1} CIRCLE{s 0.7}
}
rule CIRCLES_ROW5{
	10* {x 1} CIRCLE{s 0.6}
}
rule CIRCLES_ROW6{
	10* {x 1} CIRCLE{s 0.5}
}
rule CIRCLES_ROW7{
	10* {x 1} CIRCLE{s 0.4}
}
rule CIRCLES_ROW8{
	10* {x 1} CIRCLE{s 0.3}
}
rule CIRCLES_ROW9{
	10* {x 1} CIRCLE{s 0.2}
}
rule CIRCLES_ROW10{
	10* {x 1} CIRCLE{s 0.1}
}


But I found impossible to draw a shapes with different sizes in constant distances recursively. I think, that

Code: Select all

CIRCLE_COL{
	y 1
	x 2
	s 0.5
	}
should say "draw an CIRCLE_COL where a y-axis to current y-axis is 1:1, x-axis to current is 1:2 and shape size to current size is 2:1". Or there should be another way to tell that to renderer. What do you think? Are there any chances for implementation? :?

Image

User avatar
MtnViewJohn
Site Admin
Posts: 875
Joined: Fri May 06, 2005 2:26 pm
Location: Mountain View, California
Contact:

Post by MtnViewJohn »

The primitive shapes are always unit circles, squares, and triangles. You change there size by scaling the coordinate space that they are drawn in. There is no way to do what you want right now. The rule parameter feature that I have mentioned before would do this pretty easily.

Post Reply