From b60b2ff819b75a24dbff5ffba4b5697612aa9860 Mon Sep 17 00:00:00 2001
From: Bill Kendrick
+ Copyright 2002-2020 by various contributors; see
+ AUTHORS.txt
+ June 14, 2002 - August 15, 2020
+ Copyright 2002-2014 by Bill Kendrick and others bill@newbreedsoftware.com June 14, 2002 -
+ See English version. Tux Paint は、3歳以上の小さな子供向けにデザインされたフリーのお絵かきソフトです。シンプルで使いやすい操作方法と楽しい効果音を備え、マスコットキャラクターが子供たちの案内役を務めます。空っぽのキャンバスと様々な描画ツールが、子供たちの創造力をかき立てます。 Tux Paint は、オープンソースのプロジェクトで、GNUの一般公衆利用許諾(GPL)基づき公開されているフリーソフトウェアです。このソフトウェアは無料で、プログラムのソースコードが利用可能です。(これにより、誰でも、機能を追加したり、不具合を修正したり、プログラムの一部を自分のGPLソフトウェアに使用することができます。) ライセンスの全文は、COPYING.txtをお読みください。 KDE あるいは GNOME のメニューの「グラフィックス」以下に、起動アイコンが設定されているはずです。 その他、シェルプロンプトで次のコマンドを実行する方法があります。
+ Tux Paint は、3歳以上の小さな子供向けにデザインされたフリーのお絵かきソフトです。シンプルで使いやすい操作方法と楽しい効果音を備え、マスコットキャラクターが子供たちの案内役を務めます。空っぽのキャンバスと様々な描画ツールが、子供たちの創造力をかき立てます。
+ エラーが発生した場合は、端末にその内容が表示されます。
+ Tux Paint は、オープンソースのプロジェクトで、GNUの一般公衆利用許諾(GPL)基づき公開されているフリーソフトウェアです。このソフトウェアは無料で、プログラムのソースコードが利用可能です。(これにより、誰でも、機能を追加したり、不具合を修正したり、プログラムの一部を自分のGPLソフトウェアに使用することができます。)
+
+ ライセンスの全文は、GNU 一般公衆利用許諾契約書 をお読みください。
+ インストーラーを用いて Tux Paint をインストールする際、スタート・メニューやデスクトップにショートカットを作成するかどうかが選択できます。ショートカットを作成していれば、これらのアイコンから簡単に Tux Paint を起動できます。 ZIP ファイルをダウンロードして Tux Paint をインストールした場合や、インストーラーでショートカットを作成しなかった場合は、「Tux Paint」のフォルダにある" インストーラーを用いた場合、「Tux Paint」のフォルダは、通常、" ZIP ファイルを用いた場合、「Tux Paint」のフォルダは、任意の場所に配置できます。
- Tux Paint を起動すると、タイトル画面が表示されます。 プログラムの読み込みが完了すると、何かキーを押すかマウスのクリックにより次に進みます。(タイトル画面は、約30秒後に自動的に閉じます)
- ツールバーには、描画や編集を行うためのアイコンがあります。 中央部の最も広い領域が描画キャンバスです。ここが絵を描く部分になります! 注: 描画キャンバスのサイズは、Tux Paint のウィンドウサイズに応じて変わります。Tux Paint のウィンドウサイズは、Tux Paint 設定ツールを用いて変更できます。その他の方法については、オプションについてのドキュメントを参照してください。 セレクタに表示される内容は、使用しているツールに応じて変わります。例えば、「ふで」ツールでは、様々な種類の筆が表示され、「はんこ」ツールでは、はんこの画像が表示されます。 キャンバスの下側には、描画色を選択するためのカラーパレットがあります。 (注:カラーパレットの色は好みに応じて変更できます。変更方法については、オプションについてのドキュメントを参照してください。) 画面の一番下の部分では、Linux ペンギンの「Tux」が、様々なヒントや関連情報をご提供します。 右側のセレクタから筆の種類を、下のパレットから色を選んで、フリーハンドで描画します。 ボタンを押したままマウスを動かすと、描画できます。 描画中にはサウンドが流れます。筆の大きさが大きいほど、低い音になります。 「はんこ」ツールは、スタンプやステッカーを集めたようなものです。馬や木、月など、あらかじめ用意された様々な写真やイラストを絵に貼り付けることができます。 マウスのカーソル動きに応じて画像の輪郭が表示され、貼り付け位置と大きさがわかります。 スタンプは、動物、植物、宇宙、乗り物、人物といった多くのカテゴリに分類されています。セレクタの左右の矢印のボタンを使ってカテゴリを切り替えることができます。 スタンプには、色をつけることができるものがあります。その場合、カラーパレットが有効になり、スタンプを絵に貼り付ける前に色を選ぶことができます。 スタンプは、拡大・縮小ができます。また、多くのスタンプは、上下・左右に反転できます。セレクタの下部のボタンを用いてこれらの操作を行います。
- 個々のスタンプごとに効果音を設定することができます。画面下部の左側にあるボタンを押すと、効果音を再生することができます。 (注: " 様々な種類の筆と好きな色を使って直線を描くツールです。 直線を描き始める位置でマウスをクリックして、そのままマウスを動かすと、描かれる直線が、「ゴム紐」のような薄い色の線で表示されます。 マウスを放すと、バネのような効果音とともに線が描画されます。 簡単な図形を描きます。 まず、描きたい図形を、右側のセレクタから選択します。 マウスをクリックし、そのままマウスを動かして図形を広げます。このとき、楕円や長方形のように図形の縦横比を変えられる図形と、正方形や円のように縦横比を変えられない図形があります。 マウスを放すと、図形の形と大きさが決まります。 通常の動作では、上記の後、マウスを動かして図形を回転させ、最後に、もう一度マウスをクリックして、図形が完成します。 簡易図形モード(" まず、右側のセレクタからフォントを、下部のパレットから色を選択します。画面をクリックするとカーソルが表示され、文字を入力することができます。 [Enter]キー、または[Return]キーを押すと文字が描画され、カーソルが次の行に下がります。 [Enter] / [Return]キーの代わりに[Tab]キーを押すと、文字が描画された後、カーソルは、次の行ではなく、右側に移動します。このように、1行の中で、異なったフォント、字体、フォントサイズ、色などを混在させたい場合に便利な方法です。 文字の入力中に別の場所をクリックすると、入力内容を維持したまま、文字を貼り付ける位置をクリックした位置に移動させ、文字入力を続けることができます。 「もじ」ツールは、Tux Paint に以前からある、文字入力ツールです。このツールで入力した文字列は、絵と一体化するため、後から文字列の内容を編集したり、動かしたりすることはできません。一方、絵と一体化することで、上から塗りつぶしたり、「よごす」「そめる」「うきぼり」といった「まほう」ツールの効果で修正を加えることができます。 Tux Paint バージョン 0.9.22 で追加された「ラベル」ツールでは、文字は絵から「浮いて」おり、文字列の内容、位置、フォント、色などの情報は個別に記録されます。これにより、「ラベル」は後から移動や編集が可能です。 「ラベル」ツールは、Tux Paint 設定ツールや、" Tux Paint では、様々な言語の文字を入力することができます。たいていのラテン文字(A-Z, ñ, è など)は、直接入力できます。また、いくつかの言語では、入力モードを切り替えて、複数のキーの組み合わせを用いて文字を入力する必要があります。 Tux Paint が、個別の入力モードがサポートされている言語に設定されている場合、特定のキーを押下することで、入力モードを切り替えることができます。 個別の入力モードがサポートされている言語と、入力モード切替キーの一覧
-
+
-
+ 
+ バージョン 0.9.25
+
+ 子供向けのシンプルなお絵かきプログラム
+
-
+
+ http://www.tuxpaint.org/
+
-
-子供向けのシンプルなお絵かきソフト
+
+
-
+
-
+ 目次
+
+
-New Breed Software &
-Tux4Kids
+
+
+
+
+
+
-http://www.tuxpaint.org/
+
+ OUT OF DATE
-
+
-
+
-目次
-
-
-
+
-Tux Paint について
-
+
-
-
+ Tux Paintについて
+
- 'Tux Paint' って何?
-
-
-
- ライセンス:
-
-
-
- 目指していること:
-
-
-
-
-
-
-
-Tux Paint の使い方
-
-
-
Tux Paint の起動
-
-
-
- Linux または Unix のユーザー
-
+
+ 'Tux Paint' って何?
+
-
- $ tuxpaint
+
+ ライセンス:
+
-
+
+
- Windows のユーザー
-
-
-
-
-
-
- ![]()
- Tux Paint
- tuxpaint.exe" のアイコンをダブルクリックします。C:\Program Files\" に配置されます。(インストール時に、これを変更することもできます)
-
-
-
- Mac OS X のユーザー
-
- "Tux Paint" のアイコンをダブルクリックします。
-
-
-
- タイトル画面
-
-
-
- 
-
-
- メインの画面
-
- メインの画面は、次の各部に分けられます。
-
-
-
-
-
- 




-
-
- 使用可能なツール
-
-
描画ツール
-
-
-
+
-
-
-
- 
-
-
- 
-
-
- nostampcontrols" オプションが設定されると、スタンプの拡大・縮小、反転が無効になります。詳しくはオプションについてのドキュメントを参照してください。)
-
-
-
-
-
- 
-
-
-
+ 目指していること:
+
+
-
--simpleshapes" オプション)が設定されている場合、図形を回転させる手順は省略され、マウスを放した時点で図形が描画されます。
+ 
-
+
-
- 
-
--nolabel"オプションにより、無効にすることができます。
-
-
「まほう」ツールは、様々な特殊なツールを集めたものです。右側のセレクタで、「まほう」の効果を選択することができます。効果を適用する方法は、クリック+ドラッグ、単なるクリックなど、ツールごとに様々です。
- -クリック+ドラッグを使用するツールの場合、右側のセレクタの下部左側にある「描画」を表すボタンが有効になります。1クリックで画面全体に効果を及ぼすツールの場合、右側の「画面全体」を表すボタンが有効になります。
- -「magic-docs」フォルダ内のドキュメント「まほう」ツールの一覧もお読みください。
-このツールは「ふで」ツールに似ています。クリック(または、クリック+ドラッグ)をした部分が消されます。(消した部分は、白あるいはその他の色、また、背景画像など、絵によって異なる状態に戻ります。)
- -いくつもの大きさの正方形と円形の消しゴムがあります。
- -正方形の輪郭がマウスカーソルの位置に表示され、絵のどの部分が消されるかを示します。
- -消している間、「キュッキュッ」と擦って消す効果音が流れます。
- ----
- 「とりけし」
-- -
- - -+
+ Tux Paint の起動 +
-このツールをクリックすると、直前に行った操作が取り消されます。いくつもの操作をさかのぼって取り消すことができます。
- -注: キーボードで [Control]-[Z] を押しても取り消しできます。
- -
- -
-- 「やりなおし」
-- -
- - -- -
このツールをクリックすると、「とりけし」ボタンで取り消した操作を元に戻すことができます。
- -「とりけし」操作の後、描画を行っていなければ、取り消した全ての操作を元に戻せます。
- -注: キーボードで [Control]-[R] を押しても元に戻せます。
- -
- -
-- 「さいしょから」
-- -
- - -- -
「さいしょから」のボタンを押すと、新規に絵を描き始めることができます。ダイアログ画面が表示され、キャンバスの背景色や背景画像(後述)を選べます。
- -注: キーボードで [Control]-[N] を押しても、新規作成が行えます。
- - 背景画像 - --- -背景画像には、塗り絵のページのようなもの(白黒の線で描かれ、色を塗ることができる)や、前景と背景に挟まれた部分に絵を描ける3D画像のようなものがあります。
- -背景画像を用いて絵を描いて保存すると、新しい絵として保存され、元々の背景画像は上書きされないので、同じ背景画像を何度でも使うことができます。
-
- -
-- 「ひらく」
-- -
+- -
「ひらく」をクリックすると、保存されている全ての作品のリストが表示されます。リストが画面に収まりきらない場合は、上下の矢印のボタンでリストをスクロールできます。
- -
- -- -
まず、絵をクリックして選択します。
+++ Linux または Unix のユーザー +
---
+- -
+
+ KDE あるいは GNOME のメニューの「グラフィックス」以下に、起動アイコンが設定されているはずです。 +
-左下にある緑色の「ひらく」ボタンで、選択した作品を読み込みます。
++ その他、シェルプロンプトで次のコマンドを実行する方法があります。 +
-(または、開きたい作品をダブルクリックします)
++-$ tuxpaint+
- -- -
- -
右下にある茶色の「けす」(ゴミ箱) ボタンで、選択した作品を削除します。(本当に削除して良いか確認されます)
- -注: バージョン 0.9.22 以降では、削除した作品は、デスクトップのゴミ箱に移動します(Linuxのみ)
- -
- -- -
- -
左側の一番下にある青色の"スライドショー" のボタンを押すと、スライドショーモードになります。詳しくは "スライドショー" をごらん下さい。
- -
- -- -
- -
右下にある赤色の "もどる" ボタンを押すと、絵を描く画面に戻ります。
- -
-+ エラーが発生した場合は、端末にその内容が表示されます。 +
絵を開く時に、それまで描いていた絵が保存されていなければ、保存するかどうかを確認します。("セーブ" をご覧下さい。)
- -注: キーボードで [Control]-[O] を押しても「ひらく」ダイアログを表示できます。
- -
+
-
-+ Windows のユーザー +
-- 「セーブ」
-- -
++
+-+
-+ ++ +
+ Tux Paint +描画中の作品を保存します。
- -一度も保存していない作品の場合、作品のリストに新しく追加されます。(つまり、新しいファイルを作成します)
++ インストーラーを用いて Tux Paint をインストールする際、スタート・メニューやデスクトップにショートカットを作成するかどうかが選択できます。ショートカットを作成していれば、これらのアイコンから簡単に Tux Paint を起動できます。 +
-注: ファイル名の入力などを求めることはなく、カメラのシャッター音の効果音とともに、単に作品を保存します。
++ ZIP ファイルをダウンロードして Tux Paint をインストールした場合や、インストーラーでショートカットを作成しなかった場合は、「Tux Paint」のフォルダにある "
-tuxpaint.exe" のアイコンをダブルクリックします。 +一度保存した作品を「ひらく」コマンドから読み込んで修正した場合、以前の作品を上書きするか、新しく追加して保存するかを確認します。
++ インストーラーを用いた場合、「Tux Paint」のフォルダは、通常、"
-C:\Program Files\" に配置されます。(インストール時に、これを変更することもできます) ++
+ ZIP ファイルを用いた場合、「Tux Paint」のフォルダは、任意の場所に配置できます。 +
+
+(注: "
- -saveover" オプション、または "saveovernew" オプションが設定されている場合は、確認せずに上書きします。詳しくは オプションについてのドキュメントを参照してください。)注: キーボードで [Control]-[S] を押しても、保存操作が行えます。
- -
+
-
-+ macOS のユーザー +
++++ "Tux Paint" のアイコンをダブルクリックします。
+
+
このボタンを押して作品を印刷します!
- -多くのプラットフォームでは、[Alt] key (Mac では [Option] キー) を押しながら「いんさつ」ボタンを押すと、プリンターの設定画面が開きます。この機能は、フルスクリーンモードでは動作しない点に注意して下さい。
+++ ++ Tux Paint を起動すると、タイトル画面が表示されます。 +
+ ++
+ ++
+ プログラムの読み込みが完了すると、何かキーを押すかマウスのクリックにより次に進みます。(タイトル画面は、約30秒後に自動的に閉じます) +
+
+ メインの画面は、次の各部に分けられます。-
- 印刷の無効化
-- -
- - -Tux Paint の設定ファイルで "
-noprint=yes" と指定したり、コマンドラインで "--noprint" オプションを指定すれば、"noprint" オプションが設定され、印刷が無効になります。(詳しくは オプションについてのドキュメント を参照して下さい。)
-- 印刷の制限
-- -
Tux Paint の設定ファイルで "
+printdelay=秒数" と指定したり、コマンドラインで "--printdelay=秒数" を指定すれば、"printdelay" オプションが有効になり、印刷実行後 秒数 で指定した時間が経過するまで、次の印刷ができなくなります。- + 左側: ツールバー「どうぐ」 +
-例えば、"
+printdelay=60" とした場合、1分ごとに1度だけ印刷できます。- +
++ ツールバーには、描画や編集を行うためのアイコンがあります。 +
+ -(詳しくは オプションについてのドキュメント を参照して下さい。)
-+
++
(Linux 及び Unix のみ)
+Tux Paint は、PostScript 形式の印刷データを作成し、外部プログラムに渡して印刷を行います。標準の設定では、
++ 中央部の最も広い領域が描画キャンバスです。ここが絵を描く部分になります! +
-
- lpr
-
+
+
+
が外部プログラムとして使用されます。このコマンドは、設定ファイルの"printcommand" 変数に値を設定することで変更できます。
++
注: 描画キャンバスのサイズは、Tux Paint のウィンドウサイズに応じて変わります。Tux Paint のウィンドウサイズは、Tux Paint 設定ツールを用いて変更できます。その他の方法については、オプションについてのドキュメントを参照してください。
+ +フルスクリーンモードでなければ [Alt] キーを押しながら「いんさつ」ボタンを押すと、別のプログラムが起動されます。標準の設定では、KDE のグラフィカルな印刷ダイアログ
+
- kprinter
-
+ + セレクタに表示される内容は、使用しているツールに応じて変わります。例えば、「ふで」ツールでは、様々な種類の筆が表示され、「はんこ」ツールでは、はんこの画像が表示されます。 +
-が使用されます。このコマンドは、設定ファイルの "altprintcommand" 変数に値を設定することで変更できます。
+
+
+
印刷コマンドの変更方法の詳細については、オプションについてのドキュメント を参照して下さい。
- +(Windows 及び Mac OS X)
++ キャンバスの下側には、描画色を選択するためのカラーパレットがあります。 +
-標準の設定では、「いんさつ」ボタンを押すと、通常使うプリンターに出力されます。
-フルスクリーンモードでなければ、[Alt] (または [Option]) キーを押しながら「いんさつ」ボタンを押すと、印刷ダイアログが表示され、出力先などの設定を変更することができます。
+
+
+
"printcfg" オプションを用いて、プリンターの設定を保存することができます。このオプションは、コマンドラインで "--printcfg" を指定するか、設定ファイルで "printcfg=yes" を指定することで有効になります。
+ 右端には色についての2つの特別なオプションがあります。スポイトの形をした「カラーピッカー」は描いている絵の中から色を選ぶことができます。また、「レインボーパレット」では、何千もの色から描画色を選ぶことができます。 +
-"printcfg" オプションが有効な場合、プリンターの設定は、ユーザーの個人フォルダの "print.cfg" から読み込まれ、設定を変更すると、このファイルに保存されます。
(詳しくは オプションについてのドキュメント を参照して下さい。)
-+ (注:カラーパレットの色は好みに応じて変更できます。変更方法については、オプションについてのドキュメントを参照してください。) +
+標準の設定では、印刷ダイアログは、[Alt] キー (または [Option]) キーを押しながら「いんさつ」ボタンを押した場合にのみ表示されます(Linux/Unixでは、"lpr" の代わりに "kprinter"が起動します。)
+この印刷ダイアログの動作は、設定により変更できます。毎回必ず印刷ダイアログを表示させるには、コマンドラインで "--altprintalways" を指定するか、設定ファイルで"altprint=always" を指定します。また、"--altprintnever" オプション、または "altprint=never" を指定することで、[Alt] キー (または [Option]) の効果を無効にできます。
+ 画面の一番下の部分では、Linux ペンギンの「Tux」が、様々なヒントや関連情報をご提供します。 +
-(詳しくは オプションについてのドキュメント を参照して下さい。)
-
+
+
「スライドショー」機能は、「ひらく」ダイアログから利用できます。まず、「ひらく」ダイアログと同様に、保存された作品のリストが表示されます。
+++ 描画ツール +
-次に、スライドショーで表示したい作品を、一つずつクリックして選択します。それぞれの画像の上に、スライドショーで表示される順番を表す数字が示されます。
+++
- + ペイントブラシ「ふで」 +
-選択された画像をもう一度クリックすると、選択を解除できます。
+- +
-+
+ 右側のセレクタから筆の種類を、下のパレットから色を選んで、フリーハンドで描画します。 +
-画面左下のスライドバーで、スライドショーが進む速さを調節できます。スライドバーを一番左に設定すると、スライドショーの自動進行が無効になり、次のスライドに進むにはクリックが必要になります。
++ ボタンを押したままマウスを動かすと、描画できます。 +
-作品を選択したら、「かいし」ボタンを押してスライドショーを開始します。(注: 作品を一つも選択していない場合、全ての作品が表示されます。)
++ 描画中にはサウンドが流れます。筆の大きさが大きいほど、低い音になります。 +
+
-スライドショーの実行中は、[Space] キー、[Enter] キー、[Return] キー、右矢印 キー、画面左下の "つぎへ" ボタンのいずれかを押せば、手動で次のスライドに進みます。左矢印 キーで、前のスライドに戻ります。
++
-+
[Escape] キーを押すか、右下の「もどる」ボタンをクリックすると、スライドショーを終了し、作品選択の画面に戻ります。
+
+さらに「もどる」ボタンを押せば、「ひらく」ダイアログに戻ります。
+- + 「はんこ」ツール +
-
-
+ 「はんこ」ツールは、スタンプやステッカーを集めたようなものです。馬や木、月など、あらかじめ用意された様々な写真やイラストを絵に貼り付けることができます。 +
-+ マウスのカーソル動きに応じて画像の輪郭が表示され、貼り付け位置と大きさがわかります。 +
-「やめる」ボタンを押すか、Tux Paint のウィンドウを閉じるか、[Escape] キーを押せば、Tux Paint が終了します。
- -その際、本当に終了するかどうかを確認されます。
+
+
+
+ スタンプは、動物、植物、宇宙、乗り物、人物といった多くのカテゴリに分類されています。セレクタの左右の矢印のボタンを使ってカテゴリを切り替えることができます。 +
-作品を保存していない状態で、終了を選択した場合は、保存するかどうかを訪ねられます。さらに、新規に作成した作品でなければ、以前のバージョンを上書きするかどうかを確認されます。(上記の "セーブ" をご覧下さい。)
- -注: 終了時に保存した作品は、次に Tux Paint を起動するときに、自動的に読み込まれます。
++ スタンプを絵に貼り付ける前に、様々な効果を適用することができます(スタンプの種類によって異なります)。 +
-注:「やめる」ボタンと [Escape] キーは、無効にできます。(Tux Paint 設定ツールで、"「やめる」ボタンを無効にする" を選択するか、コマンドラインオプションで "--noquit" を指定します。)
この場合、タイトルバーの「閉じる」ボタンか、[Alt] + [F4] キーで終了することができます。
+また、万一、上記のどちらの方法でも終了できない場合、[Shift] + [Control] + [Escape] のキーの組み合わせで終了できる場合があります。(詳しくは オプションについてのドキュメント を参照して下さい。)
- -[Alt] + [S] キーを押すと効果音は無効になり、もう一度押すと有効になります。
+注: 設定ツールで、"効果音を有効にする" のチェックを外している場合や、コマンドラインで "--nosound" オプションを指定している場合は、効果音は完全に無効化され、[Alt] + [S] キーによる効果音の操作はできません。
+
+
+ 個々のスタンプごとに効果音を設定することができます。画面下部の左側にあるボタンを押すと、効果音を再生することができます。 +
+ +
+ (注: "nostampcontrols" オプションが設定されると、スタンプの拡大・縮小、反転が無効になります。詳しくはオプションについてのドキュメントを参照してください。)
+
+ 様々な種類の筆と好きな色を使って直線を描くツールです。 +
+ ++ 直線を描き始める位置でマウスをクリックして、そのままマウスを動かすと、描かれる直線が、「ゴム紐」のような薄い色の線で表示されます。 +
+ ++ マウスを放すと、バネのような効果音とともに線が描画されます。 +
+
+
+
+ 簡単な図形を描きます。 +
+ ++ まず、描きたい図形を、右側のセレクタから選択します。 +
+ ++ 右下のオプションボタンで「かたち」ツールの動作を選択します。 +
+ +
+ 注:"--noshapecontrols" オプションをつけて起動するなどして、「かたち」ツールの動作の制御を無効にした場合、オプションボタンは表示されず、真ん中から図形を広げる動作になります。
+
+ 図形を描くには、キャンバス上でマウスをクリックし、そのままマウスを動かして図形を広げます。楕円や長方形のように縦横比を変えられる図形と、正方形や円のように縦横比を変えられない図形があります。 +
+ ++ マウスを放すと、図形の形と大きさが決まります。 +
+ ++ 通常の動作では、上記の後、マウスを動かして図形を回転させます。 +
+ ++ 最後にもう一度マウスをクリックして、図形が完成します。 +
+--simpleshapes" オプション)が設定されている場合、図形を回転させる手順は省略され、マウスを放した時点で図形が描画されます。
+
+
+
+ まず、右側のセレクタからフォントを、下部のパレットから色を選択します。画面をクリックするとカーソルが表示され、文字を入力することができます。 +
+ ++ [Enter]キー、または[Return]キーを押すと文字が描画され、カーソルが次の行に下がります。 +
+ ++ [Enter] / [Return]キーの代わりに[Tab]キーを押すと、文字が描画された後、カーソルは、次の行ではなく、右側に移動します。このように、1行の中で、異なったフォント、字体、フォントサイズ、色などを混在させたい場合に便利な方法です。 +
+ ++ 文字の入力中に別の場所をクリックすると、入力内容を維持したまま、文字を貼り付ける位置をクリックした位置に移動させ、文字入力を続けることができます。 +
+ +
+
+
+ 「もじ」ツールは、Tux Paint に以前からある、文字入力ツールです。このツールで入力した文字列は、絵と一体化するため、後から文字列の内容を編集したり、動かしたりすることはできません。一方、絵と一体化することで、上から塗りつぶしたり、「よごす」「そめる」「うきぼり」といった「まほう」ツールの効果で修正を加えることができます。 +
+ ++ Tux Paint バージョン 0.9.22 で追加された「ラベル」ツールでは、文字は絵から「浮いて」おり、文字列の内容、位置、フォント、色などの情報は個別に記録されます。これにより、「ラベル」は後から移動や編集が可能です。 +
+ +
+ 「ラベル」ツールは、Tux Paint 設定ツールや、"--nolabel"オプションにより、無効にすることができます。
+
+ Tux Paint では、様々な言語の文字を入力することができます。たいていのラテン文字(A-Z, ñ, è など)は、直接入力できます。また、いくつかの言語では、入力モードを切り替えて、複数のキーの組み合わせを用いて文字を入力する必要があります。 +
+ ++ Tux Paint が、個別の入力モードがサポートされている言語に設定されている場合、特定のキーを押下することで、入力モードを切り替えることができます。 +
+ ++ 個別の入力モードがサポートされている言語と、入力モード切替キーの一覧 +注: 大抵のフォントには全ての言語の全ての文字は含まれていません。このため、入力したい文字が含まれるフォントに変更する必要がある場合があります。 +
+ ++ 「ぬる」ツールは、絵の中の連続した領域を、選んだ色で塗りつぶします。 +
+ ++ 注: Tux Paint バージョン 0.9.24 までは、このツールは「まほう」ツールのひとつでした。(「まほう」ツールについては、以下をご覧ください) +
+ ++ 「まほう」ツールは、様々な特殊なツールを集めたものです。右側のセレクタで、「まほう」の効果を選択することができます。効果を適用する方法は、クリック+ドラッグ、単なるクリックなど、ツールごとに様々です。 +
+ ++ クリック+ドラッグを使用するツールの場合、右側のセレクタの下部左側にある「描画」を表すボタンが有効になります。1クリックで画面全体に効果を及ぼすツールの場合、右側の「画面全体」を表すボタンが有効になります。 +
++ 「magic-docs」フォルダ内のドキュメント「まほう」ツールの一覧もお読みください。 +
+ ++ このツールは「ふで」ツールに似ています。クリック(または、クリック+ドラッグ)をした部分が消されます。(消した部分は、白あるいはその他の色、また、背景画像など、絵によって異なる状態に戻ります。) +
+ ++ いくつもの大きさの正方形と円形の消しゴムがあります。 +
+ ++ 正方形の輪郭がマウスカーソルの位置に表示され、絵のどの部分が消されるかを示します。 +
+ ++ 消している間、「キュッキュッ」と擦って消す効果音が流れます。 +
+++ + + ++
+- + 「とりけし」 +
+ +- +
+ ++
+ このツールをクリックすると、直前に行った操作が取り消されます。いくつもの操作をさかのぼって取り消すことができます。 +
+ ++ 注: キーボードで [Control]-[Z] を押しても取り消しできます。 +
+
+ +
+- + 「やりなおし」 +
+ +- +
+ ++
+ このツールをクリックすると、「とりけし」ボタンで取り消した操作を元に戻すことができます。 +
+ ++ 「とりけし」操作の後、描画を行っていなければ、取り消した全ての操作を元に戻せます。 +
+ ++ 注: キーボードで [Control]-[R] を押しても元に戻せます。 +
+
+ +
+- + 「さいしょから」 +
+ +- +
+ ++
+ 「さいしょから」のボタンを押すと、新規に絵を描き始めることができます。ダイアログ画面が表示され、キャンバスの背景色や背景画像(後述)を選べます。 +
+ ++ 注: キーボードで [Control]-[N] を押しても、新規作成が行えます。 +
+ 背景画像 ++++ 背景画像には、塗り絵のページのようなもの(白黒の線で描かれ、色を塗ることができる)や、前景と背景に挟まれた部分に絵を描ける3D画像のようなものがあります。 +
+ ++ 背景画像を用いて絵を描いて保存すると、新しい絵として保存され、元々の背景画像は上書きされないので、同じ背景画像を何度でも使うことができます。 +
+
+ +
+- + 「ひらく」 +
+ +- +
+ ++
+ 「ひらく」をクリックすると、保存されている全ての作品のリストが表示されます。リストが画面に収まりきらない場合は、上下の矢印のボタンでリストをスクロールできます。 +
+
+ ++
+ ++
+ まず、絵をクリックして選択します。 +
+ +++ ++
+- +
+ ++
+ 左下にある緑色の「ひらく」ボタンで、選択した作品を読み込みます。 +
+ ++ (または、開きたい作品をダブルクリックします) +
+
+- +
+ ++
+ 右下にある茶色の「けす」(ゴミ箱) ボタンで、選択した作品を削除します。(本当に削除して良いか確認されます) +
+ ++ 注: バージョン 0.9.22 以降では、削除した作品は、デスクトップのゴミ箱に移動します(Linuxのみ) +
+
+- +
+ ++
+ 「かきだす」のボタンをクリックすると、ユーザーの標準の画像フォルダ(例:"
+~/Pictures/TuxPaint/")に画像を出力します。 +
+- +
+ ++
+ 左側の一番下にある青色の"スライドショー" のボタンを押すと、スライドショーモードになります。詳しくは "スライドショー" をごらん下さい。 +
+
+- +
++
+ 右下にある赤色の "もどる" ボタンを押すと、絵を描く画面に戻ります。 +
+
++ 絵を開く時に、それまで描いていた絵が保存されていなければ、保存するかどうかを確認します。("セーブ" をご覧下さい。) +
+ ++ 注: キーボードで [Control]-[O] を押しても「ひらく」ダイアログを表示できます。 +
+
+ +
+- + 「セーブ」 +
+ +- +
+ ++
+ 描画中の作品を保存します。 +
+ ++ 一度も保存していない作品の場合、作品のリストに新しく追加されます。(つまり、新しいファイルを作成します) +
+ ++ 注: ファイル名の入力などを求めることはなく、カメラのシャッター音の効果音とともに、単に作品を保存します。 +
+ ++ 一度保存した作品を「ひらく」コマンドから読み込んで修正した場合、以前の作品を上書きするか、新しく追加して保存するかを確認します。 +
+ ++
+ ++
+ (注: "
+ +saveover" オプション、または "saveovernew" オプションが設定されている場合は、確認せずに上書きします。詳しくは オプションについてのドキュメントを参照してください。) ++ 注: キーボードで [Control]-[S] を押しても、保存操作が行えます。 +
+
+ +
+- + 「いんさつ」 +
+ +- +
+ ++
+ このボタンを押して作品を印刷します! +
+ ++ 多くのプラットフォームでは、[Alt] key (Mac では [Option] キー) を押しながら「いんさつ」ボタンを押すと、プリンターの設定画面が開きます。この機能は、フルスクリーンモードでは動作しない点に注意して下さい。 +
+ ++
+- + 印刷の無効化 +
+ +- +
+ ++ Tux Paint の設定ファイルで "
+ +noprint=yes" と指定したり、コマンドラインで "--noprint" オプションを指定すれば、"noprint" オプションが設定され、印刷が無効になります。 ++ (詳しくは オプションについてのドキュメント を参照して下さい。) +
+- + 印刷の制限 +
+ +- +
+ ++ Tux Paint の設定ファイルで "
+ +printdelay=秒数" と指定したり、コマンドラインで "--printdelay=秒数" を指定すれば、"printdelay" オプションが有効になり、印刷実行後 秒数 で指定した時間が経過するまで、次の印刷ができなくなります。 ++ 例えば、"
+ +printdelay=60" とした場合、1分ごとに1度だけ印刷できます。 ++ (詳しくは オプションについてのドキュメント を参照して下さい。) +
+- + 印刷コマンド +
+ +- +
+ ++ (Linux 及び Unix のみ) +
+ ++ Tux Paint は、PostScript 形式の印刷データを作成し、外部プログラムに渡して印刷を行います。標準の設定では、 +
+ +++ +lpr++ が外部プログラムとして使用されます。このコマンドは、設定ファイルの"printcommand" 変数に値を設定することで変更できます。 +
+ ++ フルスクリーンモードでなければ [Alt] キーを押しながら「いんさつ」ボタンを押すと、別のプログラムが起動されます。標準の設定では、KDE のグラフィカルな印刷ダイアログ +
+ +++ +kprinter++ が使用されます。このコマンドは、設定ファイルの "altprintcommand" 変数に値を設定することで変更できます。 +
+ ++ 印刷コマンドの変更方法の詳細については、オプションについてのドキュメント を参照して下さい。 +
+- + プリンターの設定 +
+ +- +
+ ++ (Windows 及び macOS) +
+ ++ 標準の設定では、「いんさつ」ボタンを押すと、通常使うプリンターに出力されます。 +
+ ++ フルスクリーンモードでなければ、[Alt] (または [Option]) キーを押しながら「いんさつ」ボタンを押すと、印刷ダイアログが表示され、出力先などの設定を変更することができます。 +
+ ++ "printcfg" オプションを用いて、プリンターの設定を保存することができます。このオプションは、コマンドラインで "
+ +--printcfg" を指定するか、設定ファイルで "printcfg=yes" を指定することで有効になります。 ++ "printcfg" オプションが有効な場合、プリンターの設定は、ユーザーの個人フォルダの "
+ +print.cfg" から読み込まれ、設定を変更すると、このファイルに保存されます。 ++ (詳しくは オプションについてのドキュメント を参照して下さい。) +
+- + 印刷ダイアログのオプション +
+ +- +
++ 標準の設定では、印刷ダイアログは、[Alt] キー (または [Option]) キーを押しながら「いんさつ」ボタンを押した場合にのみ表示されます(Linux/Unixでは、"lpr" の代わりに "kprinter"が起動します。) +
+ ++ この印刷ダイアログの動作は、設定により変更できます。毎回必ず印刷ダイアログを表示させるには、コマンドラインで "
+ +--altprintalways" を指定するか、設定ファイルで"altprint=always" を指定します。また、"--altprintnever" オプション、または "altprint=never" を指定することで、[Alt] キー (または [Option]) の効果を無効にできます。 ++ (詳しくは オプションについてのドキュメント を参照して下さい。) +
+
+ +
+- + 「スライドショー」 +
+ +- +
+ ++
+ 「スライドショー」機能は、「ひらく」ダイアログから利用できます。タックスペイントの中で簡単なアニメーションを再生したり、画像のスライドショーを再生したりすることができます。また、選択した画像を元にアニメーションGIFを書き出すこともできます。 +
+ ++
+ +- + 画像を選ぶ +
+ +- +
+ ++ 「スライド」セクションに入ると、「ひらく」ダイアログと同じように、保存したファイルの一覧が表示されます。 +
+ ++ 次に、スライドショーで表示したい作品を、一つずつクリックして選択します。それぞれの画像の上に、スライドショーで表示される順番を表す数字が示されます。 +
+ ++ 選択された画像をもう一度クリックすると、選択を解除し、スライドショーから除外します。同じ画像もう一度クリックすると、をリストの最後に追加できます。 +
+- + 再生スピードの設定 +
+ +- +
+ ++ 画面左下「かいし」の隣にあるのスライドバーで、スライドショーやアニメーションGIFのスピードを調節できます。 + スライドバーを一番左に設定すると、Tux Paint 内でのスライドショーの自動進行が無効になり、次のスライドに進むにはクリックが必要になります。(以下をご確認下さい) +
+ ++ 注: 最も遅いスピードに設定するとスライドの自動進行が無効になります。1枚ずつ手動でスライドを進めたい場合に、この設定を用いてください。(この動作はアニメーションGIFには適用されません) +
+- + Tux Paint 上での再生 +
+ +- +
+ ++ Tux Paint上でスライドショーを再生するには、「かいし」ボタンをクリックして下さい。(注: 作品を一つも選択していない場合、全ての作品が表示されます。) +
+ ++ スライドショーの実行中は、[Space] キー、[Enter] キー、[Return] キー、右矢印 キー、画面左下の "つぎへ" ボタンのいずれかを押せば、手動で次のスライドに進みます。左矢印 キーで、前のスライドに戻ります。 +
+ ++ [Escape] キーを押すか、右下の「もどる」ボタンをクリックすると、スライドショーを終了し、作品選択の画面に戻ります。 +
+- + アニメーションGIFの書き出し +
+ +- +
++
+ +右下の「かきだす」ボタンをクリックすると、選択した画像を元にアニメーションGIFファイルを生成します。 +
+ 注: 少なくとも2つの画像を選択する必要があります。(画像を1枚だけ書き出す場合は、「ひらく」ダイアログの「かきだす」オプションを用います)。1枚も画像を選択していない場合は、アニメーションGIFは生成されません。 +
+ ++ アニメーションGIFの生成中に [Escape] キーを押すと、処理を中断して「スライドショー」ダイアログに戻ります。 +
+
++ さらに「もどる」ボタンを押せば、「ひらく」ダイアログに戻ります。 +
+
+ +
+- + プログラムの終了 +
+ +- +
+ ++
+ 「やめる」ボタンを押すか、Tux Paint のウィンドウを閉じるか、[Escape] キーを押せば、Tux Paint が終了します。 +
+ ++ その際、本当に終了するかどうかを確認されます。 +
+ ++ 作品を保存していない状態で、終了を選択した場合は、保存するかどうかを訪ねられます。さらに、新規に作成した作品でなければ、以前のバージョンを上書きするかどうかを確認されます。(上記の "セーブ" をご覧下さい。) +
+ ++ 注: 終了時に保存した作品は、次に Tux Paint を起動するときに、自動的に読み込まれます。 +
+ ++ 注:「やめる」ボタンと [Escape] キーは、無効にできます。(Tux Paint 設定ツールで、"「やめる」ボタンを無効にする" を選択するか、コマンドラインオプションで "
+ +--noquit" を指定します。) ++ この場合、タイトルバーの「閉じる」ボタンか、[Alt] + [F4] キーで終了することができます。 +
+ ++ また、万一、上記のどちらの方法でも終了できない場合、[Shift] + [Control] + [Escape] のキーの組み合わせで終了できる場合があります。(詳しくは オプションについてのドキュメント を参照して下さい。) +
+
+ +
+- + 効果音を消すには +
+ +- +
++ [Alt] + [S] キーを押すと効果音は無効になり、もう一度押すと有効になります。 +
+ ++ 注: 設定ツールで、"効果音を有効にする" のチェックを外している場合や、コマンドラインで "
+--nosound" オプションを指定している場合は、効果音は完全に無効化され、[Alt] + [S] キーによる効果音の操作はできません。 +
+- - -+ Tux Paint の「ひらく」ダイアログでは、Tux Paint で作成した画像だけが表示されます。その他の画像や写真を読み込んで編集するにはどのようにすれば良いでしょうか? +
+ ++ そのための方法は簡単で、画像ファイルを PNG (Portable Network Graphic) 形式に変換して、Tux Paint で作成した画像が保存されている、以下のディレクトリにコピーします。 +
+ ++
-- + Windows Vista, 7, 8, 10 +
+ +- + 各ユーザーの "
+ +AppData" フォルダ。 + 例:"C:\Users\(ユーザー名)\AppData\Roaming\TuxPaint\saved\" +- + Windows 95, 98, ME, 2000, XP +
+ +- + 各ユーザーの "
+ +Application Data" フォルダ。例:"C:\Documents and Settings\(ユーザー名)\Application Data\TuxPaint\saved\" +- + macOS +
+ +- + 各ユーザーの "
+ +Library" フォルダ。例: +"/Users/(ユーザー名)/Library/Application Support/Tux Paint/saved/" +- + Linux/Unix +
+ +- + 各ユーザーのホームディレクトリの隠しディレクトリ "
.tuxpaint" 以下。例: "$(HOME)/.tuxpaint/saved/" +
+ 注: Tux Paint で作成した画像を他のアプリケーションから開く場合も、これらのフォルダからになります。 +
+tuxpaint-import' を使う
+ -- -Tux Paint の「ひらく」ダイアログでは、Tux Paint で作成した画像だけが表示されます。その他の画像や写真を読み込んで編集するにはどのようにすれば良いでしょうか?
++-+ Linux または Unix では、Tux Paint と同時に、シェルスクリプト "
-tuxpaint-import" がインストールされています。このスクリプトは、NetPBM のツール ("anytopnm") を用いて画像を変換し、 Tux Paint のキャンバスに合うように画像サイズを変更 ("pnmscale") し、PNG 形式に変換 ("pnmtopng") します。 +そのための方法は簡単で、画像ファイルを PNG (Portable Network Graphic) 形式に変換して、Tux Paint で作成した画像が保存されている、以下のディレクトリにコピーします。
- --
+- Windows Vista, 7, 8
-- 各ユーザーの "
+AppData" フォルダ。 - 例:"C:\Users\(ユーザー名)\AppData\Roaming\TuxPaint\saved\"+ また、このスクリプトは、"
-date" コマンドを使用して、Tux Paint が保存するファイルの付与に使用する日付と時刻を取得します。(作品を保存したり開いたりするときに、ファイルネームを聞かれることはない、ということを思い出してください!) +- Windows 95, 98, ME, 2000, XP
-- 各ユーザーの "
- -Application Data" フォルダ。例:"C:\Documents and Settings\(ユーザー名)\Application - Data\TuxPaint\saved\"- Mac OS X
-- 各ユーザーの "
- -Library" フォルダ。例: -"/Users/(ユーザー名)/Library/Application Support/Tux Paint/saved/"- Linux/Unix
-- 各ユーザーのホームディレクトリの隠しディレクトリ "
-.tuxpaint" 以下。例: "$(HOME)/.tuxpaint/saved/"+ 使用法は、コマンドプロンプトで、取り込みたい画像のファイル名を引数として '
-tuxpaint-import' を実行するだけです。 +注: Tux Paint で作成した画像を他のアプリケーションから開く場合も、これらのフォルダからになります。
++ 画像は変換された後、Tux Paint の保存フォルダにコピーされます。(注: 子供など、他のユーザーのために変換作業を行う場合は、そのユーザーのアカウントでコマンドを実行する必要があります。) +
-'
-tuxpaint-import' を使う--Linux または Unix では、Tux Paint と同時に、シェルスクリプト "
+tuxpaint-import" がインストールされています。このスクリプトは、NetPBM のツール ("anytopnm") を用いて画像を変換し、 Tux Paint のキャンバスに合うように画像サイズを変更 ("pnmscale") し、PNG 形式に変換 ("pnmtopng") します。 -+ 例: +
-また、このスクリプトは、"
+date" コマンドを使用して、Tux Paint が保存するファイルの付与に使用する日付と時刻を取得します。(作品を保存したり開いたりするときに、ファイルネームを聞かれることはない、ということを思い出してください!)-+ $ tuxpaint-import grandma.jpg
+ grandma.jpg -> /home/username/.tuxpaint/saved/20020921123456.png
+ jpegtopnm: WRITING A PPM FILE +使用法は、コマンドプロンプトで、取り込みたい画像のファイル名を引数として '
+tuxpaint-import' を実行するだけです。+ 1行目 ("
-tuxpaint-import grandma.jpg") が実行するコマンドで、続く2行がプログラムの実行中の出力です。 +画像は変換された後、Tux Paint の保存フォルダにコピーされます。(注: 子供など、他のユーザーのために変換作業を行う場合は、そのユーザーのアカウントでコマンドを実行する必要があります。)
++ これで、Tux Paint を起動して、「ひらく」ダイアログから変換した画像を開くことができます。後は、アイコンをダブルクリックするだけです! +
+例:
++ 手動での取り込み +
-+- $ tuxpaint-import grandma.jpg
- grandma.jpg -> /home/username/.tuxpaint/saved/20020921123456.png
- jpegtopnm: WRITING A PPM FILE -+++ Windows、MacOS、BeOS、そして Haiku のユーザーは、手動で変換作業を行う必要があります。 +
-1行目 ("
- -tuxpaint-import grandma.jpg") が実行するコマンドで、続く2行がプログラムの実行中の出力です。これで、Tux Paint を起動して、「ひらく」ダイアログから変換した画像を開くことができます。後は、アイコンをダブルクリックするだけです!
-+ 変換したい画像ファイルの読み込み、PNG 形式ファイルでの保存に対応した画像処理プログラムを起動します。(推奨されるソフトウェア、その他の情報については、"PNG.txt" をお読みください。) +
++ Tux Paint で、描画キャンパスと異なる大きさの画像を読み込む場合、キャンバスに合うように拡大・縮小されます。 +
-Doing it Manually
--Windows、Mac OS X そして BeOS のユーザーは、手動で変換作業を行う必要があります。
++ 画像が引き伸ばされたりぼやけたりしないようにするには、キャンパスの大きさに合うようにサイズを変更します。キャンパスの大きさは、Tux Paint のウィンドウサイズや、フルスクリーン動作時の画面解像度に依存します。(注: 標準の解像度は 800x600 です)。以下の "イメージサイズの計算方法" をごらんください。 +
-変換したい画像ファイルの読み込み、PNG 形式ファイルでの保存に対応した画像処理プログラムを起動します。(推奨されるソフトウェア、その他の情報については、"PNG.txt" をお読みください。)
++ 画像は PNG 形式で保存します。ファイル名は、以下の例のように、Tux Paint が使用する命名方式である、現在の日付と時刻を使用することを 強く 推奨します。 +
-Tux Paint で、描画キャンパスと異なる大きさの画像を読み込む場合、キャンバスに合うように拡大・縮小されます。
++-YYYYMMDDhhmmss.png+画像が引き伸ばされたりぼやけたりしないようにするには、キャンパスの大きさに合うようにサイズを変更します。キャンパスの大きさは、Tux Paint のウィンドウサイズや、フルスクリーン動作時の画面解像度に依存します。(注: 標準の解像度は 800x600 です)。以下の "イメージサイズの計算方法" をごらんください。
++
+ +- YYYY = 年 +
-画像は PNG 形式で保存します。ファイル名は、以下の例のように、Tux Paint が使用する命名方式である、現在の日付と時刻を使用することを 強く 推奨します。
+- MM = 月 (01-12) +
--YYYYMMDDhhmmss.png+- DD = 日 (01-31) +
+ +- HH = 時, 24時間表示 (00-23) +
+ +- mm = 分 (00-59) +
+ +- ss = 秒 (00-59) +
++ 例: +
+ ++ 2002年9月21日 午後1時5分ちょうどの場合 -+ +20020921130500++ PNG file を Tux Paint の'
+ +保存' ディレクトリにコピーします。(上記参照) ++ イメージサイズの計算方法 +
+ ++++ Tux Paint のキャンバスの幅は、window の幅 (例:640, 800, 1024 ピクセルなど) から 192 を引きます。 +
+ ++ キャンバスの高さは、いくつかの手順を踏んでで計算します。 +
+ ++
+ +- Window の高さ (例: 480, 600, 768 ピクセルなど) から 144 を引く。 +
+ +- 手順 1 の結果を 48 で割る。 +
+ +- 手順 2 の結果の小数点以下を切り捨てる (例: 9.5 であれば、単に 9 とする) +
+ +- 手順 3 の結果を 48 倍する。 +
+ +- 最後に、手順 4 の結果に 40 を加える。 +
++ 例: 解像度 1440x900 のディスプレイで、フルスクリーンモードで実行する場合。 +
+ ++
+ +- キャンバス幅は、単純に、1440 - 192、すなわち 1248。 +
+ +- キャンバスの高さは、次のようにして算出。 +
++
+- 900 - 144 で 756 +
+ +- 756 / 48 で 15.75 +
+ +- 15.75 を切り捨てて 15 +
+ +- 15 * 48 で 720 +
+ +- 720 + 40 で 760 +
++ このようにして、Tux Paint のウィンドウサイズが 1440x900 のとき、キャンバスサイズは 1248x760 となる。 +
+-
+- YYYY = 年 -
- MM = 月 (01-12) -
- DD = 日 (01-31) -
- HH = 時, 24時間表示 (00-23) -
- mm = 分 (00-59) -
- ss = 秒 (00-59) -
-例:
++ その他のドキュメント +
- 2002年9月21日 午後1時5分ちょうどの場合 -- -20020921130500-PNG file を Tux Paint の'
- -保存' ディレクトリにコピーします。(上記参照)イメージサイズの計算方法
---Tux Paint のキャンバスの幅は、window の幅 (例:640, 800, 1024 ピクセルなど) から 192 を引きます。
- -キャンバスの高さは、いくつかの手順を踏んでで計算します。 -
-
- -- Window の高さ (例: 480, 600, 768 ピクセルなど) から 144 を引く。 -
- 手順 1 の結果を 48 で割る。 -
- 手順 2 の結果の小数点以下を切り捨てる (例: 9.5 であれば、単に 9 とする) -
- 手順 3 の結果を 48 倍する。 -
- 最後に、手順 4 の結果に 40 を加える。 -
例: 解像度 1440x900 のディスプレイで、フルスクリーンモードで実行する場合。 + このドキュメントの他、"
docs" フォルダには、次のようなドキュメントがあります。-
- このようにして、Tux Paint のウィンドウサイズが 1440x900 のとき、キャンバスサイズは 1248x760 となる。- キャンバス幅は、単純に、1440 - 192、すなわち 1248。 -
- キャンバスの高さは、次のようにして算出。 -
-
+- 900 - 144 で 756 -
- 756 / 48 で 15.75 -
- 15.75 を切り捨てて 15 -
- 15 * 48 で 720 -
- 720 + 40 で 760 -
- + 「まほう」ツールに関するドキュメント ("magic-docs")
+ +
+- + AUTHORS.txt
+ +
+ 作者と協力者のリスト +- + CHANGES.txt
+ +
+ リリース毎の変更点の概要 +- + ライセンス情報
+ +
+ GNU 一般公衆利用許諾 +- + INSTALL.txt
+ +
+ コンパイル、インストールの手順 +- + EXTENDING.html
+ +
+ ブラシ、はんこ、背景画像の作成方法、フォントを追加する方法など。 +- + OPTIONS.html
+ +
+ コマンドライン、設定ファイルのオプションに関する詳細な情報。Tux Paint Config を使用したくない人向け。 +- + PNG.txt
+ +
+ PNG 形式の画像を作成する方法。 +- + SVG.txt
+ +
+ SVG 形式のヴェクタ画像を作成する方法。 +- + SIGNALS.txt
+ Tux Paint が応答する POSIX シグナルに関する情報。 +
- このドキュメントの他、"+ + From 6f0b71b5c391881a225f255172769383c1c4be13 Mon Sep 17 00:00:00 2001 From: Bill Kendrickdocs" フォルダには、次のようなドキュメントがあります。 ++- -+ 不明な点があれば、遠慮無く New Breed Software までお問い合わせください。 +
--
-- 「まほう」ツールに関するドキュメント ("magic-docs")
- インストールされている「まほう」ツールのそれぞれについてのドキュメント。 ++ http://www.newbreedsoftware.com/ +-- AUTHORS.txt
- 作者と協力者のリスト - -- CHANGES.txt
- リリース毎の変更点の概要 - -- COPYING.txt
- ライセンス情報 (GNU 一般公衆利用許諾) - -- INSTALL.txt
- コンパイル、インストールの手順 - -- EXTENDING.html
- ブラシ、はんこ、背景画像の作成方法、フォントを追加する方法など。 - -- OPTIONS.html
- コマンドライン、設定ファイルのオプションに関する詳細な情報。 - Tux Paint Config を使用したくない人向け。 - -- PNG.txt
- PNG 形式の画像を作成する方法。 - -- SVG.txt
- SVG 形式のヴェクタ画像を作成する方法。 - -
- - -問い合わせ先
--- - +不明な点があれば、遠慮無く New Breed Software までお問い合わせください。
- -- http://www.newbreedsoftware.com/ -- -Tux Paint のメーリングリストに参加することもできます。
- -- http://www.tuxpaint.org/lists/ -- -+ Tux Paint のメーリングリストに参加することもできます。 +
++ http://www.tuxpaint.org/lists/ ++
- June 14, 2002 - August 15, 2020 + June 14, 2002 - August 25, 2020
@@ -1111,29 +1111,44 @@ Clicking the "New" button will start a new drawing. A dialog will appear where you may choose to start a new picture using a solid background color, or - using a 'Starter' image (see below). You will first - be asked whether you really want to do this. + using a 'Starter' or 'Template' image (see below). + You will first be asked whether you really want to + do this.Note: You can also press [Control]-[N] on the keyboard to start a new drawing.
- 'Starter' Images + 'Starter' & Template Images- 'Starters' can be like a page from a coloring - book (a black-and-white outline of a picture, - which you can then color in), or like a 3D - photograph, where you draw the bits in between. + 'Starters' can behave like a page from a coloring + book — a black-and-white outline of a picture, + which you can then color in, and the black outline + remains intact — or like a 3D photograph, + where you draw in between a foreground and background + layer. +
++ 'Templates' are similar, but simply provide a + background drawing to work off of. Unlike 'Starters', + there is no layer that remains in the foreground of + anything you draw in the picture. +
++ When using the 'Eraser' tool, the original image + from the 'Starter' or 'Template' will reappear. + The 'Flip' and 'Mirror' Magic tools affect the + orientation of the 'Starter' or 'Template', as well. +
+ When you load a 'Starter' or 'Template', draw on it, + and then click 'Save,' it creates a new picture file + — it doesn't overwrite the original, so you + can use it again later (by accessing it from the 'New' + dialoge)..
-- When you load a 'Starter,' draw on it, and then - click 'Save,' it creates a new picture file (it - doesn't overwrite the original 'Starter,' so you - can use it again later). -
i zKD|BEFLs6tDV;!!%p-wLoEgkU)F3@_2$%`S0e3TVGf!sj3}U!XNwP0?hPr*P+RH4n zk}|8Zh$w@^$&ML}2!K1B-7_Ua&KU`=W)%Z@_T2WpO7GquFLSylWAM4$3XAVywCM9K#DzOw5g#;pYWy&)t@FB^W>Onxs z$PKw-P8h)qS !46?(_#-yNB6F3??(B5D&lQRb}Q&iSaqHM>Yg%T4$%ruK=blA8&MMiKlm$CY! zVs(qvu&Rgy%o=I;1{3X#^3>s3m_wnl5HGu(BE%p;NEj0KZgEJCW}kA!*&yP|)c0=8 zlZk1{W>ia?dZVnvu{AlJRYYQ7gq0%3vedHRppB?&h8%n(AG3y`h-_XZ<1r_r@nj{Y z`xBAG>XzU>9GfDKYkG*F!a poG1SMh#tSVM?T1AX86hVu?8c4t_^Duqbh_rZ!Fr^IR${jR`C<^o^9UUeK zY`K0>pXFO-kq{Z7T@(_F5KD>5s?2pgbo|=d;Nk*dHWQ1Pii!0{?GSf)EI{r2t^k3E zn1vuwv=AvZ1Qiu6C;&nWuFjxC7TL~oS({UKKt#YHkd!%$Bt;PdF}o2Q3T?qAM5HQ^ zQZ)osi5dd}Av_#- N(vdkBOeju;_PrBIiG1Cuf`cS_QBq5WYc3}J?rDy$+5Nc}c-7UOv^ zKS~yxO*a5wM=co@QDJB)%)-b(yHM`7BEZDVEF73cSRnyC#o=|u!T`hRD5II{XwC`@ zCP)A)ScC&J3o!%SZAEQ$S3rFxaDa$N5Fs#N40A9c*Q(5rW0)+@EN(D|F*rjA5=2C- zet+UtcSX-U7OxU9Gq_-8Cl&@WoZ*gSkZCT?IBs*s4cXuhcOXL;PCVUu1fnyKMLl~u zg6ry;q0B@8OkjWk?8vp@k6jPdq29e&*#t;nA}E8HKwz9b9rel6kqA(BR%Xb|-i&Op zX+(5Ceq3x|)r)%u7{XwNvqG5&Po9ptcA^jl5gbA!b<8k_B@hD+cMvV7kyg_Kz*0jP z1VrKxA_!ycM4`{Dx7JRzzM0GlLRfC9m~0S+Vad(3Y^W;-%X=1HJJot-y~P05pICjE z-t2H788Xe4c$|?9nUD+)WIurN8ioS6xY7Ff=3IBRip^n;+T$3=%OJ_}eEr3Z>g(c0 zs{!=vTJa8hQ~p-)qS>CObC%TnnC|UU3kdSCwwfvXvui~I=;`&@g90A55~DGc3b- zTIV@<;U$)UX;I+0_GN?RjkU8+uXpC5_odAad4hXN0M9j4FEJl>q_MCQ+aKZpvonRn@529Q7%8KKMvu?; !0) z{>_wfPOf>H?e}T 0Dlu&{(=m>AMH|MWs}{!Dpr zC;zpr_N~F_$~S4uN(8CEdSFd@$o==(D width, layout->height); #endif + if (layout->width * LG_button_up->w >= canvas->w * 0.9 || + layout->height * LG_button_up->h >= canvas->h * 0.5) { + /* Full-size buttons too large, use small buttons */ + button_up = SM_button_up; + button_down = SM_button_down; + button_off = SM_button_off; + button_nav = SM_button_nav; + button_hold = SM_button_hold; + oskdel = SM_oskdel; + osktab = SM_osktab; + oskenter = SM_oskenter; + oskcapslock = SM_oskcapslock; + oskshift = SM_oskshift; + } else { + button_up = LG_button_up; + button_down = LG_button_down; + button_off = LG_button_off; + button_nav = LG_button_nav; + button_hold = LG_button_hold; + oskdel = LG_oskdel; + osktab = LG_osktab; + oskenter = LG_oskenter; + oskcapslock = LG_oskcapslock; + oskshift = LG_oskshift; + } + surface = SDL_CreateRGBSurface(canvas->flags, layout->width * button_up->w, layout->height * button_up->h, @@ -126,6 +164,7 @@ struct osk_keyboard *osk_create(char *layout_name, SDL_Surface * canvas, SDL_Sur return NULL; } // keyboard->name = layout_name; + keyboard->canvas_ptr = canvas; keyboard->layout = layout; keyboard->surface = surface; keyboard->rect.x = 0; @@ -159,6 +198,27 @@ struct osk_keyboard *osk_create(char *layout_name, SDL_Surface * canvas, SDL_Sur keyboard->kmdf.dead3 = NULL; keyboard->kmdf.dead4 = NULL; + keyboard->LG_button_up = LG_button_up; + keyboard->LG_button_down = LG_button_down; + keyboard->LG_button_off = LG_button_off; + keyboard->LG_button_nav = LG_button_nav; + keyboard->LG_button_hold = LG_button_hold; + keyboard->LG_oskdel = LG_oskdel; + keyboard->LG_osktab = LG_osktab; + keyboard->LG_oskenter = LG_oskenter; + keyboard->LG_oskcapslock = LG_oskcapslock; + keyboard->LG_oskshift = LG_oskshift; + keyboard->SM_button_up = SM_button_up; + keyboard->SM_button_down = SM_button_down; + keyboard->SM_button_off = SM_button_off; + keyboard->SM_button_nav = SM_button_nav; + keyboard->SM_button_hold = SM_button_hold; + keyboard->SM_oskdel = SM_oskdel; + keyboard->SM_osktab = SM_osktab; + keyboard->SM_oskenter = SM_oskenter; + keyboard->SM_oskcapslock = SM_oskcapslock; + keyboard->SM_oskshift = SM_oskshift; + SDL_FillRect(surface, NULL, SDL_MapRGB(surface->format, keyboard->layout->bgcolor.r, keyboard->layout->bgcolor.g, keyboard->layout->bgcolor.b)); @@ -1005,36 +1065,40 @@ static int is_blank_or_comment(char *line) /* } */ -/* Fixme: Is it safe to supose that if a font is loaded at one size, it will be loaded at any size? */ -/* Fixme: sizes should be dynamically adapted to the button size */ -/* Fixme: starting a layout with one font causes all other layouts be in that font */ +/* FIXME: Is it safe to supose that if a font is loaded at one size, it will be loaded at any size? */ +/* FIXME: starting a layout with one font causes all other layouts be in that font */ static void keybd_prepare(on_screen_keyboard * keyboard) { char *fontname; - + int font_height; + + /* Pick a height (e.g., 16pt for small (24x24), 32pt for large (48x48) buttons) */ + font_height = ((keyboard->button_up->h * 2) / 3); + fontname = malloc(sizeof(char) * 255); if (keyboard->osk_fonty == NULL) { + if (keyboard->layout->fontpath) { /* First try if it is an absolute path */ - keyboard->osk_fonty = TTF_OpenFont(keyboard->layout->fontpath, 12); + keyboard->osk_fonty = TTF_OpenFont(keyboard->layout->fontpath, font_height); if (keyboard->osk_fonty == NULL) { /* Now trying if it is relative to DATA_PREFIX/fonts/ */ snprintf(fontname, 255, "%s/fonts/%s", DATA_PREFIX, keyboard->layout->fontpath); - keyboard->osk_fonty = TTF_OpenFont(fontname, 12); + keyboard->osk_fonty = TTF_OpenFont(fontname, font_height); if (keyboard->osk_fonty == NULL) { /* Perhaps it is relative to DATA_PREFIX only? */ snprintf(fontname, 255, "%s/%s", DATA_PREFIX, keyboard->layout->fontpath); - keyboard->osk_fonty = TTF_OpenFont(fontname, 12); + keyboard->osk_fonty = TTF_OpenFont(fontname, font_height); if (keyboard->osk_fonty == NULL) { /* Or to DATA_PREFIX/fonts/locale/ ? */ snprintf(fontname, 255, "%s/fonts/locale/%s", DATA_PREFIX, keyboard->layout->fontpath); - keyboard->osk_fonty = TTF_OpenFont(fontname, 12); + keyboard->osk_fonty = TTF_OpenFont(fontname, font_height); } } } @@ -1044,7 +1108,7 @@ static void keybd_prepare(on_screen_keyboard * keyboard) { /* Going with the default */ sprintf(fontname, "%s/fonts/FreeSansBold.ttf", DATA_PREFIX); - keyboard->osk_fonty = TTF_OpenFont(fontname, 12); + keyboard->osk_fonty = TTF_OpenFont(fontname, font_height); } if (keyboard->osk_fonty == NULL) @@ -1687,9 +1751,20 @@ struct osk_keyboard *osk_clicked(on_screen_keyboard * keyboard, int x, int y) new_keyboard = - osk_create(name, keyboard->surface, keyboard->button_up, keyboard->button_down, keyboard->button_off, - keyboard->button_nav, keyboard->button_hold, keyboard->oskdel, keyboard->osktab, - keyboard->oskenter, keyboard->oskcapslock, keyboard->oskshift, keyboard->disable_change); + osk_create(name, keyboard->canvas_ptr, + keyboard->LG_button_up, keyboard->LG_button_down, + keyboard->LG_button_off, keyboard->LG_button_nav, + keyboard->LG_button_hold, + keyboard->LG_oskdel, keyboard->LG_osktab, + keyboard->LG_oskenter, keyboard->LG_oskcapslock, + keyboard->LG_oskshift, + keyboard->SM_button_up, keyboard->SM_button_down, + keyboard->SM_button_off, keyboard->SM_button_nav, + keyboard->SM_button_hold, + keyboard->SM_oskdel, keyboard->SM_osktab, + keyboard->SM_oskenter, keyboard->SM_oskcapslock, + keyboard->SM_oskshift, + keyboard->disable_change); free(aux_list_ptr); diff --git a/src/onscreen_keyboard.h b/src/onscreen_keyboard.h index 717b7f06e..fdec10888 100644 --- a/src/onscreen_keyboard.h +++ b/src/onscreen_keyboard.h @@ -104,13 +104,15 @@ typedef struct osk_keyboard { char *name; /* The name of the keyboard */ char *keyboard_list; /* The names of the keyboards allowed from this one */ - SDL_Surface *surface; /* The surface containing the keyboard */ - SDL_Surface *button_up; /* The surfaces containing the buttons */ + SDL_Surface *surface; /* The surface containing the current layout's keyboard */ + /* The surfaces containing the current layout's button backgrounds*/ + SDL_Surface *button_up; SDL_Surface *button_down; SDL_Surface *button_off; SDL_Surface *button_nav; SDL_Surface *button_hold; - SDL_Surface *oskdel; /* The surfaces containing some symbols for the buttons, delete arrow */ + /* The surfaces containing some symbols for the current layout's buttons */ + SDL_Surface *oskdel; /* delete arrow */ SDL_Surface *osktab; /* Tab arrows */ SDL_Surface *oskenter; /* Return hook/arrow */ SDL_Surface *oskcapslock; /* CapsLock */ @@ -131,12 +133,41 @@ typedef struct osk_keyboard int composed_type; /* 1 if the value stored in composed is yet the unicode value */ osk_composenode *composing; /* The node in the middle of a compose sequence */ osk_key *last_key_pressed; /* The last key pressed */ + SDL_Surface * canvas_ptr; /* Canvas drawing surface, for bpp and sizing needs when cycling through keyboard layouts */ + /* Large and small buttons, to pass back to osk_create() when cycling through keyboard layouts */ + SDL_Surface *LG_button_up; + SDL_Surface *LG_button_down; + SDL_Surface *LG_button_off; + SDL_Surface *LG_button_nav; + SDL_Surface *LG_button_hold; + SDL_Surface *LG_oskdel; + SDL_Surface *LG_osktab; + SDL_Surface *LG_oskenter; + SDL_Surface *LG_oskcapslock; + SDL_Surface *LG_oskshift; + SDL_Surface *SM_button_up; + SDL_Surface *SM_button_down; + SDL_Surface *SM_button_off; + SDL_Surface *SM_button_nav; + SDL_Surface *SM_button_hold; + SDL_Surface *SM_oskdel; + SDL_Surface *SM_osktab; + SDL_Surface *SM_oskenter; + SDL_Surface *SM_oskcapslock; + SDL_Surface *SM_oskshift; } on_screen_keyboard; -struct osk_keyboard *osk_create(char *layout_name, SDL_Surface * canvas, SDL_Surface * button_up, - SDL_Surface * button_down, SDL_Surface * button_off, SDL_Surface * button_nav, - SDL_Surface * button_hold, SDL_Surface * oskdel, SDL_Surface * osktab, - SDL_Surface * oskenter, SDL_Surface * oskcapslock, SDL_Surface * oskshift, +struct osk_keyboard *osk_create(char * layout_name, SDL_Surface * canvas, + SDL_Surface * LG_button_up, SDL_Surface * LG_button_down, + SDL_Surface * LG_button_off, SDL_Surface * LG_button_nav, + SDL_Surface * LG_button_hold, + SDL_Surface * LG_oskdel, SDL_Surface * LG_osktab, SDL_Surface * LG_oskenter, + SDL_Surface * LG_oskcapslock, SDL_Surface * LG_oskshift, + SDL_Surface * SM_button_up, SDL_Surface * SM_button_down, + SDL_Surface * SM_button_off, SDL_Surface * SM_button_nav, + SDL_Surface * SM_button_hold, + SDL_Surface * SM_oskdel, SDL_Surface * SM_osktab, SDL_Surface * SM_oskenter, + SDL_Surface * SM_oskcapslock, SDL_Surface * SM_oskshift, int disable_change); struct osk_layout *osk_load_layout(char *layout_name); diff --git a/src/tuxpaint.c b/src/tuxpaint.c index d97015638..105694a9d 100644 --- a/src/tuxpaint.c +++ b/src/tuxpaint.c @@ -22,7 +22,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA (See COPYING.txt) - June 14, 2002 - August 16, 2020 + June 14, 2002 - August 25, 2020 */ @@ -1430,7 +1430,7 @@ static int text_undo[NUM_UNDO_BUFS]; static int have_to_rec_label_node; static int have_to_rec_label_node_back; static SDL_Surface *img_title, *img_title_credits, *img_title_tuxpaint; -static SDL_Surface *img_btn_up, *img_btn_down, *img_btn_off; +static SDL_Surface *img_btn_up, *img_btn_down, *img_btn_off, *img_btn_hold; static SDL_Surface *img_btnsm_up, *img_btnsm_off, *img_btnsm_down, *img_btnsm_hold; static SDL_Surface *img_btn_nav, *img_btnsm_nav; static SDL_Surface *img_prev, *img_next; @@ -3132,15 +3132,29 @@ static void mainloop(void) { if (onscreen_keyboard_layout) kbd = - osk_create(onscreen_keyboard_layout, screen, img_btnsm_up, img_btnsm_down, - img_btnsm_off, img_btnsm_nav, img_btnsm_hold, img_oskdel, - img_osktab, img_oskenter, img_oskcapslock, img_oskshift, + osk_create(onscreen_keyboard_layout, screen, + img_btn_up, img_btn_down, img_btn_off, + img_btn_nav, img_btn_hold, + img_oskdel, img_osktab, img_oskenter, + img_oskcapslock, img_oskshift, + img_btnsm_up, img_btnsm_down, img_btnsm_off, + img_btnsm_nav, img_btnsm_hold, + /* FIXME */ + img_oskdel, img_osktab, img_oskenter, + img_oskcapslock, img_oskshift, onscreen_keyboard_disable_change); else kbd = - osk_create(strdup("default.layout"), screen, img_btnsm_up, img_btnsm_down, - img_btnsm_off, img_btnsm_nav, img_btnsm_hold, img_oskdel, - img_osktab, img_oskenter, img_oskcapslock, img_oskshift, + osk_create(strdup("default.layout"), screen, + img_btn_up, img_btn_down, img_btn_off, + img_btn_nav, img_btn_hold, + img_oskdel, img_osktab, img_oskenter, + img_oskcapslock, img_oskshift, + img_btnsm_up, img_btnsm_down, img_btnsm_off, + img_btnsm_nav, img_btnsm_hold, + /* FIXME */ + img_oskdel, img_osktab, img_oskenter, + img_oskcapslock, img_oskshift, onscreen_keyboard_disable_change); } if (kbd == NULL) @@ -12644,6 +12658,7 @@ static void cleanup(void) free_surface(&img_btn_up); free_surface(&img_btn_down); free_surface(&img_btn_off); + free_surface(&img_btn_hold); free_surface(&img_btnsm_up); free_surface(&img_btnsm_off); @@ -24355,6 +24370,7 @@ static void setup(void) img_btn_up = loadimage(DATA_PREFIX "images/ui/btn_up.png"); img_btn_down = loadimage(DATA_PREFIX "images/ui/btn_down.png"); img_btn_off = loadimage(DATA_PREFIX "images/ui/btn_off.png"); + img_btn_hold = loadimage(DATA_PREFIX "images/ui/btn_hold.png"); img_btnsm_up = loadimage(DATA_PREFIX "images/ui/btnsm_up.png"); img_btnsm_off = loadimage(DATA_PREFIX "images/ui/btnsm_off.png"); From 8ef759a9a7b1bc97d8169c9ad37689c552715274 Mon Sep 17 00:00:00 2001 From: Bill Kendrick Date: Tue, 25 Aug 2020 22:09:02 -0700 Subject: [PATCH 09/43] Keyboard max size didn't account for UI buttons Keyboard's goal is to not be > 90% of the width of the drawing canvas. Was misinterpreting the incoming argument ('canvas'), so have to account for the toolbar (left) and selector (right) buttons in the UI. So e.g., `tuxpaint --900x768 --onscreen-keyboard` will use the small keyboard buttons, while `... --1024x768 ...` will use the large. --- src/onscreen_keyboard.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/onscreen_keyboard.c b/src/onscreen_keyboard.c index 7a77371b7..4875a73b4 100644 --- a/src/onscreen_keyboard.c +++ b/src/onscreen_keyboard.c @@ -127,7 +127,7 @@ struct osk_keyboard *osk_create(char * layout_name, SDL_Surface * canvas, printf("w %i, h %i\n", layout->width, layout->height); #endif - if (layout->width * LG_button_up->w >= canvas->w * 0.9 || + if (layout->width * LG_button_up->w >= (canvas->w - 48 * 4) * 0.9 || layout->height * LG_button_up->h >= canvas->h * 0.5) { /* Full-size buttons too large, use small buttons */ button_up = SM_button_up; From b88c8a9030fbf661ee9e3d0d5b6d02728edc9b02 Mon Sep 17 00:00:00 2001 From: Bill Kendrick Date: Fri, 28 Aug 2020 21:27:04 -0700 Subject: [PATCH 10/43] Refresh full canvas after drawing shape Ensure that shape gets completely drawn and XOR outline gets removed. --- src/tuxpaint.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/tuxpaint.c b/src/tuxpaint.c index 105694a9d..c604137df 100644 --- a/src/tuxpaint.c +++ b/src/tuxpaint.c @@ -22,7 +22,7 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA (See COPYING.txt) - June 14, 2002 - August 25, 2020 + June 14, 2002 - August 28, 2020 */ @@ -5055,6 +5055,10 @@ static void mainloop(void) shape_tool_mode = SHAPE_TOOL_MODE_DONE; draw_tux_text(TUX_GREAT, tool_tips[TOOL_SHAPES], 1); + + /* FIXME: Do something less intensive! */ + + SDL_Flip(screen); } } } From 93f05af10d3caeae942a5e6715a6a40d4b583856 Mon Sep 17 00:00:00 2001 From: Bill Kendrick Date: Fri, 28 Aug 2020 21:51:51 -0700 Subject: [PATCH 11/43] Ensure easy rotation of corner-stretched shapes If corner-stretched shape is pulled to the left, make sure the rotation step works properly. --- src/tuxpaint.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/tuxpaint.c b/src/tuxpaint.c index c604137df..dcef231c0 100644 --- a/src/tuxpaint.c +++ b/src/tuxpaint.c @@ -2212,6 +2212,8 @@ enum SHAPE_TOOL_MODE_DONE }; +int shape_reverse; + int brushflag, xnew, ynew, eraflag, lineflag, magicflag, keybd_flag, keybd_position, keyglobal, initial_y, gen_key_flag, ide, activeflag, old_x, old_y; @@ -5359,6 +5361,8 @@ static void mainloop(void) do_shape(shape_start_x, shape_start_y, new_x, new_y, 0, 0); + shape_reverse = (new_x < shape_start_x); + /* FIXME: Fix update shape function! */ @@ -13256,9 +13260,12 @@ static int shape_rotation(int ctr_x, int ctr_y, int ox, int oy) { int deg; - deg = (atan2(oy - ctr_y, ox - ctr_x) * 180 / M_PI); + if (shape_reverse && shape_mode == SHAPEMODE_CORNER) { + deg = (deg + 180) % 360; + } + if (shape_radius < 50) deg = ((deg - 15) / 30) * 30; else if (shape_radius < 100) From 552c148817a18b7d8fd77e0c1d5a6dad0912196d Mon Sep 17 00:00:00 2001 From: Bill Kendrick Date: Sat, 29 Aug 2020 16:57:15 -0700 Subject: [PATCH 12/43] EXTENDING docs clean-up; adding TOC * Add linked table of contents * some terms * some paths * Replace with CSS * Brushes no longer limited to max 40x40 pixels in size * Mac OS X is now macOS * Other misc improvements --- docs/CHANGES.txt | 4 +- docs/en/EXTENDING.txt | 100 ++++++--- docs/en/html/EXTENDING.html | 428 ++++++++++++++++++++++++------------ 3 files changed, 356 insertions(+), 176 deletions(-) diff --git a/docs/CHANGES.txt b/docs/CHANGES.txt index 3c42e9ec5..a5f17acf7 100644 --- a/docs/CHANGES.txt +++ b/docs/CHANGES.txt @@ -8,7 +8,7 @@ http://www.tuxpaint.org/ $Id$ -2020.August.25 (0.9.25) +2020.August.29 (0.9.25) * New Features ------------ * Export drawings: @@ -91,6 +91,8 @@ $Id$ * Sub-section links within README's Table of Contents. + * EXTENDING docs cleaned up and Table of Contents added. + * Bug Fixes --------- * Mended issue where stamp descriptions were not loading diff --git a/docs/en/EXTENDING.txt b/docs/en/EXTENDING.txt index 67b672789..012978727 100644 --- a/docs/en/EXTENDING.txt +++ b/docs/en/EXTENDING.txt @@ -1,20 +1,48 @@ + Extending Tux Paint version 0.9.25 - Extending Tux Paint Copyright (c) 2002-2020 by various contributors; see AUTHORS.txt http://www.tuxpaint.org/ - June 14, 2002 - July 27, 2020 + June 14, 2002 - August 29, 2020 ---------------------------------------------------------------------- - If you wish to add or change things like Brushes and Rubber Stamps used by - Tux Paint, you can do it fairly easily by simply putting or removing files - on your hard disk. + +------------------------------------------+ + |Table of Contents | + |------------------------------------------| + | * Where Files Go | + | * Standard Files | + | * Personal Files | + | * Brushes | + | * Brush Options | + | * Stamps | + | * Images | + | * Description Text | + | * Sound Effects | + | * Descriptive Sound | + | * Stamp Options | + | * Pre-Mirrored and Flipped Images | + | * Fonts | + | * 'Starters' | + | * Coloring-Book Style | + | * Scene-Style | + | * 'Templates' | + | * Translations | + | * Alternative Input Methods | + +------------------------------------------+ + + ---------------------------------------------------------------------- + + If you wish to add or change things like Brushes, Starters, Rubber Stamps + and other content used by Tux Paint, you can do so fairly easily by simply + adding, changing, or removing files where Tux Paint looks for them. Note: You'll need to restart Tux Paint for the changes to take effect. + ---------------------------------------------------------------------- + Where Files Go Standard Files @@ -42,11 +70,12 @@ Where Files Go C:\Program Files\TuxPaint\data - Mac OS X + macOS Tux Paint stores its data files inside the "Tux Paint" application - (which is actually a special kind of folder on Mac OS X). The - following steps explain how to get to the folders within: + icon (which is actually a special kind of folder on macOS & Mac OS X + before it). The following steps explain how to get to the folders + within it: 1. Bring up a 'context' menu by holding the [Control] key and clicking the Tux Paint icon the in Finder. (If you have a mouse @@ -55,10 +84,10 @@ Where Files Go window will appear with a folder inside called "Contents." 3. Open the "Contents" folder and open the "Resources" folder found inside. - 4. There, you will find the "starters", "stamps" and "brushes" - folders. Adding new content to these folders will make the - content available to any user that launches this copy (icon) of - Tux Paint. + 4. There, you will find various sub-folders, such as "starters", + "stamps", "brushes", etc. Adding new content to these folders + will make the content available to any user that launches this + copy (icon) of Tux Paint. Note: If you install a newer version of Tux Paint and replace or discard the old version, you will lose changes made by following the @@ -67,13 +96,13 @@ Where Files Go Tux Paint also looks for files in a "TuxPaint" folder that you can place in your system's "Application Support" folder (found under - "Library" at the root of your hard disk): + "Library" at the root of your filesystem): /Library/Application Support/TuxPaint/ It also looks for files in the user's "Application Support" folder: - /Users/(user name)/Library/Application Support/TuxPaint/ + /Users/(username)/Library/Application Support/TuxPaint/ When you upgrade to a newer version of Tux Paint, the contents of this TuxPaint folder will stay the same and remain accessible by all @@ -91,14 +120,14 @@ Where Files Go Your personal Tux Paint folder is stored in your "Application Data". For example, on newer Windows (set up for an English-speaking user): - C:\Documents and Settings\(user name)\Application Data\TuxPaint\ + C:\Documents and Settings\(username)\Application Data\TuxPaint\ Mac OS X Your personal Tux Paint folder is stored in your "Application Support" folder: - /Users/(user name)/Library/Application Support/ TuxPaint/ + /Users/(username)/Library/Application Support/TuxPaint/ Linux and Unix @@ -121,8 +150,8 @@ Where Files Go Brushes - The brushes used for drawing with the 'Brush' and 'Lines' tools in - Tux Paint are simply PNG image files. + The brushes used for drawing with the 'Brush' and 'Lines' tools in Tux + Paint are simply PNG image files. The alpha (transparency) of the PNG image is used to determine the shape of the brush, which means that the shape can be 'anti-aliased' and even @@ -131,9 +160,6 @@ Brushes Greyscale pixels in the brush PNG will be drawn using the currently-selected color in Tux Paint. Color pixels will be tinted. - Brush images should be no wider than 40 pixels across and no taller than - 40 pixels high. (i.e., the maximum size can be 40 x 40.) - Brush Options Aside from a graphical shape, brushes can also be given other @@ -245,8 +271,8 @@ Stamps information and tips. Advanced Users: The Advanced Stamps HOWTO describes, in detail, how to - make PNG images which will scale perfectly when used as stamps in - Tux Paint. + make PNG images which will scale perfectly when used as stamps in Tux + Paint. ---------------------------------------------------------------------- @@ -281,8 +307,8 @@ Stamps Windows Users Use NotePad or WordPad to edit/create these files. Be sure to save - them as Plain Text, and make sure they have ".txt" at the end of the - filename... + them as plain-text, and make sure they have a ".txt" extension at + the end of the filename. ---------------------------------------------------------------------- @@ -415,9 +441,9 @@ Stamps Initial Stamp Size By default, Tux Paint assumes that your stamp is sized appropriately - for unscaled display on a 608x472 canvas. This is the original - Tux Paint canvas size, provided by a 640x480 screen. Tux Paint will - then adjust the stamp according to the current canvas size and, if + for unscaled display on a 608x472 canvas. This is the original Tux + Paint canvas size, provided by a 640x480 screen. Tux Paint will then + adjust the stamp according to the current canvas size and, if enabled, the user's stamp size controls. If your stamp would be too big or too small, you can specify a scale @@ -480,7 +506,7 @@ Fonts image is not overwritten. Additionally, as you edit your new picture, the contents of the original 'starter' affect it. - Coloring-Book Style + Coloring-Book Style The most basic kind of 'starter' is similar to a picture in a coloring book. It's an outline of a shape which you can then color in and add @@ -503,7 +529,7 @@ Fonts graphics) or KPX (templates from Kid Pix, another childrens' drawing program; they are special files which simply contain a JPEG within). - Scene-Style + Scene-Style Along with the 'coloring-book' style overlay, you can also provide a separate background image as part of a 'starter' picture. The overlay @@ -600,8 +626,8 @@ Fonts Translations Tux Paint supports numerous languages, thanks to use of the "gettext" - localization library. (See OPTIONS for how to change locales in - Tux Paint.) + localization library. (See OPTIONS for how to change locales in Tux + Paint.) To translate Tux Paint to a new language, copy the translation template file, "tuxpaint.pot" (found in Tux Paint's source code, in the folder @@ -652,6 +678,8 @@ Translations Makefile, to have the ".po" gettext catalog source files compiled into ".mo" files, and installed, for use at runtime. + ---------------------------------------------------------------------- + Alternative Input Methods As of version 0.9.17, Tux Paint's "Text" tool can provide alternative @@ -710,6 +738,8 @@ Alternative Input Methods used in Korean to handle Batchim, which may carry over to the next character. - Note: Additional input method support also requires additions to - Tux Paint's source code (/src/im.c), and requires updates to the - Makefile, to have the ".im" files installed, for use at runtime. + Note: Additional input method support also requires additions to Tux + Paint's source code (/src/im.c), and requires updates to the Makefile, + to have the ".im" files installed, for use at runtime. + + ---------------------------------------------------------------------- diff --git a/docs/en/html/EXTENDING.html b/docs/en/html/EXTENDING.html index d96945943..de1244baf 100644 --- a/docs/en/html/EXTENDING.html +++ b/docs/en/html/EXTENDING.html @@ -16,12 +16,12 @@ alink="#FF00FF">@@ -238,14 +346,14 @@+ + Extending
- version 0.9.25
- Extending Tux Paint + alt="Tux Paint">
+ version 0.9.25@@ -32,37 +32,142 @@
- June 14, 2002 - July 27, 2020 + June 14, 2002 - August 29, 2020
+ ++
++ + ++ Table of Contents + ++ ++ ++
+- + Where Files Go +
+ ++
+- + Standard Files +
+- + Personal Files +
+- + Brushes +
+ ++
+- + Brush Options +
+- + Stamps +
+ ++
+- + Images +
+- + Description Text +
+- + Sound Effects +
+- + Descriptive Sound +
+- + Stamp Options +
+- + Pre-Mirrored and Flipped Images +
+- + Fonts +
+ +- + 'Starters' +
+ ++
+- + Coloring-Book Style +
+- + Scene-Style +
+- + 'Templates' +
+ +- + Translations +
+ +- + Alternative Input Methods +
+ +
- If you wish to add or change things like Brushes and Rubber - Stamps used by Tux Paint, you can do it fairly easily by - simply putting or removing files on your hard disk. + If you wish to add or change things like Brushes, Starters, + Rubber Stamps and + other content used by + Tux Paint, + you can do so fairly easily by simply adding, changing, or removing files + where Tux Paint looks for them.
- Note: You'll need to restart Tux Paint for the changes - to take effect. + Note: You'll need to restart + Tux Paint + for the changes to take effect.
+
+- Where Files Go + + Where Files Go +
- Standard Files + + Standard Files +
- Tux Paint looks for its various data files in its - 'data' directory. + Tux Paint looks for its various data files in its + '
data' directory.@@ -72,8 +177,8 @@
@@ -188,13 +294,15 @@ noshade>Where this directory goes depends on what value was set - for "
DATA_PREFIX" when Tux Paint was - built. See INSTALL.txt for details. + for "DATA_PREFIX" when Tux Paint was + built. See INSTALL.txt for details.@@ -100,86 +205,87 @@
- Tux Paint looks for a directory called 'data' in + Tux Paint looks for a directory called 'data' in the same directory as the executable. This is the directory that the installer used when installing - Tux Paint e.g.: + Tux Paint e.g.:
-C:\Program Files\TuxPaint\data+C:\Program Files\TuxPaint\data- Mac OS X + macOS
- Tux Paint stores its data files inside the - "Tux Paint" application (which is actually a - special kind of folder on Mac OS X). The - following steps explain how to get to the folders - within: + Tux Paint stores its data files inside the + "
Tux Paint" application icon + (which is actually a special kind of folder on macOS & + Mac OS X before it). The following steps explain how to get to the folders + within it:
- Bring up a 'context' menu by holding the [Control] - key and clicking the Tux Paint icon the in Finder. + key and clicking the Tux Paint icon the in Finder. (If you have a mouse with more than one button, you can simply right-click the icon.)
-- Select "Show Contents" from the menu that - appears. A new Finder window will appear with a folder - inside called "Contents." +
- Select "Show Contents" from the menu that + appears. A new Finder window will appear with a folder + inside called "
-Contents."- Open the "Contents" folder and open the "Resources" - folder found inside. +
- Open the "
-Contents" folder and open the + "Resources" folder found inside.- There, you will find the "starters", "stamps" and - "brushes" folders. Adding new content to these folders +
- There, you will find various sub-folders, such as + "
starters", "stamps", "brushes", + etc. Adding new content to these folders will make the content available to any user that - launches this copy (icon) of Tux Paint. + launches this copy (icon) of Tux Paint.Note: If you install a newer version of - Tux Paint and replace or discard the old version, + Tux Paint and replace or discard the old version, you will lose changes made by following the instructions above, so keep backups of your new content (stamps, brushes, etc.).
- Tux Paint also looks for files in a "TuxPaint" + Tux Paint also looks for files in a "
TuxPaint" folder that you can place in your system's - "Application Support" folder (found under - "Library" at the root of your hard disk): + "Application Support" folder + (found under "Library" at the root of your filesystem):-/Library/Application Support/TuxPaint/+/Library/Application Support/TuxPaint/- It also looks for files in the user's "Application - Support" folder: + It also looks for files in the user's + "
Application Support" folder:-/Users/(user name)/Library/Application +/Users/(username)/Library/Application Support/TuxPaint/- When you upgrade to a newer version of Tux Paint, the - contents of this TuxPaint folder will stay the same and - remain accessible by all users of Tux Paint. + When you upgrade to a newer version of Tux Paint, the + contents of this
TuxPaintfolder will stay the same and + remain accessible by all users of Tux Paint.- Personal Files + + Personal Files +
You can also create brushes, stamps, fonts and 'starters' - in your own directory (folder) for Tux Paint to + in your own directory (folder) for Tux Paint to find.
@@ -204,14 +312,14 @@@@ -222,13 +330,13 @@- Your personal Tux Paint folder is stored in your + Your personal Tux Paint folder is stored in your "Application Data". For example, on newer Windows (set up for an English-speaking user):
-C:\Documents and - Settings\(user name)\Application +C:\Documents and + Settings\(username)\Application Data\TuxPaint\- Your personal Tux Paint folder is stored in your + Your personal Tux Paint folder is stored in your "Application Support" folder:
-/Users/(user name)/Library/Application - Support/ TuxPaint/+/Users/(username)/Library/Application + Support/TuxPaint/ 's canvas. (See the "Loading Other Pictures + into Tux Paint" section of README for details on sizing.) If they are not, they will be stretched, without affecting the shape ("aspect ratio"); however some smudging may be @@ -1099,14 +1236,14 @@- Your personal Tux Paint directory is + Your personal Tux Paint directory is "
$(HOME)/.tuxpaint/" (also known as "~/.tuxpaint/".That is, if your home directory is - "
@@ -257,7 +365,7 @@/home/karl", then your Tux Paint + "/home/karl", then your Tux Paint directory is "/home/karl/.tuxpaint/".To add brushes, stamps fonts, and 'starters,' create - subdirectories under your personal Tux Paint + subdirectories under your personal Tux Paint directory named "
brushes", "stamps", "fonts" and "starters" respectively. @@ -275,13 +383,15 @@ noshade>- Brushes + + Brushes +
The brushes used for drawing with the 'Brush' and 'Lines' - tools in Tux Paint are simply PNG image files. + tools in Tux Paint are simply PNG image files.
Greyscale pixels in the brush PNG will be drawn using the - currently-selected color in Tux Paint. Color pixels + currently-selected color in Tux Paint. Color pixels will be tinted. -
- Brush images should be no wider than 40 pixels across - and no taller than 40 pixels high. (i.e., the maximum - size can be 40 x 40.) -
-- Brush Options + + Brush Options +
Aside from a graphical shape, brushes can also be given other attributes. To do this, you need to create a - 'data file' for the brush. + 'data file' for the brush.
@@ -335,7 +441,7 @@
- As of Tux Paint version 0.9.16, you can now + As of Tux Paint version 0.9.16, you can now specify the spacing for brushes (that is, how often they are drawn). By default, the spacing will be the brush's height, divided by 4. @@ -356,7 +462,7 @@
- As of Tux Paint version 0.9.16, you may now create + As of Tux Paint version 0.9.16, you may now create animated brushes. As the brush is used, each frame of the animation is drawn.
@@ -388,7 +494,7 @@@@ -650,7 +765,9 @@ noshade>- As of Tux Paint version 0.9.16, you may now create + As of Tux Paint version 0.9.16, you may now create directional brushes. As the brush is used, different shapes are drawn, depending on the direction the brush is going. @@ -452,7 +558,9 @@ noshade>
- Stamps + + Stamps +
@@ -467,12 +575,14 @@@@ -600,12 +712,15 @@ noshade>- Images + + Images +
@@ -531,7 +641,9 @@ noshade>- Rubber Stamps in Tux Paint can be made up of a + Rubber Stamps in Tux Paint can be made up of a number of separate files. The one file that is required is, of course, the picture itself.
@@ -482,7 +592,7 @@ alt="" align="right">- As of Tux Paint version 0.9.17, Stamps may be either + As of Tux Paint version 0.9.17, Stamps may be either PNG bitmap images or SVG vector images. They can be full-color or greyscale. The alpha (transparency) channel of PNGs is used to determine the actual shape of the @@ -491,14 +601,14 @@
- PNGs can be any size, and Tux Paint (by default) + PNGs can be any size, and Tux Paint (by default) provides a set of sizing buttons to let the user scale the stamp up (larger) and down (smaller).
SVGs are vector-based, and will be scaled appropriately - for the canvas being used in Tux Paint. + for the canvas being used in Tux Paint.
@@ -522,7 +632,7 @@ Advanced Users: The Advanced Stamps HOWTO describes, in detail, how to make PNG images which will - scale perfectly when used as stamps in Tux Paint. + scale perfectly when used as stamps in Tux Paint.
- Description Text + + Description Text +
@@ -555,7 +667,7 @@@@ -589,9 +701,9 @@Additional lines can be added to the text file to provide translations of the description, to be - displayed when Tux Paint is running in a different + displayed when Tux Paint is running in a different locale (like French or Spanish).
@@ -578,7 +690,7 @@If no translation is available for the language - Tux Paint is currently running in, the US English + Tux Paint is currently running in, the US English text is used.
- Use NotePad or WordPad to edit/create these files. Be - sure to save them as Plain Text, and make sure they - have "
.txt" at the end of the filename... + Use NotePad or WordPad to edit/create these files. + Be sure to save them as plain-text, and make sure they + have a ".txt" extension at the end of the filename.- Sound Effects + + Sound Effects +
@@ -642,7 +757,7 @@- WAVE (".wav") or OGG Vorbis (".ogg") files with the same + WAVE ("
.wav") or OGG Vorbis + (".ogg") files with the same name as the PNG or SVG. (e.g., "picture.svg"'s sound effect is the sound file "picture.wav" in the same directory.) @@ -626,7 +741,7 @@"
picture.png"'s sound effect, when - Tux Paint is run in Spanish mode, would be + Tux Paint is run in Spanish mode, would be "picture_es.wav". In French mode, "picture_fr.wav". In Brazilian Portuguese mode, "picture_pt_BR.wav". And so on... @@ -634,7 +749,7 @@If no localized sound effect can be loaded, - Tux Paint will attempt to load the 'default' sound + Tux Paint will attempt to load the 'default' sound file. (e.g., "
picture.wav")Note: For descriptive sounds (not sound effects, like a bang or a bird chirping), consider using the - Descriptive Sounds, described below. + Descriptive Sounds, described below.
- Descriptive Sound + + Descriptive Sound +
@@ -676,7 +793,7 @@"
picture.png"'s descriptive sound, when - Tux Paint is run in Spanish mode, would be + Tux Paint is run in Spanish mode, would be "picture_desc_es.wav". In French mode, "picture_desc_fr.wav". In Brazilian Portuguese mode, "picture_desc_br_PT.wav". @@ -685,7 +802,7 @@If no localized descriptive sound can be loaded, - Tux Paint will attempt to load the 'default' + Tux Paint will attempt to load the 'default' descriptive sound file. (e.g., "
@@ -696,7 +813,9 @@ noshade>picture_desc.wav")- Stamp Options + + Stamp Options +
@@ -794,7 +913,7 @@Depending on the contents of your stamp, you might - want to have Tux Paint use one of a number of + want to have Tux Paint use one of a number of methods when tinting it. Add one of the following lines to the stamp's data file:
@@ -850,7 +969,7 @@ By default, a stamp can be flipped upside down, shown as a mirror image, or both. This is done using the control buttons below the stamp selector, at the lower - right side of the screen in Tux Paint. + right side of the screen in Tux Paint.@@ -878,10 +997,10 @@
- By default, Tux Paint assumes that your stamp is + By default, Tux Paint assumes that your stamp is sized appropriately for unscaled display on a 608x472 - canvas. This is the original Tux Paint canvas - size, provided by a 640x480 screen. Tux Paint will + canvas. This is the original Tux Paint canvas + size, provided by a 640x480 screen. Tux Paint will then adjust the stamp according to the current canvas size and, if enabled, the user's stamp size controls.
@@ -913,7 +1032,9 @@- Pre-Mirrored and Flipped Images + + Pre-Mirrored and Flipped Images +
@@ -928,7 +1049,7 @@To create a mirrored version of a stamp that you want - Tux Paint to use, rather than mirroring one on its + Tux Paint to use, rather than mirroring one on its own, simply create a second "
.png" or ".svg" graphics file with the same name, except with "_mirror" before the @@ -944,7 +1065,7 @@- As of Tux Paint 0.9.18, you may similarly provide a + As of Tux Paint 0.9.18, you may similarly provide a pre-flipped image with "
_flip" in the name, and/or an image that is both mirrored and flipped, by naming it "_mirror_flip". @@ -964,7 +1085,9 @@ noshade>- Fonts + + Fonts +
@@ -974,13 +1097,13 @@ alt="" align="right">- The fonts used by Tux Paint are TrueType Fonts + The fonts used by Tux Paint are TrueType Fonts (TTF).
Simply place them in the "
@@ -991,7 +1114,9 @@ noshade>fonts" - directory. Tux Paint will load the font and provide + directory. Tux Paint will load the font and provide four different sizes in the 'Letters' selector when using the 'Text' tool.- 'Starters' + + 'Starters' +
@@ -1003,23 +1128,29 @@'Starter' images appear in the 'New' dialog, along with solid color background choices. (Note: In earlier versions - of Tux Paint, they appeared in the 'Open' dialog, + of Tux Paint, they appeared in the 'Open' dialog, together with saved drawings.)
- Unlike pictures drawn in Tux Paint by users and then + Unlike pictures drawn in Tux Paint by users and then opened later, opening a 'starter' creates a new drawing. When you save, the 'starter' image is not overwritten. Additionally, as you edit your new picture, the contents of the original 'starter' affect it.
- Coloring-Book Style + ++ + Coloring-Book Style + +
+- Scene-Style + +The most basic kind of 'starter' is similar to a picture in a coloring book. It's an outline of a shape which you - can then color in and add details to. In Tux Paint, + can then color in and add details to. In Tux Paint, as you draw, type text, or stamp stamps, the outline remains 'above' what you draw. You can erase the parts of the drawing you made, but you can't erase the outline. @@ -1029,7 +1160,7 @@ To create this kind of 'starter' image, simply draw an outlined picture in a paint program, make the rest of the graphic transparent (that will come out as white in - Tux Paint), and save it as a PNG format file. + Tux Paint), and save it as a PNG format file.
@@ -1048,7 +1179,13 @@ JPEG within).
+ + Scene-Style + +
+Along with the 'coloring-book' style overlay, you can @@ -1089,8 +1226,8 @@
The 'starter' images should be the same size as - Tux Paint's canvas. (See the "Loading Other Pictures - into Tux Paint" section of Tux Paint
Place them in the "
starters" directory. - When the 'New' dialog is accessed in Tux Paint, the + When the 'New' dialog is accessed in Tux Paint, the 'starter' images will appear in the screen that appears, after the various solid color choices.Note: 'Starters' can't be saved over from within - Tux Paint, since loading a 'starter' is really like + Tux Paint, since loading a 'starter' is really like creating a new image. (Instead of being blank, though there's already something there to work with.) The 'Save' command simply creates a new picture, like it would if the @@ -1118,7 +1255,7 @@ via a small text file that has the same name as the saved file, but with "
.dat" as the extension. This allows the overlay and background, if any, to continue to - affect the drawing even after Tux Paint has been quit, + affect the drawing even after Tux Paint has been quit, or another picture loaded or started. (In other words, if you base a drawing on a 'starter' image, it will always be affected by it.) @@ -1130,7 +1267,9 @@ noshade>- 'Templates' + + 'Templates' +
@@ -1142,12 +1281,12 @@'Template' images also appear in the 'New' dialog, along with solid color background choices and 'Starters'. (Note: - Tux Paint prior to version 0.9.22 did not have the + Tux Paint prior to version 0.9.22 did not have the 'Template' feature.)
- Unlike pictures drawn in Tux Paint by users and then + Unlike pictures drawn in Tux Paint by users and then opened later, opening a 'template' creates a new drawing. When you save, the 'template' image is not overwritten. Unlike 'starters', there is no immutable 'layer' above the @@ -1168,8 +1307,8 @@
The 'template' images should be the same size as - Tux Paint's canvas. (See the "Loading Other Pictures - into Tux Paint" section of Tux Paint's canvas. (See the "Loading Other Pictures + into Tux Paint" section of README for details on sizing.) If they are not, they will be stretched, without affecting the shape ("aspect ratio"); however some smudging may be @@ -1179,14 +1318,14 @@
Place them in the "
templates" directory. When the 'New' dialog is accessed in - Tux Paint, the 'template' images will appear in the + Tux Paint, the 'template' images will appear in the screen that appears, after the various solid color choices and 'starters'.Note: 'Templates' can't be saved over from within - Tux Paint, since loading a 'template' is really like + Tux Paint, since loading a 'template' is really like creating a new image. (Instead of being blank, though there's already something there to work with.) The 'Save' command simply creates a new picture, like it would if the @@ -1199,7 +1338,7 @@ file, but with "
@@ -1210,21 +1349,23 @@ noshade>.dat" as the extension. This allows the background to continue to be available to the drawing (e.g., when using the 'Eraser' tool) even after - Tux Paint has been quit, or another picture loaded or + Tux Paint has been quit, or another picture loaded or started. (In other words, if you base a drawing on a 'template' image, it will always be affected by it.)- Translations + + Translations +
+- Tux Paint supports numerous languages, thanks to use of the - "gettext" localization library. (See OPTIONS for how to change locales in - Tux Paint.) + Tux Paint supports numerous languages, thanks to use of the + "gettext" localization library. (See OPTIONS + for how to change locales in + Tux Paint.)
- To translate Tux Paint to a new language, copy the + To translate Tux Paint to a new language, copy the translation template file, "
tuxpaint.pot" - (found in Tux Paint's source code, in the folder + (found in Tux Paint's source code, in the folder "src/po/"). Rename the copy as a ".po" file, with an appropriate name for the locale you're translating to (e.g., "es.po" @@ -1237,7 +1378,7 @@ Open the newly-created ".po" file — you can edit in a plain text edtior, such as Emacs, Pico or VI on Linux, or NotePad on Windows. The original English - text used in Tux Paint is listed in lines starting + text used in Tux Paint is listed in lines starting with "msgid". Enter your translations of each of these pieces of text in the empty "msgstr" lines directly below the corresponding "msgid" @@ -1267,13 +1408,13 @@Note: It is best to always work off of the - latest Tux Paint text catalog template + latest Tux Paint text catalog template ("
@@ -1285,7 +1426,7 @@tuxpaint.pot"), since new text is added, and old text is occasionally changed. The text catalog for the - upcoming, unreleased version of Tux Paint can be found - in Tux Paint's CVS repository (see: Tux Paint can be found + in Tux Paint's CVS repository (see: http://www.tuxpaint.org/download/source/cvs/), - and on the Tux Paint website at Tux Paint website at http://www.tuxpaint.org/help/po/.You may send new or edited translation files to - Bill Kendrick, lead developer of Tux Paint, at: + Bill Kendrick, lead developer of Tux Paint, at: bill@newbreedsoftware.com, or post them to the "tuxpaint-i18n" mailing list (see: @@ -1303,7 +1444,7 @@
Note: Additional locale support also requires - additions to Tux Paint's source code + additions to Tux Paint's source code (
/src/i18n.hand/src/i18n.c), and requires updates to theMakefile, to have the ".po" gettext catalog source files @@ -1312,15 +1453,19 @@
+- Alternative Input Methods + + Alternative Input Methods +
+ +- As of version 0.9.17, Tux Paint's "Text" tool can + As of version 0.9.17, Tux Paint's "Text" tool can provide alternative input methods for some languages. For - example, when Tux Paint is running with a Japanese + example, when Tux Paint is running with a Japanese locale, the right [Alt] key can be pressed to cycle between Latin, Romanized Hiragana and Romanized Katakana modes. This allows native characters and words to @@ -1409,11 +1554,14 @@
Note: Additional input method support also requires - additions to Tux Paint's source code + additions to Tux Paint's source code (
/src/im.c), and requires updates to theMakefile, to have the ".im" files installed, for use at runtime.
+