JPH08305863A - Drawing device - Google Patents

Drawing device

Info

Publication number
JPH08305863A
JPH08305863A JP13581995A JP13581995A JPH08305863A JP H08305863 A JPH08305863 A JP H08305863A JP 13581995 A JP13581995 A JP 13581995A JP 13581995 A JP13581995 A JP 13581995A JP H08305863 A JPH08305863 A JP H08305863A
Authority
JP
Japan
Prior art keywords
reference position
data
drawn
continuous
key
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP13581995A
Other languages
Japanese (ja)
Other versions
JP3591051B2 (en
Inventor
Tetsuya Hayashi
林  哲也
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP13581995A priority Critical patent/JP3591051B2/en
Publication of JPH08305863A publication Critical patent/JPH08305863A/en
Application granted granted Critical
Publication of JP3591051B2 publication Critical patent/JP3591051B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Generation (AREA)

Abstract

PURPOSE: To facilitate the drawing of part of a figure and draw various figures by continuously drawing a selected figure while a drawing device is being commanded to perform continuous drawing based upon a set reference position as a start point of drawing. CONSTITUTION: The driving device 100 consists roughly of a CPU1, an input device 2, a ROM3, a RAM4, and a display device 5. In the ROM3, plural figure data (dot coordinate data) on continuous drawing are previously stored; and keys of the input device 2 are operated to select the registration number corresponding to a figure to be drawn and its reference position. Then, when the continuous drawing is specified with a drawing key, the figure corresponding to the registration number is continuously drawn while the continuous drawing based upon the set reference position as the start point of the drawing is specified by command. Therefore, a part of the figure can easily be drawn and various figures can be drawn only by storing a small number of basic figure data in the ROM3.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【産業上の利用分野】本発明は、例えば、線画、イラス
ト風の画像を電子的に作成して表示する電子手帳や電子
玩具等に用いて好適な描画装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a drawing device suitable for use in, for example, an electronic notebook, an electronic toy, or the like for electronically creating and displaying line drawings and illustration-like images.

【0002】[0002]

【従来の技術】近年、イラスト風の似顔絵を電子的に作
成して表示したり、作成した似顔絵像を用紙にプリント
アウトする等の機能を備えた電子手帳や電子玩具が知ら
れている。この種の製品にあっては、「目」、「鼻」、
「口」や「輪郭」等の顔の各部位を描画する各種パーツ
画像データをROMに登録しておき、これらの中から例
えば操作子の操作に応じて各部位毎にパーツ画像データ
を選択して読み出し、ディスプレイ上に画像(例えば、
カラー画像)を形成している。この描画装置は、ユーザ
ーが指定するモードに応じて作成した似顔絵(顔画像)
を記憶手段にセーブしたり、用紙に似顔絵像をプリント
アウトするように構成されている。
2. Description of the Related Art In recent years, electronic notebooks and electronic toys having functions of electronically creating and displaying illustration-like portraits and printing out created portrait images on paper have been known. In this kind of product, "eye", "nose",
Various parts image data for drawing each part of the face such as "mouth" and "outline" is registered in the ROM, and the part image data is selected from these parts for each part according to the operation of the operator, for example. Read out the image on the display (for example,
(Color image) is formed. This drawing device is a portrait (face image) created according to the mode specified by the user.
Is stored in the storage means, or the portrait image is printed out on paper.

【0003】[0003]

【発明が解決しようとする課題】ところで、上述した従
来の描画装置においては、線を要素とする図形(例え
ば、所定の線画マーク、線画で表されるキャラクター)
を作成する場合、予めROMに格納されたパーツ画像デ
ータを複数種選択して読み出し、これらパーツ画像デー
タを組み合せて描画する構成となっていたため、予めR
OMに格納されたパーツ画像データを選択することによ
って限られた図形しか描画することができず、様々の図
形を描画することはできなかった。特に、パーツ画像デ
ータを組み合せる場合、一部のパーツ画像のみROMに
予め格納されたパーツ画像データを用いないで、自由に
作成した他のパーツ画像を用いることはできなかった。
このために様々の図形を描画しようとして、ROMに予
め使うと予測されるべき多種類のパーツ画像データを全
て格納しておくことは、メモリの容量が増加し、パーツ
画像データの数が増えて、選択作業が面倒になる欠点が
生じる。
By the way, in the above-mentioned conventional drawing apparatus, a figure having a line as an element (for example, a predetermined line drawing mark, a character represented by a line drawing).
In the case of creating the image data, a plurality of types of parts image data stored in advance in the ROM are selected and read, and these parts image data are combined and drawn.
By selecting the parts image data stored in the OM, only a limited figure can be drawn, and various figures cannot be drawn. In particular, when combining the part image data, it is not possible to use other part images freely created without using the part image data prestored in the ROM for only some of the part images.
For this reason, when trying to draw various figures and storing all the various types of parts image data that should be predicted to be used in ROM in advance, the memory capacity increases and the number of parts image data increases. However, there is a drawback that the selection work becomes troublesome.

【0004】そこで、本発明は、上述した事情に鑑みて
なされたもので、図形の一部を容易に描画できるととも
に、少ない画像データで様々な図形を描画することので
きる描画装置を提供することを目的としている。
Therefore, the present invention has been made in view of the above circumstances, and provides a drawing apparatus capable of easily drawing a part of a figure and drawing various figures with a small amount of image data. It is an object.

【0005】[0005]

【課題を解決するための手段】上記目的を達成するた
め、請求項1に記載の描画装置は、複数の連続描画の図
形データを記憶するデータ記憶手段と、データ記憶手段
から所定の図形データを選択する図形データ選択手段
と、描画の基準位置を設定する基準位置設定手段と、連
続描画を指令する連続描画指令手段と、基準位置設定手
段によって設定された基準位置を描画の開始点として、
連続描画指令手段により連続描画が指令されている間、
図形データ選択手段によって選択された図形データに対
応する図形を連続して描画する描画手段と、を備えたこ
とを特徴とする。
In order to achieve the above object, a drawing apparatus according to a first aspect of the present invention comprises a data storage unit for storing a plurality of graphic data for continuous drawing, and a predetermined graphic data from the data storage unit. The graphic data selection means to be selected, the reference position setting means for setting the reference position for drawing, the continuous drawing command means for instructing continuous drawing, and the reference position set by the reference position setting means as the drawing start point,
While continuous drawing is instructed by the continuous drawing command means,
Drawing means for continuously drawing a figure corresponding to the figure data selected by the figure data selecting means.

【0006】また、好ましい態様として、例えば請求項
2記載のように、前記データ記憶手段に記憶された図形
データは、描画の基準位置からの複数のドット位置情報
と、このドット位置情報に対して描画の順序を指定する
描画順序情報とからなるようにしてもよい。例えば請求
項3記載のように、前記描画手段は、描画が開始された
後に、前記基準位置設定手段によって設定された基準位
置を移動可能な基準位置移動手段を含み、図形データ選
択手段によって選択された図形データに対応する図形の
基準点を移動させて描画するようにしてもよい。例えば
請求項4記載のように、前記描画手段は、描画速度を変
更する描画速度変更手段を含むようにしてもよい。例え
ば請求項5記載のように、描画手段によって描画された
図形を表示可能な表示手段を、さらに有するようにして
もよい。
As a preferred mode, for example, as described in claim 2, the graphic data stored in the data storage means has a plurality of dot position information from a drawing reference position, and with respect to this dot position information. It may be composed of drawing order information for specifying the drawing order. For example, as described in claim 3, the drawing means includes a reference position moving means capable of moving the reference position set by the reference position setting means after the drawing is started, and is selected by the graphic data selecting means. The reference point of the graphic corresponding to the graphic data may be moved and drawn. For example, as described in claim 4, the drawing means may include drawing speed changing means for changing the drawing speed. For example, as described in claim 5, a display means capable of displaying the figure drawn by the drawing means may be further provided.

【0007】[0007]

【作用】本発明では、データ記憶手段に予め複数の連続
描画の図形データが記憶されており、図形データ選択手
段によって所望の描画しようとする図形データを選択
し、その基準位置を設定する。次いで、連続描画指令手
段により連続描画を入力すると、基準位置設定手段によ
って設定された基準位置を描画の開始点として、連続描
画指令手段により連続描画が指令されている間、図形デ
ータ選択手段によって選択された図形データに対応する
図形が描画手段によって連続して描画される。このと
き、連続描画指令手段により連続描画の期間を変更する
ことにより、同じ図形でも、大きさや全体の印象を変え
て図形を描画することができる。また、基準点を移動さ
せることにより、描画図形を部分的に変形させることも
できる。したがって、データ記憶手段に予め基本となる
少数の図形データを格納しておくだけで、すなわち描画
対象の図形データを全て完成した形で予め格納しておか
なくても、少ない図形データとしながら、図形の一部を
容易に描画できるとともに、様々な図形を描画すること
ができる。
In the present invention, a plurality of graphic data for continuous drawing are stored in advance in the data storage means, and the graphic data selecting means selects the desired graphic data to be drawn and sets the reference position thereof. Next, when continuous drawing is input by the continuous drawing command means, the reference position set by the reference position setting means is used as a starting point of drawing and selected by the graphic data selecting means while continuous drawing is instructed by the continuous drawing command means. A graphic corresponding to the created graphic data is continuously drawn by the drawing means. At this time, by changing the period of continuous drawing by the continuous drawing command means, it is possible to draw a figure even with the same figure while changing the size and overall impression. In addition, the drawing figure can be partially deformed by moving the reference point. Therefore, even if a small number of basic graphic data are stored in advance in the data storage means, that is, even if the graphic data to be drawn is not stored in a completed form in advance, the graphic data can be reduced to a small graphic data. It is possible to easily draw a part of the and various shapes.

【0008】[0008]

【実施例】以下、図面を参照して本発明の実施例につい
て説明する。 A.第1実施例の構成 図1は描画装置100のブロック図である。図1におい
て、描画装置100は大きく分けてCPU1、入力装置
2、ROM3、RAM4および表示装置5により構成さ
れる。CPU1は図形を描画するために必要な制御を行
うもので、描画手段、描画速度変更手段および基準位置
移動手段を構成する。ROM(データ記憶手段)3はC
PU1によってロードされる描画のための各種制御プロ
グラムの他に、複数の連続描画の図形データを記憶して
いる。図形データは、描画の基準位置からの複数のドッ
ト位置情報と、このドット位置情報に対して描画の順序
を指定する描画順序情報とからなる。
Embodiments of the present invention will be described below with reference to the drawings. A. Configuration of First Embodiment FIG. 1 is a block diagram of a drawing apparatus 100. In FIG. 1, the drawing device 100 is roughly divided into a CPU 1, an input device 2, a ROM 3, a RAM 4, and a display device 5. The CPU 1 performs control necessary for drawing a figure, and constitutes drawing means, drawing speed changing means, and reference position moving means. ROM (data storage means) 3 is C
In addition to various control programs for drawing loaded by the PU1, a plurality of graphic data for continuous drawing are stored. The graphic data is composed of a plurality of dot position information from the drawing reference position and drawing order information for designating the drawing order for the dot position information.

【0009】RAM4は図形を描画するために必要な描
画の基準位置、基準位置を移動した場合の移動後の基準
位置、描画速度情報等を記憶しており、ワークエリアと
して用いられる。入力装置2は、例えば十字キー、決定
キー、終了キー等を含んで構成され、ユーザーによって
操作される。そして、入力装置2により描画ツールの選
択、描画図形、描画の基準位置、基準位置を移動すると
きの移動後の基準位置、描画速度の変更入力情報等が入
力されるようになっている。なお、入力装置2には、マ
ウス等のデバイスを含むようにしてもよいし、あるいは
キーボード、テンキー等の他の入力装置に置き換えても
よい。入力装置2およびCPU1は全体として、図形デ
ータ選択手段、基準位置設定手段、連続描画指令手段、
基準位置移動手段を構成する。表示装置(表示手段)5
はCPU1の出力に基づいて描画した図形を表示するも
ので、例えばCRTディスプレイや画像を表示するため
の各種回路(例えば、ビデオ・ディスプレイ・プロセッ
サ:VDP等)を含んで構成される。なお、描画出力は
表示装置5によって外部に表示してもよいが、印刷装置
を備えて描画結果を印刷するようにしてもよい。
The RAM 4 stores a drawing reference position necessary for drawing a figure, a reference position after the reference position is moved, a drawing speed information, etc., and is used as a work area. The input device 2 includes, for example, a cross key, a decision key, an end key, etc., and is operated by the user. Then, the input device 2 inputs selection of a drawing tool, a drawing figure, a reference position for drawing, a reference position after moving the reference position, change input information for drawing speed, and the like. The input device 2 may include a device such as a mouse, or may be replaced with another input device such as a keyboard or a numeric keypad. The input device 2 and the CPU 1 as a whole include graphic data selection means, reference position setting means, continuous drawing command means,
It constitutes a reference position moving means. Display device (display means) 5
Is for displaying a figure drawn based on the output of the CPU 1, and includes, for example, a CRT display and various circuits for displaying an image (for example, a video display processor: VDP). The drawing output may be externally displayed by the display device 5, but a drawing device may be provided to print the drawing result.

【0010】B.第1実施例の動作 次に、上記構成による実施例の動作について図2〜図7
を参照して説明する。以下では、最初に動作概要として
メインルーチンの処理について説明した後、このメイン
ルーチンにおいてコールされる各種ルーチンの動作を説
明して行く。 メインルーチンの動作 まず、この実施例による描画装置100に電源が投入さ
れると、CPU1はROM3から対応する図形描画プロ
グラムを読み出して自身にロードし、図2に示すメイン
ルーチンを実行してステップS10に処理を進める。ス
テップS10では、RAM4に設けられている各種レジ
スタ/フラグ類を初期化する一方、表示装置5における
VDPに対して内部レジスタを初期化するよう指示した
後、初期画面として予め設定された初期メニューを画面
表示する。
B. Operation of First Embodiment Next, the operation of the embodiment having the above configuration will be described with reference to FIGS.
Will be described with reference to. In the following, first, the processing of the main routine will be described as an operation outline, and then the operations of various routines called in the main routine will be described. Operation of Main Routine First, when the drawing apparatus 100 according to this embodiment is powered on, the CPU 1 reads the corresponding graphic drawing program from the ROM 3 and loads it into itself, and executes the main routine shown in FIG. 2 to execute step S10. Proceed to. In step S10, while various registers / flags provided in the RAM 4 are initialized, the VDP in the display device 5 is instructed to initialize the internal registers, and then an initial menu preset as an initial screen is displayed. Display on screen.

【0011】次いで、ステップS12に進むと、描画ツ
ールカーソルの表示を行う。これは、ステップS10の
初期設定において設定された描画ツール基準位置に描画
ツールカーソルを表示するものである。そして、これ以
降は、この描画ツールカーソルの位置を基準として描画
が行われる。次いで、ステップS14でキー取り込み処
理を行う。これは、入力装置2の入力結果を取り込むも
ので、十字キー、決定キー、終了キー等が押されたと
き、そのキー入力が取り込まれる。なお、キー取り込み
処理のステップS14から後述のステップS24の描画
処理までの処理では、次のステップS16の終了キーの
入力が検出されるまでステップS14〜ステップS24
のループが繰り返して実行される。
Next, in step S12, the drawing tool cursor is displayed. This is to display the drawing tool cursor at the drawing tool reference position set in the initial setting of step S10. After that, drawing is performed with the position of the drawing tool cursor as a reference. Next, in step S14, key acquisition processing is performed. This captures the input result of the input device 2, and when the cross key, the decision key, the end key, or the like is pressed, the key input is captured. In the processing from step S14 of the key acquisition processing to the drawing processing of step S24 described later, steps S14 to S24 are performed until the end key input of the next step S16 is detected.
The loop of is repeatedly executed.

【0012】次いで、ステップS16で終了キーが押さ
れたか否かを判別し、押されたときはリターンして描画
処理を終了する。また、終了キーが押されていなけれ
ば、ステップS14のキー取り込み処理の結果からステ
ップS18〜ステップS22の何れに分岐する。描画ツ
ールを変更するキーが選択されたときは、ステップS1
8に分岐し描画ツール変更処理を行う。ここで、描画ツ
ールについて説明すると、図3(a)に示すように描画
ツールとしては、代表的なものに「消しゴム(小)」、
「消しゴム(中)」、「消しゴム(大)」、「連続描
画」、「ペン(小)」、「ペン(中)」、「ペン
(大)」の7つがあり、それぞれ「1」〜「7」のツー
ル番号によって指定できるようになっている。これら以
外の描画ツールを用意してもよいのは勿論である。例え
ば、「消しゴム(小)」=ツール番号「1」は線図を消
しゴムによって消去するもので、実際には線図の色を透
明の色に置き換えていくものである。「連続描画」=ツ
ール番号「4」は線図を連続的に描画するものである。
Next, in step S16, it is determined whether or not the end key has been pressed. If the end key has been pressed, the process returns to end the drawing process. If the end key has not been pressed, the process branches from step S18 to step S22 based on the result of the key acquisition process of step S14. When the key for changing the drawing tool is selected, step S1
The process branches to 8 and the drawing tool change process is performed. Here, the drawing tool will be explained. As shown in FIG. 3A, a typical drawing tool is an "eraser (small)",
There are seven eraser (medium), eraser (large), continuous drawing, pen (small), pen (medium), and pen (large), each of which is "1" to "1". It can be specified by the tool number of "7". Of course, drawing tools other than these may be prepared. For example, “eraser (small)” = tool number “1” erases the diagram with an eraser, and in reality, the color of the diagram is replaced with a transparent color. "Continuous drawing" = tool number "4" is for drawing a line diagram continuously.

【0013】一方、描画ツールを選択した場合、図3
(b)に示すように選択した順序に従って登録番号が付
けられる。例えば、描画ツールとして最初に「5」=
「ペン(小)」を選択したときは、登録番号「1」=描
画ツール番号「5」というように登録される。また、描
画ツールとして2番目に「6」=「ペン(中)」を選択
したときは、登録番号「2」=描画ツール番号「6」と
いうように登録される。以下、同様に描画ツールとして
3番目〜7番目に「7」=「ペン(大)」〜「3」=
「消しゴム(大)」を選択したときは、それぞれ登録番
号「3」=描画ツール番号「7」〜登録番号「7」=描
画ツール番号「3」というように順次登録される。
On the other hand, when the drawing tool is selected, as shown in FIG.
The registration numbers are assigned according to the selected order as shown in (b). For example, first as a drawing tool, "5" =
When "pen (small)" is selected, the registration number "1" = drawing tool number "5" is registered. When “6” = “pen (middle)” is selected as the second drawing tool, the registration number “2” = drawing tool number “6” is registered. Similarly, the third to seventh drawing tools "7" = "pen (large)" to "3" =
When "Eraser (Large)" is selected, the registration numbers "3" = drawing tool number "7" to registration number "7" = drawing tool number "3" are sequentially registered.

【0014】さて、ステップS14のキー取り込み処理
の結果からステップS18の描画ツール変更処理に進ん
だ場合、次の登録番号に登録されている描画ツールに変
更する処理を行う。このとき、登録番号が最大値(例え
ば、登録番号「7」)であるときには、最小登録番号に
戻る。例えば、登録番号=「1」のときに描画ツール変
更処理が行われると、図3(b)に示すように、次の登
録番号「2」に登録されている描画ツール「6」に変更
することになる。ステップS14のキー取り込み処理の
結果からステップS20の描画色変更処理を行う。これ
は、そのとき選択されている描画ツールによって描画さ
れた図形の色を変更するものである。選択されている描
画ツールが選択色によらない場合(例えば、消しゴムツ
ールが選択されている場合)にも、描画色は変更され
る。
When the process proceeds to the drawing tool change process of step S18 from the result of the key acquisition process of step S14, the process of changing to the drawing tool registered with the next registration number is performed. At this time, when the registration number is the maximum value (for example, the registration number "7"), the minimum registration number is restored. For example, when the drawing tool change process is performed when the registration number is “1”, as shown in FIG. 3B, the drawing tool is changed to the drawing tool “6” registered in the next registration number “2”. It will be. The drawing color changing process of step S20 is performed based on the result of the key acquisition process of step S14. This changes the color of the graphic drawn by the drawing tool selected at that time. Even when the selected drawing tool does not depend on the selected color (for example, when the eraser tool is selected), the drawing color is changed.

【0015】ステップS14のキー取り込み処理の結果
からステップS22の描画ツールの移動処理に進んだ場
合、描画カーソルの移動、すなわち描画基準位置の移動
を行う。例えば、入力装置2の十字キーにより上下左右
の何れかの方向にキーが操作された場合、描画カーソル
および描画基準位置はその方向に予め決められた分だけ
移動する。次いで、ステップS24に進み、描画処理を
行う。これは、描画するためのキー(以下、総称して描
画キーという)が押された場合に、その描画キーに対応
した描画を行うものであり、詳細はサブルーチンで後述
する。ステップS18、ステップS20あるいはステッ
プS24の何れの処理を実行すると、その後、ステップ
S14に戻り、上記処理を繰り返す。これにより、図形
の描画が行われる。そして、ステップS14で終了キー
のデータが取り込まれる、描画プログラムを終了する。
When the process moves to the drawing tool moving process in step S22 from the result of the key acquisition process in step S14, the drawing cursor is moved, that is, the drawing reference position is moved. For example, when the key is operated in the up, down, left or right direction by the cross key of the input device 2, the drawing cursor and the drawing reference position move in that direction by a predetermined amount. Next, in step S24, drawing processing is performed. This is to perform drawing corresponding to the drawing key when a drawing key (hereinafter, collectively referred to as a drawing key) is pressed. The details will be described later in a subroutine. When any of the processes of step S18, step S20, or step S24 is executed, the process then returns to step S14 and the above process is repeated. Thereby, the drawing of the figure is performed. Then, the drawing program in which the data of the end key is fetched in step S14 is ended.

【0016】描画処理のサブルーチンの動作 図4はメインルーチンのステップS24における描画処
理のサブルーチンを示すフローチャートである。このサ
ブルーチンが開始されると、まずステップS100で描
画ツールの種類を判別する。描画ツールの種類として
は、図3(a)に示すように、「ペン」、「消しゴム」
および「連続描画」の各ツールがある。ステップS10
0の判別結果から描画ツールがペンツールであるとき
は、ステップS102に進んでペンの大きさに従って描
画を行う。したがって、描画ツールがペンツールである
ときは、ペンの大きさに従って描画が行われる。ステッ
プS102を経ると、メインルーチンにリターンする。
ステップS100で連続描画ツールが選択されてステッ
プS106に進み、ステップS106で描画キーの状態
を判別する。なお、メインルーチンのステップS22で
描画ツールの移動が入力されると、ペン描画の基準位置
を変更して描画が行われる。すなわち、メインルーチン
でステップS14に進み、描画ツールの移動のためのキ
ー操作が行われると、ステップS22に分岐し、次い
で、ステップS24の処理を行う。したがって、描画ツ
ールがペンツールであるときは、ペンの大きさに従って
描画が行われ、そのとき描画ツールの移動が入力される
と、ペン描画の基準位置が変更して、描画が継続され
る。
Operation of Drawing Process Subroutine FIG. 4 is a flowchart showing a subroutine of the drawing process in step S24 of the main routine. When this subroutine is started, first, the type of drawing tool is determined in step S100. As the types of drawing tools, as shown in FIG. 3A, “pen” and “eraser” are used.
And "Continuous drawing" tools. Step S10
If the drawing tool is a pen tool based on the determination result of 0, the process proceeds to step S102 and drawing is performed according to the size of the pen. Therefore, when the drawing tool is a pen tool, drawing is performed according to the size of the pen. After step S102, the process returns to the main routine.
In step S100, the continuous drawing tool is selected, the process proceeds to step S106, and the state of the drawing key is determined in step S106. When the movement of the drawing tool is input in step S22 of the main routine, the pen drawing reference position is changed and drawing is performed. That is, when the key operation for moving the drawing tool is performed in step S14 in the main routine, the process branches to step S22, and then the process of step S24 is performed. Therefore, when the drawing tool is a pen tool, drawing is performed according to the size of the pen, and when movement of the drawing tool is input at that time, the reference position of pen drawing is changed and drawing is continued.

【0017】ステップS100の判別結果から描画ツー
ルが消しゴムであるときは、ステップS104に進んで
消しゴムの大きさに従って描画を消去する。その後、メ
インルーチンにリターンする。したがって、描画ツール
が消しゴムであるときは、消しゴムの大きさに従って描
画が消去される。なお、メインルーチンのステップS2
2で描画ツールの移動が入力されると、消しゴムの基準
位置を変更して描画が消去される。すなわち、メインル
ーチンでステップS14に進み、描画ツールの移動のた
めのキー操作が行われると、ステップS22に分岐し、
次いで、ステップS24の処理を行う。したがって、描
画ツールが消しゴムであるときは、消しゴムの大きさに
従って描画が消去され、そのとき描画ツールの移動が入
力されると、消しゴムの基準位置を変更して描画の消去
が継続される。
If the drawing tool is the eraser based on the determination result of step S100, the process proceeds to step S104 to erase the drawing according to the size of the eraser. Then, the process returns to the main routine. Therefore, when the drawing tool is the eraser, the drawing is erased according to the size of the eraser. In addition, step S2 of the main routine
When the movement of the drawing tool is input in 2, the reference position of the eraser is changed and the drawing is erased. That is, when the key operation for moving the drawing tool is performed in the main routine, the process branches to step S22,
Then, the process of step S24 is performed. Therefore, when the drawing tool is the eraser, the drawing is erased according to the size of the eraser, and when the movement of the drawing tool is input at that time, the reference position of the eraser is changed to continue the erasing of the drawing.

【0018】ステップS100の判別結果から描画ツー
ルが連続描画ツールであるときは、ステップS106に
進んで描画キーの状態を判別する。描画キーの状態とし
ては、以下の3態様がある。 NEW_ON:描画キーが最初に押されたとき NOW_ON:描画キーが継続して押されているとき NEW_OFF:描画キーが離されたとき(描画キーの
終了)
If the drawing tool is a continuous drawing tool as a result of the determination in step S100, the process proceeds to step S106 to determine the state of the drawing key. There are the following three modes as the state of the drawing key. NEW_ON: When the drawing key is first pressed NOW_ON: When the drawing key is continuously pressed NEW_OFF: When the drawing key is released (end of the drawing key)

【0019】描画キーが最初に押されたとき(NEW_
ON)には、ステップS108に進んでデータポインタ
datanumを初期化する。データポインタdatanumは、図形
を連続して描画するためのドット座標データの描画番号
を指定するものである。図形を連続して描画するための
ドット座標データ(すなわち、描画番号)は、図5に示
すように、描画対象の図形(例えば、渦巻き図形)に対
応し、基準位置からの相対座標データによって表され
る。これは、描画対象の図形の種類に応じて予め設定さ
れている。例えば、この例は渦巻き図形に対応するドッ
ト座標データである。データポインタdatanumの初期化
によりdatanum=0となり、図5に示すように基準位置
の座標データ(0、0)を指定することになる。すなわ
ち、datanum=0は基準位置の座標データ(0、0)に
対応する。そして、この基準位置の座標データを描画の
開始点として、以後、図形が描画されていく。この場
合、基準位置(カーソル位置)からのドッド座標データ
は描画順として右方向、下方向に順次読み込まれてい
く。
When the drawing key is first pressed (NEW_
ON), the process proceeds to step S108 and the data pointer
Initialize the datanum. The data pointer datanum designates a drawing number of dot coordinate data for drawing a figure continuously. As shown in FIG. 5, the dot coordinate data (that is, the drawing number) for continuously drawing the figures corresponds to the drawing target figure (for example, a spiral figure) and is represented by relative coordinate data from the reference position. To be done. This is set in advance according to the type of figure to be drawn. For example, this example is dot coordinate data corresponding to a spiral figure. By initializing the data pointer datanum, datanum = 0, and the coordinate data (0, 0) of the reference position is designated as shown in FIG. That is, datanum = 0 corresponds to the coordinate data (0, 0) of the reference position. Then, with the coordinate data of the reference position as the drawing start point, the figure is drawn thereafter. In this case, the dodd coordinate data from the reference position (cursor position) is sequentially read in the drawing direction in the right direction and the downward direction.

【0020】次いで、ステップS110でタイマtimer
を初期化する。タイマtimerは、描画を行う時間を制御
するものである。タイマtimerの初期化によりtimer=0
となり、以後、一定の割合でタイマtimerがアップカウ
ントしていく。次いで、ステップS112でデータポイ
ンタdatanumを基にしてndata分の描画を行う。すなわ
ち、基準位置からndata分だけ描画する。これにより、
指定されたデータ個数分だけメインルーチンのステップ
S22で設定された基準位置からの座標に、ステップS
20で決定した描画色で図形の描画が行われる。次い
で、ステップS114でデータポインタdatanumをndata
だけインクリメント(datanum=datanum+ndata)す
る。これにより、描画番号の値がndataだけ増加し、次
回のルーチンでndata分だけ連続描画されることにな
る。ステップS114を経ると、再びステップS100
に戻ってループを繰り返す。
Then, in step S110, a timer timer
Is initialized. The timer timer controls the time for drawing. Timer = 0 due to initialization of timer timer
After that, the timer timer counts up at a constant rate. Next, in step S112, drawing for ndata is performed based on the data pointer datanum. That is, ndata is drawn from the reference position. This allows
For the designated number of data, the coordinates from the reference position set in step S22 of the main routine are set in step S
A figure is drawn in the drawing color determined in 20. Next, in step S114, the data pointer datanum is set to ndata.
Only increment (datanum = datanum + ndata). As a result, the value of the drawing number is increased by ndata, and ndata will be continuously drawn in the next routine. After step S114, step S100 is performed again.
Return to and repeat the loop.

【0021】次回のループで連続描画を継続していると
きは、ステップS106の判別結果がNOW_ON(描
画キーが継続して押されている状態)となる。したがっ
て、このときはステップS106からステップS116
に進んでタイマtimerが指定時間ntimerに到達したか否
かを判別する。指定時間ntimerは連続描画を行うための
複数のドット座標データを描くのを指定する時間であ
る。ステップS116でタイマtimerが指定時間ntimer
に到達していないときは、ステップS118に進んでタ
イマtimerをインクリメント(timer=timer+1)す
る。これにより、タイマtimerの値が「1」(設定され
た単位時間に相当)だけ増加し、次回のルーチンで
「1」なる単位時間だけドット座標データに応じて連続
描画が継続されることになる。ステップS118を経る
と、ステップS100に戻ってループを繰り返す。
When continuous drawing is being continued in the next loop, the determination result of step S106 is NOW_ON (the drawing key is continuously pressed). Therefore, at this time, steps S106 to S116 are performed.
Go to and determine whether the timer timer has reached the specified time ntimer. The designated time ntimer is a time designated to draw a plurality of dot coordinate data for continuous drawing. In step S116, the timer timer indicates the specified time ntimer
If not, the process proceeds to step S118 to increment the timer timer (timer = timer + 1). As a result, the value of the timer timer is increased by "1" (corresponding to the set unit time), and continuous drawing is continued according to the dot coordinate data for the unit time of "1" in the next routine. . After step S118, the process returns to step S100 to repeat the loop.

【0022】そして、ループを繰り返すうちに、ステッ
プS116でタイマtimerが指定時間ntimerに到達する
と、ステップS110に抜ける。これにより、タイマti
merが初期化されてステップS110に抜ける。これに
より、次の描画番号からの描画が行われる。次いで、ス
テップS112で描画番号を増加し、ステップS114
に進む。このようにして上記ループを繰り返すことによ
り、予め登録された図形の一部を描画したり、全てを連
続描画したりすることができる。
While the loop is being repeated, when the timer timer reaches the designated time ntimer in step S116, the process exits to step S110. This allows the timer ti
The mer is initialized and the process goes to step S110. As a result, drawing is performed from the next drawing number. Next, in step S112, the drawing number is increased, and in step S114
Proceed to. By repeating the above-described loop in this manner, it is possible to draw a part of the previously registered figures or continuously draw all the figures.

【0023】描画を終了するときは、ステップS106
で描画キーを離す。描画キーが離されると(NEW_O
FFのとき)、サブルーチンを終了してメインルーチン
にリターンする。これにより、連続描画が終了する。な
お、メインルーチンのステップS22で描画ツールの移
動が入力されると、連続描画の基準位置を変更して描画
が行われる。すなわち、メインルーチンでステップS1
4に進み、描画ツールの移動のためのキー操作が行われ
ると、ステップS22に分岐し、次いで、ステップS2
4の処理を行う。したがって、描画ツールが連続描画ツ
ールであるときは、描画キーを押している間連続描画が
行われ、そのとき描画キーを離して基準位置の移動が入
力されると、連続描画図形の基準位置を変更して連続描
画が継続される。
To end drawing, step S106
Release the drawing key with. When the drawing key is released (NEW_O
In the case of FF), the subroutine is terminated and the process returns to the main routine. This completes the continuous drawing. When the movement of the drawing tool is input in step S22 of the main routine, the drawing is performed by changing the reference position for continuous drawing. That is, step S1 in the main routine
4, the key operation for moving the drawing tool is performed, the process branches to step S22, and then step S2.
Process 4 is performed. Therefore, when the drawing tool is a continuous drawing tool, continuous drawing is performed while the drawing key is pressed, and when the drawing key is released and the reference position movement is input at that time, the reference position of the continuous drawing figure is changed. Then, continuous drawing is continued.

【0024】図6は連続描画の一例を示す図であり、特
に指定時間ntimer毎のドッド座標データ個数を「4」と
した例である。まず、最初は図6(a)に示すように基
準位置を開始座標としてドッド座標データ個数=「4」
だけ描画される。次いで、図6(b)に示すように継続
してドッド座標データ個数=「4」だけ連続して描画さ
れる。以後、同様にして図6(c)、図6(d)に示す
ように、何れもそれぞれドッド座標データ個数=「4」
だけ描画されていく。このようにして、ntimer=「4」
のときの描画遷移が行われる。図7は真ん中の開始点を
基準位置として「渦巻き模様」の図形を連続描画する例
である。図7に示すように、描画キーを押している間、
ドッド座標データ個数=「4」だけ座標データが増加し
ながら、連続的に描画されていき、最終的に「渦巻き模
様」の図形が完成して表示される。
FIG. 6 is a diagram showing an example of continuous drawing, in which the number of dodd coordinate data for each designated time ntimer is set to "4". First, as shown in FIG. 6A, the number of dodd coordinate data is “4” with the reference position as the start coordinate.
Only drawn. Next, as shown in FIG. 6B, the number of dodd coordinate data = “4” is continuously drawn. After that, similarly, as shown in FIGS. 6C and 6D, the number of dodd coordinate data = “4” in each case.
Only drawn. In this way, ntimer = "4"
When, the drawing transition is performed. FIG. 7 shows an example in which a "spiral pattern" is continuously drawn using the center start point as a reference position. As shown in FIG. 7, while pressing the drawing key,
The coordinate data is increased by the number of dodd coordinate data = “4”, and the dots are continuously drawn. Finally, the “spiral pattern” figure is completed and displayed.

【0025】このように本実施例では、ROM3に予め
複数の連続描画の図形データ(ドッド座標データ)が記
憶されており、入力装置2のキーを操作して所望の描画
しようとする図形に対応する登録番号を選択し、その基
準位置を設定する。次いで、描画キーで連続描画を指定
すると、設定された基準位置を描画の開始点として、連
続描画が指令されている間、登録番号に対応する図形が
連続して描画される。したがって、ROM3に予め基本
となる少数の図形データ(例えば、描画のためのドッド
座標データ)を格納しておくだけで、すなわち描画対象
の図形データを全て完成した形で予め格納しておかなく
ても、少ない図形データとしながら、図形の一部を容易
に描画できるとともに、様々な図形を描画することがで
きる。
As described above, in the present embodiment, the ROM 3 stores in advance a plurality of graphic data (dot coordinate data) for continuous drawing, and the keys of the input device 2 are operated to correspond to the desired graphic to be drawn. Select the registration number that you want to set and set its reference position. Next, when continuous drawing is designated by the drawing key, the figure corresponding to the registration number is continuously drawn while the continuous drawing is instructed with the set reference position as the starting point of drawing. Therefore, it is only necessary to store a small number of basic graphic data (for example, the dot coordinate data for drawing) in the ROM 3 in advance, that is, the graphic data to be drawn need not be stored in a completed form in advance. Also, it is possible to easily draw a part of the figure and draw various figures with a small amount of figure data.

【0026】例えば、「渦巻き模様」の図形であれば、
大きい渦巻き図形、あるいは小さい渦巻き図形を自由に
描画できる。また、描画の基準位置点を移動させること
により、描画図形を部分的に変形させることができる。
その結果、様々な図形を少ない図形データで描画するこ
とができる。したがって、様々の図形を描画しようとす
る場合でも、ROM3に予め多種類のパーツ画像データ
を格納しておく必要がなく、メモリ容量の増加を招いた
り、パーツ画像データの数が増えて選択作業が面倒にな
ったりする欠点を解消することができる。
For example, if the figure is a "swirl pattern",
Large swirl figures or small swirl figures can be drawn freely. Further, the drawing figure can be partially deformed by moving the drawing reference position point.
As a result, various figures can be drawn with less figure data. Therefore, even when various figures are to be drawn, it is not necessary to store various kinds of parts image data in the ROM 3 in advance, which leads to an increase in memory capacity and an increase in the number of parts image data, which makes selection work difficult. It is possible to eliminate the drawbacks such as being troublesome.

【0027】C.第2実施例 図8は本発明の第2実施例を示す図である。本実施例は
描画速度を変更可能な例である。第2実施例の描画プロ
グラムではサブルーチンにおけるステップS112の処
理内容が前記実施例と異なり、他は第1実施例と同様で
省略する。また、ハード的な構成では、入力装置2に速
度変更キーが設けられている点が異なる。速度変更キー
には、速度を速くするキーと、速度を遅くするキーの2
種類がある。図8はサブルーチンにおけるステップS1
12の描画番号増加処理の詳細なルーチンを示すフロー
チャートである。図8のルーチンが開始されると、まず
ステップS200で速度変更キーの状態を判別する。速
度変更キーが押されていなければ、ステップS202に
ジャンプして第1実施例のステップS112と同様の処
理(データポインタdatanumを基にしてndata分の描画を
行う処理)を実行する。その後、第1実施例のプログラ
ムと同様のステップS114にリターンする。したがっ
て、このときは描画速度に変更はない。
C. Second Embodiment FIG. 8 is a diagram showing a second embodiment of the present invention. The present embodiment is an example in which the drawing speed can be changed. In the drawing program of the second embodiment, the processing content of step S112 in the subroutine is different from that of the above-described embodiment, and the rest is the same as that of the first embodiment, and will be omitted. Further, the hardware configuration is different in that the input device 2 is provided with a speed change key. There are two speed change keys, one to increase the speed and one to decrease the speed.
There are types. FIG. 8 shows step S1 in the subroutine
It is a flowchart which shows the detailed routine of the drawing number increase process of 12. When the routine of FIG. 8 is started, first, in step S200, the state of the speed change key is determined. If the speed change key has not been pressed, the process jumps to step S202 and the same process as in step S112 of the first embodiment (the process of drawing ndata based on the data pointer datanum) is executed. After that, the process returns to step S114 similar to the program of the first embodiment. Therefore, the drawing speed does not change at this time.

【0028】ステップS200で速度変更キーのうち、
速度を速くするキーが押されていると、ステップS20
4に分岐して時間間隔ntimerがタイマtimerの単位時間T
に等しいか否かを判別する。ここで、描画速度を変更す
るパラメータには、描画を行う時間間隔と、1回に描画
するドット座標データの個数とがある。どちらを変えて
も、描画速度を変更することが可能である。ステップS
204の判別結果から時間間隔ntimerがタイマtimerの
単位時間Tに等しくなければ、ステップS206に進ん
で時間間隔ntimerを小さくする(すなわち、減らしてい
く:ステップS206ではtimer−subと表示する)。こ
れにより、時間間隔ntimerが単位時間Tより小さくなっ
て、描画が行われる時間間隔が短くなる。したがって、
描画速度が速くなる。ステップS206を経ると、ステ
ップS202に進んでデータポインタdatanumを基にし
てndata分の描画を行う処理を実行し、その後、リター
ンしループを繰り返す。
Of the speed change keys in step S200,
If the speed-up key is pressed, step S20
It branches to 4 and the time interval ntimer is the unit time T of the timer timer.
It is determined whether or not Here, the parameters for changing the drawing speed include a time interval for drawing and the number of dot coordinate data drawn at one time. It is possible to change the drawing speed by changing either one. Step S
If the time interval ntimer is not equal to the unit time T of the timer timer from the determination result of 204, the process proceeds to step S206 to decrease the time interval ntimer (that is, decrease: displayed as timer-sub in step S206). As a result, the time interval ntimer becomes smaller than the unit time T, and the time interval for drawing is shortened. Therefore,
The drawing speed becomes faster. After step S206, the process proceeds to step S202 to execute a process for drawing ndata based on the data pointer datanum, and then returns and repeats the loop.

【0029】前述の動作を続けて、ステップS204の
判別結果から時間間隔ntimerがタイマtimerの単位時間T
に等しくなった場合には、ステップS208に進んで1
回に描画するドット座標データの個数(以下、単位描画
ドット座標データ数という)ndataを多くする(すなわ
ち、増加していく:ステップS206ではndata+addと
表示する)。これにより、1回に描画するドット座標デ
ータの個数ndataが通常より多くなって、単位時間当り
の描画ドット座標データ数が増える。したがって、描画
速度が速くなる。ステップS208を経ると、ステップ
S202に進んでデータポインタdatanumを基にしてnda
ta分の描画を行う処理を実行し、その後、リターンしル
ープを繰り返す。
Continuing the above-mentioned operation, the time interval ntimer indicates the unit time T of the timer timer from the determination result of step S204.
If it is equal to, go to step S208 and set 1
The number of dot coordinate data to be drawn at once (hereinafter referred to as the number of unit drawing dot coordinate data) ndata is increased (that is, increased: displayed in step S206 as ndata + add). As a result, the number of dot coordinate data ndata drawn at one time becomes larger than usual, and the number of drawing dot coordinate data per unit time increases. Therefore, the drawing speed is increased. After step S208, the process proceeds to step S202, where nda is based on the data pointer datanum.
A process for drawing ta is executed, and then the process returns and the loop is repeated.

【0030】ステップS200で速度変更キーのうち、
速度を遅くするキーが押されていると、ステップS21
0に分岐して描画個数ndataが単位描画個数Nに等しいか
否かを判別する。描画個数ndataとは、1回(1回のサ
ブルーチンの実行)に描画するドット座標データの個数
である。単位描画個数Nは所定値に設定されるもので、
例えばN=1でもよい。ステップS210の判別結果か
ら描画個数ndataが単位描画個数Nに等しくなければ、ス
テップS212に進んで1回に描画するドット座標デー
タの個数(すなわち、単位描画ドット座標データ数とい
う)ndatを小さくする(すなわち、減らしていく:ステ
ップS212ではndata−subと表示する)。これによ
り、1回に描画するドット座標データの個数ndataが通
常より小さくなって、単位時間当りの描画ドット座標デ
ータ数が減る。したがって、描画速度が遅くなる。
Of the speed change keys in step S200,
If the key to slow down the speed is pressed, step S21
The process branches to 0 to determine whether the drawing number ndata is equal to the unit drawing number N. The drawing number ndata is the number of dot coordinate data drawn at one time (execution of one subroutine). The unit drawing number N is set to a predetermined value,
For example, N = 1 may be used. If the drawing number ndata is not equal to the unit drawing number N based on the determination result of step S210, the process proceeds to step S212, and the number of dot coordinate data to be drawn at one time (that is, the unit drawing dot coordinate data number) ndat is decreased ( That is, decrease: display as ndata-sub in step S212). As a result, the number ndata of dot coordinate data drawn at one time becomes smaller than usual, and the number of drawing dot coordinate data per unit time decreases. Therefore, the drawing speed becomes slow.

【0031】前述の動作を続けることにより、ステップ
S210の判別結果が描画個数ndataが単位描画個数Nに
等しくなった場合は、ステップS214に進んで時間間
隔ntimerを大きくする(すなわち、増やしていく:ステ
ップS214ではtimer+addと表示する)。これによ
り、時間間隔ntimerが大きくなって、描画が行われる時
間間隔が長くなる。したがって、描画速度が遅くなる。
ステップS214を経ると、ステップS202に進んで
データポインタdatanumを基にしてndata分の描画を行う
処理を実行し、その後、リターンしループを繰り返す。
If the result of determination in step S210 shows that the drawing number ndata is equal to the unit drawing number N by continuing the above operation, the process proceeds to step S214 to increase the time interval ntimer (that is, increase: In step S214, it is displayed as timer + add). As a result, the time interval ntimer becomes large and the time interval at which drawing is performed becomes long. Therefore, the drawing speed becomes slow.
After step S214, the process advances to step S202 to execute a process for drawing ndata worth based on the data pointer datanum, and then returns and the loop is repeated.

【0032】このように第2実施例では、連続描画ツー
ルのキーを押して図形を順次描画している間に、そのキ
ーを押しながら、同時に速度変更キーを押し続けると、
描画の時間間隔ntimerあるいは描画個数ndataが変化し
て描画速度を変化させることができる。そして、これら
速度変更キーの処理が終了した後に、決定された描画個
数分のドット座標データに基づいて図形が描画される。
したがって、多量の描画データがあるときは描画速度を
速くして全体の描画時間を短縮することができる。ま
た、図形の一部のみを描画したくて途中で描画を止めた
いときは描画速度を遅くして正確に図形の一部を描画す
ることができる。
As described above, in the second embodiment, while the key of the continuous drawing tool is pressed to sequentially draw a figure, if the speed change key is simultaneously pressed while pressing the key,
The drawing speed can be changed by changing the drawing time interval ntimer or the drawing number ndata. Then, after the processing of these speed change keys is finished, a figure is drawn based on the dot coordinate data of the decided number of drawing.
Therefore, when there is a large amount of drawing data, the drawing speed can be increased to shorten the entire drawing time. Further, when it is desired to draw only a part of the figure and to stop the drawing in the middle of the drawing, the drawing speed can be reduced to draw the part of the figure accurately.

【0033】D.変形例 上記各実施例ではドット座標データを指定個数分だけ描
画しているが、これに限るものではない。例えば、入力
装置に指定個数分だけ直線を描画する直線キーを設け、
この直線キーを押している間は、予め用意(メモリに記
憶)された直線座標データから指定個数分だけ直線を描
画するようにしてもよい。このとき、基準位置からの直
線座標データを順に描画していく処理が行われる。この
描画処理では、一定時間毎に直線座標データを一定個数
の直線だけ描画する。このような構成にすると、1つの
キーを押し続けると、押し続ける間だけ、その図形を指
定個数分だけ直線で描画していくことができる。そし
て、基準位置を移動させながら描画した場合、描画され
た図形は途中で途切れることなく、描画されるようにな
るという効果がある。なお、変形例の描画処理におい
て、一定時間毎に直線座標データを一定個数の直線だけ
描画するとき、入力装置の速度変更キーによって描画時
間間隔又は描画個数を変更して描画速度を変更するよう
にしてもよい。そのようにすると、多量の直線描画デー
タがあるときは描画速度を速くして全体の描画時間を短
縮することができる。また、直線図形の一部のみを描画
したくて途中で描画を止めたいときは描画速度を遅くし
て正確に直線図形の一部を描画することができる。
D. Modifications In each of the above embodiments, the specified number of dot coordinate data are drawn, but the present invention is not limited to this. For example, the input device is provided with straight line keys for drawing a specified number of straight lines,
While this straight line key is being pressed, a specified number of straight lines may be drawn from the straight line coordinate data prepared in advance (stored in the memory). At this time, a process of sequentially drawing the linear coordinate data from the reference position is performed. In this drawing process, only a fixed number of straight lines are drawn as the linear coordinate data at regular time intervals. With such a configuration, if one key is held down, the designated number of figures can be drawn in a straight line only while the key is held down. When the drawing is performed while moving the reference position, there is an effect that the drawn figure is drawn without interruption in the middle. In the drawing process of the modified example, when drawing a fixed number of straight line coordinate data every fixed time, the drawing time interval or the number of drawn lines is changed by the speed change key of the input device to change the drawing speed. May be. By doing so, when there is a large amount of straight line drawing data, the drawing speed can be increased and the entire drawing time can be shortened. Further, when it is desired to draw only a part of a straight line figure and want to stop the drawing in the middle of the drawing, the drawing speed can be reduced to draw a part of the straight line figure accurately.

【0034】[0034]

【発明の効果】本発明によれば、予め複数の連続描画の
図形データ(例えば、ドット座標データ)を記憶してお
き、入力装置のキーを操作して所望の描画しようとする
図形のデータを選択し、その基準位置を設定し、連続描
画を指定すると、設定された基準位置を描画の開始点と
して連続描画が指令されている間、選択した図形を連続
して描画するようにしているので、以下の効果を得るこ
とができる。 (1)データ記憶手段に予め基本となる少数の図形デー
タ(例えば、描画のためのドッド座標データ)を格納し
ておくだけで、すなわち描画対象の図形データを全て完
成した形で予め格納しておかなくても、少ない図形デー
タとして記憶しておくだけで、図形の一部を容易に描画
できるとともに、様々な図形を描画することができる。 (2)例えば、「渦巻き模様」の図形であれば、大きい
渦巻き図形、あるいは小さい渦巻き図形を自由に描画で
きる。 (3)描画の基準位置を移動させることにより、描画図
形を部分的に変形させることができる。その結果、様々
な図形を少ない図形データで描画することができる。 (4)様々の図形を描画しようとする場合でも、データ
記憶手段に予め多種類のパーツ画像データを格納してお
く必要がなく、メモリ容量の増加を招いたり、パーツ画
像データの数が増えて選択作業が面倒になったりする欠
点を解消することができる。
According to the present invention, a plurality of graphic data for continuous drawing (for example, dot coordinate data) are stored in advance, and the data of the desired graphic to be drawn by operating the keys of the input device. If you select, set the reference position, and specify continuous drawing, the selected figure is drawn continuously while the continuous drawing is instructed with the set reference position as the starting point of drawing. The following effects can be obtained. (1) Only a small number of basic graphic data (for example, Dodd coordinate data for drawing) is stored in the data storage means in advance, that is, all graphic data to be drawn are stored in a completed form in advance. Even if it is not necessary, a part of the figure can be easily drawn and various figures can be drawn simply by storing as a small amount of figure data. (2) For example, in the case of a “swirl pattern” figure, a large swirl figure or a small swirl figure can be freely drawn. (3) The drawing figure can be partially deformed by moving the drawing reference position. As a result, various figures can be drawn with less figure data. (4) Even when trying to draw various figures, it is not necessary to store various kinds of parts image data in the data storage means in advance, which leads to an increase in memory capacity or an increase in the number of parts image data. It is possible to eliminate the drawback that the selection work is complicated.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明による描画装置の第1実施例のブロック
図である。
FIG. 1 is a block diagram of a first embodiment of a drawing apparatus according to the present invention.

【図2】同実施例における描画装置のメインルーチンを
示すフローチャートである。
FIG. 2 is a flowchart showing a main routine of the drawing apparatus in the embodiment.

【図3】同実施例の描画ツールの一例を示す図である。FIG. 3 is a diagram showing an example of a drawing tool of the embodiment.

【図4】同実施例の描画処理のサブルーチンを示すフロ
ーチャートである。
FIG. 4 is a flowchart showing a subroutine of drawing processing of the same embodiment.

【図5】同実施例の図形を描画するときのドット座標デ
ータの一例を示す図である。
FIG. 5 is a diagram showing an example of dot coordinate data when drawing a graphic according to the embodiment.

【図6】同実施例の連続描画の一例を示す図である。FIG. 6 is a diagram showing an example of continuous drawing according to the embodiment.

【図7】同実施例の「渦巻き模様」の図形を連続描画す
る一例を示す図である。
FIG. 7 is a diagram showing an example of continuously drawing a “swirl pattern” figure according to the embodiment.

【図8】本発明の第2実施例における描画処理のサブル
ーチンを示すフローチャートである。
FIG. 8 is a flowchart showing a subroutine of drawing processing in the second embodiment of the present invention.

【符号の説明】[Explanation of symbols]

1 CPU(描画手段、描画速度変更手段、基準位置移
動手段) 2 入力装置 3 ROM(データ記憶手段) 4 RAM 5 表示装置(表示手段) 100 描画装置
1 CPU (drawing means, drawing speed changing means, reference position moving means) 2 Input device 3 ROM (data storage means) 4 RAM 5 Display device (display means) 100 Drawing device

Claims (5)

【特許請求の範囲】[Claims] 【請求項1】 複数の連続描画の図形データを記憶する
データ記憶手段と、 データ記憶手段から所定の図形データを選択する図形デ
ータ選択手段と、 描画の基準位置を設定する基準位置設定手段と、 連続描画を指令する連続描画指令手段と、 基準位置設定手段によって設定された基準位置を描画の
開始点として、連続描画指令手段により連続描画が指令
されている間、図形データ選択手段によって選択された
図形データに対応する図形を連続して描画する描画手段
と、を備えたことを特徴とする描画装置。
1. A data storage means for storing a plurality of consecutive drawing graphic data, a graphic data selecting means for selecting a predetermined graphic data from the data storing means, and a reference position setting means for setting a drawing reference position. The continuous drawing command means for instructing continuous drawing and the reference position set by the reference position setting means as the starting point of drawing are selected by the graphic data selecting means while the continuous drawing is instructed by the continuous drawing instruction means. A drawing device comprising: a drawing unit that continuously draws a graphic corresponding to graphic data.
【請求項2】 前記データ記憶手段に記憶された図形デ
ータは、描画の基準位置からの複数のドット位置情報
と、このドット位置情報に対して描画の順序を指定する
描画順序情報とからなることを特徴とする請求項1記載
の描画装置。
2. The graphic data stored in the data storage means comprises a plurality of dot position information from a drawing reference position and drawing order information for specifying a drawing order for the dot position information. The drawing apparatus according to claim 1, wherein:
【請求項3】 前記描画手段は、描画が開始された後
に、前記基準位置設定手段によって設定された基準位置
を移動可能な基準位置移動手段を含み、 前記図形データ選択手段によって選択された図形データ
に対応する図形の基準点を移動させて描画することを特
徴とする請求項1記載の描画装置。
3. The drawing data includes a reference position moving device capable of moving the reference position set by the reference position setting device after the drawing is started, and the graphic data selected by the graphic data selecting device. The drawing apparatus according to claim 1, wherein drawing is performed by moving a reference point of a graphic corresponding to.
【請求項4】 前記描画手段は、描画速度を変更する描
画速度変更手段を含むことを特徴とする請求項1記載の
描画装置。
4. The drawing apparatus according to claim 1, wherein the drawing unit includes a drawing speed changing unit that changes a drawing speed.
【請求項5】 前記描画手段によって描画された図形を
表示可能な表示手段を、さらに有することを特徴とする
請求項1乃至4の何れかに記載の描画装置。
5. The drawing apparatus according to claim 1, further comprising a display unit capable of displaying a figure drawn by the drawing unit.
JP13581995A 1995-05-08 1995-05-08 Drawing equipment Expired - Fee Related JP3591051B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP13581995A JP3591051B2 (en) 1995-05-08 1995-05-08 Drawing equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP13581995A JP3591051B2 (en) 1995-05-08 1995-05-08 Drawing equipment

Publications (2)

Publication Number Publication Date
JPH08305863A true JPH08305863A (en) 1996-11-22
JP3591051B2 JP3591051B2 (en) 2004-11-17

Family

ID=15160551

Family Applications (1)

Application Number Title Priority Date Filing Date
JP13581995A Expired - Fee Related JP3591051B2 (en) 1995-05-08 1995-05-08 Drawing equipment

Country Status (1)

Country Link
JP (1) JP3591051B2 (en)

Also Published As

Publication number Publication date
JP3591051B2 (en) 2004-11-17

Similar Documents

Publication Publication Date Title
US5442378A (en) Animation image constructing apparatus
US5444833A (en) Graphic editing apparatus with grid size selection
JPH08305863A (en) Drawing device
JP3427050B2 (en) Document information processing apparatus and document information processing method
JP3522399B2 (en) Information processing equipment
JPH0262265A (en) Manual scanning type printing apparatus
JPH1055431A (en) Image processor
JP2695257B2 (en) Data processing device
JP2695082B2 (en) Electronic device with graph shadowing function
JP2611198B2 (en) Image processing device
JPS62129887A (en) Character processor
JP2893277B2 (en) Electronic filling device with image data enlargement / reduction processing function
JP3253136B2 (en) Information processing method and apparatus
JP2753543B2 (en) Graphic output device
JP2721348B2 (en) Image processing device
JP2000251088A (en) System and method for plotting
JPS6355097B2 (en)
JP3754714B2 (en) Document processing method and apparatus
JP2001046737A (en) Recording medium with recorded game program data including character transformation program for changing image of character, and game, program data including character transformation program for changing image of character
JPH09319536A (en) Character input device
JPH04191972A (en) Editing system for character attribute
JPS6385978A (en) Graphic editing device
JPH0569235B2 (en)
JPH09326038A (en) Contour plotting device
JPH08305822A (en) Image output device

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20040419

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040427

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040514

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20040803

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040816

R150 Certificate of patent (=grant) or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090903

Year of fee payment: 5

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100903

Year of fee payment: 6

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100903

Year of fee payment: 6

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20110903

Year of fee payment: 7

FPAY Renewal fee payment (prs date is renewal date of database)

Free format text: PAYMENT UNTIL: 20120903

Year of fee payment: 8

LAPS Cancellation because of no payment of annual fees