Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

'point' function

edited January 2013 in Bugs Posts: 10

The 'point' function works, and is syntax highlighted like a regular function, but has no documentation.

Comments

  • dave1707dave1707 Mod
    Posts: 7,657

    Looks like point(x,y) is the same as ellipse(x,y,4), but you don't need to specify the size. Uses fill() to set the color of the point

  • Posts: 489

    point(x, y) and pointSize(diameter) are explained in the Codea wiki here and here.

  • SimeonSimeon Admin Mod
    Posts: 4,995

    Do you guys think these functions would be useful? I was actually thinking of deprecating them (they were never really "in" Codea, as I was always unsure about them).

  • Posts: 489

    Unless you hear that a body of users have actually used these functions in their code, my vote would be simply to remove them from the next version of the Codea API.

    The only important difference from ellipse() is that pushStyle() and popStyle() can be used to preserve the diameter that has been set with pointSize(). I would be surprised, however, if many (or any) users have been using the style stack with point() diameters.

Sign In or Register to comment.