I am trying to create a heart shape using an expression like this:
- Start AE
- New Composition + Ok
- Layer, new shape layer
- Expand to get the contents node and click add Path
- Path -> Edit expression
Then I paste this expression:
var path = thisProperty;
var allPoints = new Array();
for (var a = 0; a < 360; a++) {
var theta = degreesToRadians(a);
x0 = Math.cos(theta);
x = 300 * x0;
y = 0.75 * 300 * (Math.sin(theta) - Math.sqrt(Math.abs(x0)));
allPoints.push([x,y]);
}
path.createPath(allPoints, [], [], true);
and I see this on the screen
But this will only be visible in the designer. If the object is deselected, it will become invisible.
There is no way to control the stroke width, color or fill.
How can I control those properties?
I am trying to add a stroke alongside the path, but they will not "connect".