The Interactive Geometry Software Cinderella

Forum: Cinderella Support (E)

Forums->Cinderella Support (E)->Creating Points in CindyScript->Aw: Creating Points in CindyScript

Aw: Creating Points in CindyScript


Hi Mike,

yes, indeed points created by Cinderella and points drawn in CindyScript are different things. If you want to draw a point in a different color or size, try the modifiers to the draw command, for example:

A=[[2,3];
draw(A,size->15,color->[[0.5,1,0.2])


You can also create "real" points using the createpoint()-function, as explained in the manual at Accessing geometric elements.

The main difference between these two kinds of points are that the "draw"-command points are not active, that is, you cannot manipulate them with the mouse, unless you write code for that. In your example above it looks like there is indeed a point called "A", which is caused by the fact that you introduce a variable for the coordinates. But what would you call the points in the following piece of code that draws a 10 by 10 array of points?

repeat(10,x,
  repeat(10,y,
    draw([[x,y])
  )
)


Hope that helps,
Ulli


 
on: Wed 21 of Dec, 2011 [07:47 UTC] reads: 8740

Show posts:
 
Language