Cocos2d-x 3.0 beta New Label New features-stroke, shadow, glow

Source: Internet
Author: User

 

 

Today, let's take a look at several new features of Label in beta 3.0. First, compare the two items as follows:

No special effects:

 

Add special effects

We can see that

The first HelloWorld has a golden glow on the outside.

The second HelloWorld has a blue edge.

The third HelloWolrd has a black shadow on the outside.

This is a new feature of the 3.0 beta Label. Add glow, outline, and shadow.

Next, let's take a look at how to achieve the above results and create a new project.

(For how to create a project for version 3.0 beta, see the http://blog.csdn.net/u012945598/article/details/18256893)

The author adds code directly at the end of the HelloWorld init function:

Run the project to see the above results.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.