I’m brand new to CL (I just learned about it this week). I’m trying to create an action button that adds points to the line y=2x when pressed. I’ve been able to get it to plot random points on that line using the following code:
r = randomGenerator(btn1.pressCount)
And my graph has the following point:
However, every time I press the action button, the old point goes away and a new point appears. I would like the old point to stay and a new point appear. In other words, as I press the button more, the line starts to fill out.
Is this possible?