官术网_书友最值得收藏!

Time for action – modifying our application

Before we dive into more complex examples, let's alter some minor things in your program.

  1. Let's alter the second line of main.lua to display as follows:
    textObject = display.newText( "Hello World!", 50, 40, native.systemFont, 36 )
    textObject:setTextColor( 124,252,0 )
    
  2. Save your file and go back to the CoronaSimulator. The simulator will detect a change from your file and automatically re-launch with the new changes. If the simulator doesn't re-launch automatically upon saving your file, press Command + R (Mac)/Ctrl + R (Windows).
    Time for action – modifying our application

    Note

    As you continue learning more Corona functions, you'll notice that some of the text values will be optional. In this case, we need to use all five values.

主站蜘蛛池模板: 昌平区| 吴旗县| 宁陕县| 台北县| 仲巴县| 梁平县| 荆门市| 新巴尔虎右旗| 禹州市| 辛集市| 灵宝市| 大埔区| 安义县| 繁峙县| 唐山市| 大安市| 栾川县| 四川省| 砚山县| 和林格尔县| 广南县| 惠安县| 丰城市| 确山县| 景洪市| 简阳市| 青铜峡市| 绩溪县| 方城县| 古田县| 霍邱县| 九江市| 定州市| 昔阳县| 开原市| 屏东县| 赫章县| 雅江县| 铜梁县| 彭州市| 岳西县|