Constants coords, but unconstant size
Posted: Sun Aug 05, 2007 8:43 am
I wanted to create something similar to following:
But I found impossible to draw a shapes with different sizes in constant distances recursively. I think, that
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?
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
}