Jump to content

Nesting Shapes?


driiper
 Share

Recommended Posts

Even if nested you will be calculating positions relative to their parent. The answer is "yes", pixi.js is a scene graph so most objects can have rendered children.

 

When you use the word "Shapes" it is a bit ambiguous what you want to do. Do you want to have each shape be a sprite and lay them out? Do you want to draw each shape with a Graphics object and nest those? Do you want to draw all shapes with a single Graphics object? Do you want to draw all the shapes to canvas and use that as a texture for a single sprite? There are tons of ways to accomplish the drawing you linked.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...