精品导航

Drawing

Using GIMP

Now, let's open up GIMP and start drawing!

The main screen in GIMP



Now, this is how the main screen looks in GIMP. Just like in most advanced editors, there are a lot of options, most of which we are not going to use, so don't worry if you're a complete beginner at this.
Sprites that we're going to draw are coming in two sizes: 24x26 pixels and 24x24 pixels. The bigger ones are dimensions of the ones in the main menu, while the smaller ones are located in various apps throughout the phone. There are many more different sprite sizes in Ringo firmware, but these are most common, so we're going to draw those.

Starting a new drawing

Before starting a new project, go to Edit -> Preferences. Since we're going to draw pixel-perfect images, we're going to set up a grid. This step is not necessary but it will help you a lot with precision drawing.

Setting grid spacing



Select 'Default grid' and set both horizontal and vertical spacing to 1,00 pixels.
Then go to 'Appearance' and check both 'Show grid' boxes.

Setting default window appearance



Click 'OK' and start a new drawing by going to File -> New...

The only thing we need to change here is setting our desired size. For this first example, set the size to 24x26 pixels.
Click 'OK' and start the drawing.

Creating a new drawing
Empty canvas with the grid on

Drawing

Now there are two tools that we are going to use the most. You can find all of the common tools in the upper left corner, just below the toolbar.

Bucket fill tool and pencil tool are located in the middle of the second row.
Bucket tool will help us fill bigger parts of the canvas with one color, while the pencil will color only one pixel at the time.
Color picker is located right below the tools and that's where you'll be able to pick your colors. Pretty simple, pretty easy.

Color picker



These are pretty much all of the tools you are going to use - so go and make a cool picture!

What we've made in this little tutorial is a replacement icon for the Snake app.
It is not a masterpiece by any means, but it will serve its purpose.

New Snake app image

Exporting the image to Ringo

Now that our picture is drawn, it's time to export it.

For this step, it's time to insert the SD card from your Ringo into your computer.
Before saving this icon, it would be good to locate your Snake app folder on the card and rename the 'icon.bmp' to 'icon2.bmp'.
Now go to File -> Export and locate your SD card in the explorer.

Go to the 'Snake' folder and save this file as 'icon.bmp'.
It's also important to set the image to 'Windows BMP image' so that it has a .bmp extension.

Exporting your new image



When you finish the export, eject the SD card from your computer and put it back in your phone. 

Restart the phone and that's it - your Snake app just got a new icon!
In the previous chapter, there was a snippet of code where you could see how are these app icons being drawn.
Here it is once again.

random image



We see that we've drawn the bitmap called 'icon.bmp' that is located in the app folder. That process is being repeated for every app that is located on the SD card, which is for every game. Also, these icons are actually being shown in a doubled resolution. 

Index 2 at the end of the 182nd row means that the size of the icon is doubled. That's why the icon is taking up 48x52 pixels on your Ringo screen.
Now, let's see how to convert these images to code.

友情链接:第一福利 | 色婷婷 | 蘑菇视频ios | 超碰视频 | 六月婷婷 | 青草草 | 五月丁香 | 老司机视频 | mogus.cc | 久久爱 | 番号网 | 宅男影院 | btupic.com | mogu | 蘑菇网页版入口 | 看片神器 | dna0126.com | 精品免费 | 蘑菇传媒 | 综合影院 | 蘑菇视频入口 | 永久地址 | 红桃视频 | 色妞 | gzdksw.com | 青娱 | 琳琅导航 | 秋霞网 | 天天综合 | 福利精品 | 青青伊人 | 色啪 | zpzb2008.com | 资源导航 | 玖玖爱 | 性知音 | mogu视频 | dk99999.com | 蓝色导航 | 日本高清 | 蘑菇视频网站 | p站视频 | 无名网 | 秋霞影院 | 在线亚洲 | 玖玖资源站 | lf397.com | 青草青青 | zhuoyemall.com | 福利盒子 | 汤姆影院 | 最新av | 蘑菇tv网页版 | jxty00.com | tsxhyq.com | tissu-premier.com | 在线午夜 | sanzhucare-zhpg.com | 小草社区 | 蘑菇网 | 蘑菇影视 | 伊人色 | 蘑菇視頻 | 蘑菇app | 久久久久久 | 樱花视频 | 龙物视频 | 协和影院 | mogutv | 摩天轮社区 | 久久香蕉 | 亚洲精品 | 老王影院 | 蘑菇传媒在线观看 | 亚洲网 | 迷妹网 | 午夜在线观看 | 4008108885.com | 五福影院 | woqidz.com | 小蓝视频 | 永久网站 | fltou.com | 扒哥黑料 | 屁屁影院 | 欧美午夜 | 四虎影视 | 导航大全 | rencai98.com | 蘑菇短视频入口 | bt搜索 | 琵琶妞 | 久久视频 | 酒色世界 | 蜜芽视频 | 草莓视 | 天堂在线 | 蘑菇在线观看网页版 | hebeijiaoyuwang.com