Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

Filling in circles

Avatar

Level 2

Livecycle ES2.

Hello, I have found the code to fill in a rectangle and that works, but I seem to be struggling with filling in circles.

centre_rectangle.value.rectangle.fill.color.value = "255,255,0";

I have created a circle and named it "centre_circle", but it would appear that replacing the "..rectangle.fill..." with "...circle.fill..." doesn't seem to work.

centre_circle.value.circle.fill.color.value = "255,255,0";

Nor does anything else I've tried:

centre_circle.fill.color.value = "255,255,0";

centre_circle.rectangle.fill.color.value = "255,255,0"

centre_circle.value.rectangle.fill.color.value = "255,255,0"

Is this a syntax error? Or can circles not be filled by JavaScript?

My customer actually wants triangles and hexagons, but assuming they are not an option..!

Any help would be very much appreciated.

Thanks

0 Replies