「Glossy Button 2」は、光沢のあるボタンを生成するGIMPプラグイン。
このプラグインを使うには、GIMP用Pythonモジュールが必要である。
私のPC環境においては、GIMPの言語の設定を英語に変更し、再起動する必要があった。
インストール
配布ページ:GIMP Plugin – Glossy Button 2
「glossy_btn_02.zip」をダウンロードし、解凍。
解凍して出てきた「b&p_glossy_btn_02_v1.2.py」ファイルを、plug-ins フォルダに入れる。
plug-insフォルダは、Windowsの場合、「C:\Users\ユーザー名\.gimp-2.8\plug-ins」である。
GIMPを再起動する。
「 Create ≫ Web Page Themes ≫ www.bytes-and-pixels.com 」内に、「 Glossy button 02 」が追加されていれば成功。
「Glossy Button 2」の使い方
![File-Create-WebPageThemes-wwwBytesAndPixelsCom-GlossyButton02](http://alphasis.info/wp-content/uploads/2014/11/File-Create-WebPageThemes-wwwBytesAndPixelsCom-GlossyButton02-300x134.png)
「 Create ≫ Web Page Themes ≫ www.bytes-and-pixels.com 」内の、「 Glossy button 02 」をクリックし、「python-fu-Glossy_Button_02」ダイアログを呼び出す。
「python-fu-Glossy_Button_01」ダイアログ
![File-Create-WebPageThemes-wwwBytesAndPixelsCom-GlossyButton02-dialog](http://alphasis.info/wp-content/uploads/2014/11/File-Create-WebPageThemes-wwwBytesAndPixelsCom-GlossyButton02-dialog-300x563.png)
- Button Width
ボタンの幅。
- Button Height
ボタンの高さ。
- Corner Radius
角の丸みの半径を指定。
「0」を指定すると、丸めない。
- Border Width
ボーダー(枠線)の幅。
- Color
ボタンの色を指定。
- Add Text
ボタンに、テキストを追加するか、しないかを選択。
- Text Size(px)
テキストのサイズを指定。
- Text
ボタン上に描くテキストを入力する。
- Font
ボタン上に描くテキストのフォントを指定。
- Text Color
テキストの色を指定。
- Flatten Image
テキストや影や反射などのレイヤーを結合するか、しないかを選択。
「Yes」を選択すると、1つのレイヤーに結合する。
「No」を選択すると、テキストや影や反射などを個別のレイヤーに出力する。
- Generate Button States
マウスオーバー時と、クリック時のボタンを生成するかしないかを選択。
「Yes」を選択すると、マウスオーバー時と、クリック時のボタンも、別画像に生成する。
- Autocrop Result
ボタンを自動切り抜きするかどうか。
「Yes」を選択すると、自動切り抜きする。
![File-Create-WebPageThemes-wwwBytesAndPixelsCom-GlossyButton02-ex--layer](http://alphasis.info/wp-content/uploads/2014/11/File-Create-WebPageThemes-wwwBytesAndPixelsCom-GlossyButton02-ex-layer.png)
「python-fu-Glossy_Button_01」ダイアログの「Flatten Image」を「しない」で適用すると、テキストや枠線などを個別のレイヤーに出力する。
「Glossy Button 2」による生成例
![File-Create-WebPageThemes-wwwBytesAndPixelsCom-GlossyButton02-ex--default](http://alphasis.info/wp-content/uploads/2014/11/File-Create-WebPageThemes-wwwBytesAndPixelsCom-GlossyButton02-ex-default.png)
初期設定値で適用。
![File-Create-WebPageThemes-wwwBytesAndPixelsCom-GlossyButton02-ex--buttonWidth-200](http://alphasis.info/wp-content/uploads/2014/11/File-Create-WebPageThemes-wwwBytesAndPixelsCom-GlossyButton02-ex-buttonWidth-200.png)
- Button Width: 200
![File-Create-WebPageThemes-wwwBytesAndPixelsCom-GlossyButton02-ex--buttonWidth-100](http://alphasis.info/wp-content/uploads/2014/11/File-Create-WebPageThemes-wwwBytesAndPixelsCom-GlossyButton02-ex-buttonWidth-100.png)
- Button Width: 100
![File-Create-WebPageThemes-wwwBytesAndPixelsCom-GlossyButton02-ex--buttonHeight-100](http://alphasis.info/wp-content/uploads/2014/11/File-Create-WebPageThemes-wwwBytesAndPixelsCom-GlossyButton02-ex-buttonHeight-100.png)
- Button Height: 100
![File-Create-WebPageThemes-wwwBytesAndPixelsCom-GlossyButton02-ex--buttonHeight-25](http://alphasis.info/wp-content/uploads/2014/11/File-Create-WebPageThemes-wwwBytesAndPixelsCom-GlossyButton02-ex-buttonHeight-25.png)
- Button Height: 25
![File-Create-WebPageThemes-wwwBytesAndPixelsCom-GlossyButton02-ex--cornerRadius-0](http://alphasis.info/wp-content/uploads/2014/11/File-Create-WebPageThemes-wwwBytesAndPixelsCom-GlossyButton02-ex-cornerRadius-0.png)
- Corner Radius: 0
![File-Create-WebPageThemes-wwwBytesAndPixelsCom-GlossyButton02-ex--cornerRadius-24](http://alphasis.info/wp-content/uploads/2014/11/File-Create-WebPageThemes-wwwBytesAndPixelsCom-GlossyButton02-ex-cornerRadius-24.png)
- Corner Radius: 24
![File-Create-WebPageThemes-wwwBytesAndPixelsCom-GlossyButton02-ex--borderWidth-0](http://alphasis.info/wp-content/uploads/2014/11/File-Create-WebPageThemes-wwwBytesAndPixelsCom-GlossyButton02-ex-borderWidth-0.png)
- Border Width: 0
![File-Create-WebPageThemes-wwwBytesAndPixelsCom-GlossyButton02-ex--borderWidth-1](http://alphasis.info/wp-content/uploads/2014/11/File-Create-WebPageThemes-wwwBytesAndPixelsCom-GlossyButton02-ex-borderWidth-1.png)
- Border Width: 1
![File-Create-WebPageThemes-wwwBytesAndPixelsCom-GlossyButton02-ex--borderWidth-4](http://alphasis.info/wp-content/uploads/2014/11/File-Create-WebPageThemes-wwwBytesAndPixelsCom-GlossyButton02-ex-borderWidth-4.png)
- Border Width: 4
![File-Create-WebPageThemes-wwwBytesAndPixelsCom-GlossyButton02-ex--color-red](http://alphasis.info/wp-content/uploads/2014/11/File-Create-WebPageThemes-wwwBytesAndPixelsCom-GlossyButton02-ex-color-red.png)
- Color: 赤
![File-Create-WebPageThemes-wwwBytesAndPixelsCom-GlossyButton02-ex--AddText-No](http://alphasis.info/wp-content/uploads/2014/11/File-Create-WebPageThemes-wwwBytesAndPixelsCom-GlossyButton02-ex-AddText-No.png)
- Add Text: No
![File-Create-WebPageThemes-wwwBytesAndPixelsCom-GlossyButton02-ex--textSize-10](http://alphasis.info/wp-content/uploads/2014/11/File-Create-WebPageThemes-wwwBytesAndPixelsCom-GlossyButton02-ex-textSize-10.png)
- Text Size: 10
![File-Create-WebPageThemes-wwwBytesAndPixelsCom-GlossyButton02-ex--Font-ElephantItalic](http://alphasis.info/wp-content/uploads/2014/11/File-Create-WebPageThemes-wwwBytesAndPixelsCom-GlossyButton02-ex-Font-ElephantItalic.png)
- Font: ElephantItalic
![File-Create-WebPageThemes-wwwBytesAndPixelsCom-GlossyButton02-ex--textColor-red](http://alphasis.info/wp-content/uploads/2014/11/File-Create-WebPageThemes-wwwBytesAndPixelsCom-GlossyButton02-ex-textColor-red.png)
- Text Color: 赤
![File-Create-WebPageThemes-wwwBytesAndPixelsCom-GlossyButton02-ex--GenerateButtonStates-Yes-2](http://alphasis.info/wp-content/uploads/2014/11/File-Create-WebPageThemes-wwwBytesAndPixelsCom-GlossyButton02-ex-GenerateButtonStates-Yes-2.png)
「Generate Button States」を、「する」に指定し生成した時の、マウスオーバー時用のボタン画像。
![File-Create-WebPageThemes-wwwBytesAndPixelsCom-GlossyButton02-ex--GenerateButtonStates-Yes-3](http://alphasis.info/wp-content/uploads/2014/11/File-Create-WebPageThemes-wwwBytesAndPixelsCom-GlossyButton02-ex-GenerateButtonStates-Yes-3.png)
「Generate Button States」を、「する」に指定し生成した時の、クリック時用のボタン画像。
![File-Create-WebPageThemes-wwwBytesAndPixelsCom-GlossyButton02-ex--AutocropResult-Yes](http://alphasis.info/wp-content/uploads/2014/11/File-Create-WebPageThemes-wwwBytesAndPixelsCom-GlossyButton02-ex-AutocropResult-Yes.png)
- Autocrop Result: Yes