Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Graphics primitives similar to spark.primitives.* #42

Open
joshtynjala opened this issue Dec 14, 2016 · 7 comments
Open

Graphics primitives similar to spark.primitives.* #42

joshtynjala opened this issue Dec 14, 2016 · 7 comments

Comments

@joshtynjala
Copy link
Member

http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/spark/primitives/package-detail.html

@devlfm
Copy link

devlfm commented Dec 15, 2016

OMG! can't wait for this! ⭐️ ⭐️ ⭐️ ⭐️ ⭐️

@devlfm
Copy link

devlfm commented Dec 15, 2016

At this time I'm creating LayoutGroups with backgroundSkin="{new Quad(1,1,0x000000)}", and would be great at least the Quad have some type of integration on mxml and layoutData:

<f:Rect color="#fefefe">
    <f:layoutData>
        <f:AnchorLayoutData left="0" right="0" top="0" bottom="0"/>
    </f:layoutData>
</f:Rect>

I'm also doing lines with Quads... bah..

Worrie: Making backgroundSkin="{}" (bindable) does really bind? or is used internally only once? or should I on initialize() set the backgroundSkin?

@izzmeifter
Copy link

100% Agree! This would be a welcome addition!

@teotigraphix
Copy link

Yeah, +1 I do a lot of dynamic stuff and this would help out a lot.

@teotigraphix
Copy link

@joshtynjala Are you thinking about implementing Path as well? Or just solids?

@joshtynjala
Copy link
Member Author

@teotigraphix I haven't put a ton of thought into it. Someone in the forums mentioned that it would be a nice feature, so I added it to the list. I know that starling.display.Canvas has a Polygon class, but certain types of paths don't work super well. I'm sure that if I implemented something like spark.primitives.Path, it would be somewhat limited.

Also, starling.display.Canvas doesn't support strokes yet, so this would only work for fills until Daniel implemented strokes.

@devlfm
Copy link

devlfm commented Mar 31, 2017

I just saw this: https://github.com/gree/tesspathy

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants