1274 auto size = Director::getInstance()->getWinSize();
1276 auto bg = LayerColor::create(Color4B(200,191,231,255));
1279 TTFConfig ttfConfig(
"fonts/arial.ttf", 40, GlyphCollection::DYNAMIC,
nullptr,
true);
1281 auto label1 = Label::createWithTTF(ttfConfig,
"Glow", TextHAlignment::CENTER, size.width);
1282 label1->setPosition( Vec2(size.width/2, size.height*0.7) );
1283 label1->setTextColor( Color4B::GREEN );
1284 label1->enableGlow(Color4B::YELLOW);
1287 ttfConfig.outlineSize = 1;
1288 auto label2 = Label::createWithTTF(ttfConfig,
"Outline", TextHAlignment::CENTER, size.width);
1289 label2->setPosition( Vec2(size.width/2, size.height*0.6) );
1290 label2->setTextColor( Color4B::RED );
1291 label2->enableOutline(Color4B::BLUE);
1294 ttfConfig.outlineSize = 2;
1295 auto label3 = Label::createWithTTF(ttfConfig,
"Outline", TextHAlignment::CENTER, size.width);
1296 label3->setPosition( Vec2(size.width/2, size.height*0.48) );
1297 label3->setTextColor( Color4B::RED );
1298 label3->enableOutline(Color4B::BLUE);
1301 ttfConfig.outlineSize = 3;
1302 auto label4 = Label::createWithTTF(ttfConfig,
"Outline", TextHAlignment::CENTER, size.width);
1303 label4->setPosition( Vec2(size.width/2, size.height*0.36) );
1304 label4->setTextColor( Color4B::RED );
1305 label4->enableOutline(Color4B::BLUE);