• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 20. CONTROLLING VECTOR GRAPHICS > BUILDING VECTORS WITH LINGO

BUILDING VECTORS WITH LINGO

By setting the vertexList property of a vector member, you can create all sorts of interesting things with Lingo. For instance, here is a short behavior that creates a new, simple line and replaces the sprite's vector shape member with this line:

on beginSprite me
  sprite(me.spriteNum).member.vertexList = \
    [[#vertex: point(0,0)], [#vertex: point(200,100)]]
end


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint