feathersui / feathersui-starling-sdk

SDK for building Feathers UI (AS3/Starling) applications with MXML
https://feathersui.com/learn/as3-starling/sdk/
Apache License 2.0
42 stars 13 forks source link

Graphics primitives similar to spark.primitives.* #42

Open joshtynjala opened 7 years ago

joshtynjala commented 7 years ago

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

devlfm commented 7 years ago

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

devlfm commented 7 years ago

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 commented 7 years ago

100% Agree! This would be a welcome addition!

teotigraphix commented 7 years ago

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

teotigraphix commented 7 years ago

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

joshtynjala commented 7 years ago

@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 commented 7 years ago

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