Rigid Polygon Predefined Color

MatteLIST shared this question 2 years ago
Needs Answer

Hello,

I am trying to make a Cuisenaira applet, where i click a circle (f.x. red) and then a red rod with length = 2 appears. All is good, except the color - is there a way to use the rigid polygon command (or combination of others) to predefine that the color and fill of the new object, when I don't know the name of the new object? At the moment I just get default fill and color on the new object.

Comments (3)

photo
1

Hi

Is this file help..?

( Preferences of circles > scripting)

photo
1

Thank you! But I need it to create a new object with specific color when the little circle is clicked, not just change color of existing object.

photo
1

2 possibilities :

1) first you create your object and you hide it

Then, clicking on circle, your new object appears (with SetVisibleInView command in scripting by clic of circles)

2) create your object in scripting by clic of circle (see file)

photo
© 2022 International GeoGebra Institute