Hi!, I'm spanish and this is my first work. Try with differents seeds (p.e: BDD, BDE and BDM has good results)
Modificate it if you want
I hope that you enjoy it
startshape QUIMICA
// ------------------------------
rule QUIMICA
{
puntoGordo {}
linea { x 2 }
}
// LINEA ----------
rule linea 0.05
{
puntoFino1 { }
linea { x 1 }
}
rule linea 0.05
{
puntoFino2 { }
linea { x 1 }
}
rule linea 0.008
{
// dividimos la rama
division { }
}
rule linea 0.0001
{
// final
puntoGordo { x 1 }
}
// DIVISION ----------
rule division .5
{
cuadrado { }
linea { x .5 y 1 r 55 }
linea { x .5 y -1 r -55 }
}
rule division .5
{
// final
puntoGordo { x 1 }
}
// PUNTOS ----------
rule puntoFino2 { CIRCLE {s .25} }
rule puntoFino1 { CIRCLE {s .5} }
rule puntoGordo
{
CIRCLE {s 2}
CIRCLE {s 1.8 b 1}
}
// CUADRADO ----------
rule cuadrado
{
SQUARE {s 1}
SQUARE {s .8 b 1 }
}
This is cool -- what are you representing with this? Are the dots supposed to be bonding forces? It has it's own value anyway, but by your title, it seemed like you had something in mind...
I just started using Context Free Art yesterday. Looking through the forums I saw this and found it interesting. Loaded into the program and played around with it and made a few modifications to it.
/*
This is a modification of "QUIMICA" by LaT3x.
Color has been added.
The shape at the division of the line has been
changed to a solid isosceles triangle, but the
name "quadrado" has been kept.
The start and end points have been made solid cicles.
The line points have been made to increase in size
and to change in color. Only "puntoFino1" has been
used, and the rule linea with "puntoFino2" has been
commented out.
There are also a few other minor changes to weights
of rules and other things.
Don King
8 - 10 -07
*/
startshape QUIMICA
// ------------------------------
rule QUIMICA
{
puntoGordo { hue 200 sat 1 b 1 alpha -0.5 }
linea { x 2 }
}
// LINEA ----------
rule linea 0.05
{
puntoFino1 { }
linea { x 1 s 1.1 hue 10 }
}
/*
rule linea 0.05
{
puntoFino2 { }
linea { x 1 }
}
*/
rule linea 0.008
{
// dividimos la rama
division { }
}
rule linea 0.0001
{
// final
puntoGordo { hue 0 sat 1 b 1 alpha -0.5 x 1 }
}
// DIVISION ----------
rule division .5
{
cuadrado [ hue 0 sat 1 b 1 alpha 1 r -90 x 0 s .6]
linea { x .5 y 1 r 55 }
linea { x .5 y -1 r -55 }
}
rule division .4
{
// final
puntoGordo { hue 0 sat 1 b 1 alpha -0.5 x 1 }
}
// PUNTOS ----------
rule puntoFino2 { CIRCLE { hue 100 sat 1 b 1 s .25} }
rule puntoFino1 { CIRCLE { hue 100 sat 1 b 1 s .5} }
rule puntoGordo
{
CIRCLE {s 2}
//CIRCLE {s 1.5 b -0.5}
}
// CUADRADO ----------
/*
rule cuadrado
{
SQUARE {s 1}
SQUARE {s .8 b -1 }
}
*/
rule cuadrado
// This is an isosceles triangle with
// interior angles of 70, 55 and 55 degrees to
// match the 55 degree branching angles in
// the rule "linea."
{
TRIANGLE [ size 2 x -0.05 y 0 skew 5 0 ]
TRIANGLE [ size 2 x 0.05 y 0 skew -5 0]
}
I made the isosceles triangle shape by using two skewed TRIANGLEs and adjusted the shift required to bring them together by eye. But if I try to have them partially transparent, they show up as two overlapping triangles.
I'd appreciate suggestions on a better way to make an isosceles triangle, and other shapes in general.
I've figured out the way to make an isoceles triangle by modifying just one primitive shape. All you have to do is to strech the unit equilateral triangle along its y axis. The stretch needed for an isoceles triangle with an angle of theta is: tan(60/2)/tan(theta/2).
For the 70 deg angled isoceles triangle that gives: