hyperandroid / CAAT

Canvas Advanced Animation Toolkit
hyperandroid.github.com/CAAT
MIT License
727 stars 117 forks source link

Label example #102

Closed CloudyWL closed 11 years ago

CloudyWL commented 11 years ago

I am looking at Label Actor. Is there an example anywhere?

For example, I am trying to figure out how to set the font .

Thanks in advance.

hyperandroid commented 11 years ago

Oh yes. Documentation is my biggest flaw. I accept volunteers to build it BTW ^^ Find an example here:

https://github.com/hyperandroid/CAAT/blob/master/documentation/demos/demo29/layout2.html#L248

you can define as much as needed styles, which can be nested and will act hierarchycally. "default" style will be applied by default (lol).

you can also embed images in the test. Will modify the sample to show it.

best,

2012/11/28 CloudyWL notifications@github.com

I am looking at Label Actor. Is there an example anywhere?

For example, I am trying to figure out how to set the font .

Thanks in advance.

— Reply to this email directly or view it on GitHubhttps://github.com/hyperandroid/CAAT/issues/102.

hyperandroid commented 11 years ago

The calls to setClip() and cacheAsBitmap() are optional. cacheAsBitmap is recommended though to speed things up. Stroking text is painfully slow.

2012/11/28 hyperandroid hyperandroid@gmail.com

Oh yes. Documentation is my biggest flaw. I accept volunteers to build it BTW ^^ Find an example here:

https://github.com/hyperandroid/CAAT/blob/master/documentation/demos/demo29/layout2.html#L248

you can define as much as needed styles, which can be nested and will act hierarchycally. "default" style will be applied by default (lol).

you can also embed images in the test. Will modify the sample to show it.

best,

  • ibon

2012/11/28 CloudyWL notifications@github.com

I am looking at Label Actor. Is there an example anywhere?

For example, I am trying to figure out how to set the font .

Thanks in advance.

— Reply to this email directly or view it on GitHubhttps://github.com/hyperandroid/CAAT/issues/102.

CloudyWL commented 11 years ago

Thanks, exactly what I was looking for.