JPH10105731A - Method and device for plotting picture, and medium with picture plotting program recorded - Google Patents

Method and device for plotting picture, and medium with picture plotting program recorded

Info

Publication number
JPH10105731A
JPH10105731A JP25617196A JP25617196A JPH10105731A JP H10105731 A JPH10105731 A JP H10105731A JP 25617196 A JP25617196 A JP 25617196A JP 25617196 A JP25617196 A JP 25617196A JP H10105731 A JPH10105731 A JP H10105731A
Authority
JP
Japan
Prior art keywords
color
image
designated
matches
colors
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.)
Pending
Application number
JP25617196A
Other languages
Japanese (ja)
Inventor
Jun Hosoda
潤 細田
Kazuo Ogura
和夫 小倉
Koichiro Oki
広一郎 太期
Shohei Sakamoto
昇平 坂本
Ryuji Usami
隆二 宇佐美
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 JP25617196A priority Critical patent/JPH10105731A/en
Publication of JPH10105731A publication Critical patent/JPH10105731A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To realize a picture plotting device, a picture plotting method, and a medium with a picture plotting program recorded which prevent parts other than a desired part from being plotted by overwrite only with easy designation operation. SOLUTION: A mouse 1 is turned on in a picture part to be subjected to spray paint, to preliminarily set the color of this part to 'a designated color'. When the part to be painted is traced by drag operation, only dots coinciding with the designated color in the traced part are changed to a specific color like a spray. Therefore, the conventional mask designation operation is unnecessary, and parts other than a desired part are prevented from being plotted by overwrite only with simple designation operation.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、例えば、イラスト
風の似顔絵や塗り絵を電子的に作成して表示する電子玩
具などに用いて好適な画像描画装置および画像描画方法
並びに画像描画プログラムを記録した媒体に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention records an image drawing apparatus, an image drawing method, and an image drawing program suitable for use in, for example, an electronic toy for electronically creating and displaying an illustration-like portrait or coloring book. Regarding the medium.

【0002】[0002]

【従来の技術】近年、イラスト風の似顔絵や塗り絵を電
子的に作成して表示する電子玩具が知られている。この
種の製品にあっては、例えば、ビットマップ画面上に線
画で描かれた閉曲線の内部を指定色で塗り潰したり、ス
プレーを吹き付けた状態やハケで描いた形態を表現する
各種のペイントツールによって描画する画像描画装置が
具備されている。
2. Description of the Related Art In recent years, an electronic toy for electronically creating and displaying an illustration-like portrait or coloring book has been known. In this type of product, for example, various paint tools that fill the inside of a closed curve drawn with a line drawing on a bitmap screen with a specified color, express the state of spraying or drawing with a brush are used An image drawing device for drawing is provided.

【0003】[0003]

【発明が解決しようとする課題】さて、このような画像
描画装置において、例えば、スプレーを吹き付けた状態
を表現するペイントツールを用いた場合、所望の箇所以
外に誤ってスプレー描画してしまうことが多い。その
為、所望箇所以外にスプレーの飛沫が上書描画されない
ようにするマスク機能を備えるものもあるが、この機能
を使う際にはスプレー描画したくない箇所をその都度マ
スク指定しなければならず、特に、マスク指定する箇所
の形状が複雑であると操作が煩雑になり操作性に欠ける
という問題がある。
In such an image drawing apparatus, for example, when a paint tool for expressing a sprayed state is used, a spray drawing may be erroneously made at a place other than a desired place. Many. For this reason, some models have a mask function that prevents spray droplets from being overwritten in areas other than the desired areas.However, when using this function, you must specify a mask for each area that you do not want to spray-draw. In particular, if the shape of the portion designated by the mask is complicated, the operation becomes complicated and the operability is poor.

【0004】そこで、本発明は、このような事情に鑑み
てなされたもので、その第1の目的は、簡易な指定操作
だけで所望箇所以外の上書描画を防止することができる
画像描画装置および画像描画方法を提供することにあ
る。また、第2の目的は、簡易な指定操作だけで所望箇
所以外の上書描画を防止することができる画像描画プロ
グラムを記録した媒体を提供することにある。
Accordingly, the present invention has been made in view of such circumstances, and a first object of the present invention is to provide an image drawing apparatus capable of preventing overwriting other than a desired portion with a simple designation operation. And an image drawing method. It is a second object of the present invention to provide a medium in which an image drawing program that can prevent overwriting other than a desired portion with a simple designation operation is recorded.

【0005】[0005]

【課題を解決するための手段】上記目的を達成するた
め、請求項1に記載の画像描画装置では、画面上に表示
される画像の所定位置を指定する位置指定手段と、この
位置指定手段によって画像中で指定された位置の色を、
描画対象色に指定する色指定手段と、この色指定手段が
描画対象色を指定した後、前記位置指定手段によって描
画位置が指定された場合、その指定された描画位置の色
が前記描画対象色に一致するか否かを判断し、一致した
時にのみ当該描画位置の色を特定色で描画する描画手段
とを具備することを特徴としている。
In order to achieve the above object, in an image drawing apparatus according to the present invention, there is provided a position designation means for designating a predetermined position of an image displayed on a screen, and the position designation means. The color at the position specified in the image,
A color designating means for designating a drawing target color, and when the drawing position is designated by the position designation means after the color designating means designates the drawing target color, the color of the designated drawing position is the drawing target color And a drawing unit that determines whether or not the drawing position matches the drawing position and draws the color at the drawing position with a specific color only when the drawing position matches.

【0006】また、請求項2に記載の画像描画方法で
は、画面上に表示される画像の所定位置を指定する位置
指定ステップと、この位置指定ステップによって画像中
で指定された位置の色を、描画対象色に指定する色指定
ステップと、この色指定ステップが描画対象色を指定し
た後、前記位置指定ステップによって描画位置が指定さ
れた場合、その指定された描画位置の色が前記描画対象
色に一致するか否かを判断し、一致した時にのみ当該描
画位置の色を特定色で描画する描画ステップとを具備す
ることを特徴とする。
Further, in the image drawing method according to the present invention, a position specifying step for specifying a predetermined position of the image displayed on the screen, and a color of the position specified in the image by the position specifying step are defined by: A color specifying step for specifying a drawing target color, and if the drawing position is specified by the position specifying step after the color specifying step specifies the drawing target color, the color of the specified drawing position is the drawing target color. And a drawing step of determining whether or not the drawing position matches the drawing position, and drawing the color at the drawing position in a specific color only when the drawing position matches.

【0007】さらに、請求項3に記載の画像描画プログ
ラムを記録した媒体では、画面上に表示される画像中に
おいて描画しようとする位置の色を描画対象色に指定し
ておき、描画する位置が定められた場合にその定められ
た描画位置の色が前記描画対象色に一致するか否かを判
断し、一致した時にのみ当該描画位置の色を特定色で描
画することを特徴としている。
Further, in the medium storing the image drawing program according to the third aspect, the color of the position to be drawn in the image displayed on the screen is designated as the drawing target color, and the drawing position is determined. When the color is determined, it is determined whether or not the color at the determined drawing position matches the drawing target color, and only when the color matches, the color at the drawing position is drawn with a specific color.

【0008】請求項4に記載の画像描画装置では、画面
上に表示される画像の所定位置を指定する位置指定手段
と、この位置指定手段によって画像中で指定された位置
の色を、描画対象色に指定すると共に、この描画対象色
に類似した複数の類似色を設定する色設定手段と、この
色設定手段が描画対象色を指定した後、前記位置指定手
段によって描画位置が指定された場合、その指定された
描画位置の色が前記描画対象色および前記複数の類似色
のいずかに一致するか否かを判断し、いずれかの色と一
致した時にのみ当該描画位置の色を特定色で描画する描
画手段とを具備することを特徴とする。
[0010] In the image drawing apparatus according to the fourth aspect, position specifying means for specifying a predetermined position of the image displayed on the screen, and the color at the position specified in the image by the position specifying means is set to the drawing target. A color setting unit that specifies a color and sets a plurality of similar colors similar to the drawing target color, and a drawing position is specified by the position specifying unit after the color setting unit specifies the drawing target color Determines whether the color of the designated drawing position matches any of the drawing target color and the plurality of similar colors, and specifies the color of the drawing position only when any of the colors matches. And drawing means for drawing in color.

【0009】請求項5に記載の画像描画方法では、画面
上に表示される画像の所定位置を指定する位置指定ステ
ップと、この位置指定ステップによって画像中で指定さ
れた位置の色を、描画対象色に指定すると共に、この描
画対象色に類似した複数の類似色を設定する色設定ステ
ップと、この色設定ステップにて描画対象色が指定され
た後に前記位置指定ステップにて描画位置が指定された
場合、その指定された描画位置の色が前記描画対象色お
よび前記複数の類似色のいずかに一致するか否かを判断
し、いずれかの色と一致した時にのみ当該描画位置の色
を特定色で描画する描画ステップとを具備することを特
徴としている。
According to a fifth aspect of the present invention, there is provided an image drawing method, comprising: a position specifying step for specifying a predetermined position of an image displayed on a screen; and a color at a position specified in the image by the position specifying step. A color setting step of specifying a color and setting a plurality of similar colors similar to the drawing target color, and a drawing position is specified in the position specifying step after the drawing target color is specified in the color setting step. If the color at the designated drawing position matches any of the drawing target color and the plurality of similar colors, it is determined whether the color at the designated drawing position is the color of the drawing position. And a drawing step of drawing in a specific color.

【0010】請求項6に記載の画像描画プログラムを記
録した媒体では、画面上に表示される画像中において描
画しようとする位置の色を描画対象色に指定すると共
に、この描画対象色に類似した複数の類似色を設定して
おき、描画する位置が定められた場合にその定められた
描画位置の色が前記描画対象色および前記複数の類似色
のいずかに一致するか否かを判断し、いずれかの色と一
致した時にのみ当該描画位置の色を特定色で描画するこ
とを特徴とする。
In the medium storing the image drawing program according to the present invention, the color of the position to be drawn in the image displayed on the screen is designated as the drawing target color, and the color similar to the drawing target color is designated. A plurality of similar colors are set, and when a drawing position is determined, it is determined whether the color at the determined drawing position matches any of the drawing target color and the plurality of similar colors. Only when the color matches any one of the colors, the color at the drawing position is drawn with a specific color.

【0011】本発明では、画面上に表示される画像中に
おいて描画しようとする位置を指定すると、その位置の
色が描画対象色に指定され、描画する位置を決めると、
その決められた描画位置の色が前記描画対象色に一致す
るか否かを判断し、一致した時にのみ当該描画位置の色
を特定色で描画する。したがって、画像中の描画対象色
以外の領域には特定色の描画がなされない為、マスク指
定が必要な従来のものに比して、簡易な指定操作だけで
所望箇所以外の上書描画を防止することが可能になる。
In the present invention, when a position to be drawn in an image displayed on a screen is designated, the color at that position is designated as a drawing target color.
It is determined whether or not the color at the determined drawing position matches the drawing target color, and only when the color matches, the color at the drawing position is drawn with a specific color. Therefore, since a specific color is not drawn in an area other than the drawing target color in the image, overwriting other than a desired portion can be prevented by a simple specifying operation as compared with the conventional one requiring mask specification. It becomes possible to do.

【0012】[0012]

【発明の実施の形態】本発明による画像描画装置は、イ
ラスト風の似顔絵や塗り絵を電子的に作成して表示する
電子玩具あるいは電子手帳等の電子機器に適用され得
る。以下では、本発明の実施の形態である画像描画装置
を実施例として図面を参照して説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An image drawing apparatus according to the present invention can be applied to an electronic device such as an electronic toy or an electronic organizer for electronically creating and displaying an illustration-like portrait or coloring book. Hereinafter, an image drawing apparatus according to an embodiment of the present invention will be described as an example with reference to the drawings.

【0013】A.第1実施例 (1)全体構成 図1は、本発明の第1実施例による画像描画装置の全体
構成を示すブロック図である。この図において、1はポ
インティング操作子であり、例えば、マウスを用いた場
合には移動操作に対応して変化するXY成分の位置信号
と、マウスボタンのオンオフ操作に対応した信号とを発
生する。なお、以下では、ポインティング操作子にマウ
ス1を用いた場合として説明して行く。
A. First Embodiment (1) Overall Configuration FIG. 1 is a block diagram showing the overall configuration of an image drawing apparatus according to a first embodiment of the present invention. In the figure, reference numeral 1 denotes a pointing operator, which generates, for example, a position signal of an XY component that changes in response to a moving operation when a mouse is used, and a signal corresponding to an on / off operation of a mouse button. In the following, a case will be described in which the mouse 1 is used as the pointing operator.

【0014】2は、マウス1が発生する信号に基づき装
置各部を制御するCPUであり、その特徴的な動作につ
いては後述する。なお、CPU2は図示されていないD
MAコントローラ等の周辺装置を含み、後述するビデオ
・ディスプレイ・プロセッサ(VDP)5側へ画像デー
タをDMA転送し得るように構成されている。3はRO
Mであり、CPU2にロードされる画像描画プログラム
の他、キャラクタ像を形成する基本画像あるいはマウス
カーソル等のオブジェクト画像を描画するのに必要な各
種画像データ等が記憶されており、そのメモリ構成につ
いては後述する。
Reference numeral 2 denotes a CPU for controlling each section of the apparatus based on a signal generated by the mouse 1, and its characteristic operation will be described later. The CPU 2 has a D (not shown).
It includes a peripheral device such as an MA controller, and is configured so that image data can be DMA-transferred to a video display processor (VDP) 5 described later. 3 is RO
M, in addition to an image drawing program loaded into the CPU 2, various image data and the like necessary for drawing a basic image forming a character image or an object image such as a mouse cursor are stored. Will be described later.

【0015】なお、ROM3に記憶されるプログラムや
データ類は、記録媒体を備える記憶装置9に記憶してお
く態様としても良く、記録媒体としては固定的あるいは
着脱自在な媒体に磁気記録、光磁気記録、光学的記録す
る他、ICカードのようにフラッシュメモリ等の書き換
え可能な不揮発性の半導体メモリを用いても良い。ま
た、ROM3に記憶されるプログラムやデータ類は、通
信回線等を介して接続された他の機器から受信して上述
の記録媒体に記憶する態様にすることも可能であるし、
後述するRAM4や、ROM3の代りに設けたフラッシ
ュメモリ等の書き換え可能な不揮発性メモリにダウンロ
ードする構成にしても良い。
The programs and data stored in the ROM 3 may be stored in a storage device 9 having a recording medium. The recording medium may be a fixed or detachable medium such as a magnetic recording medium or a magneto-optical medium. In addition to recording and optical recording, a rewritable nonvolatile semiconductor memory such as a flash memory such as an IC card may be used. Further, the program and data stored in the ROM 3 may be received from another device connected via a communication line or the like and stored in the above-described recording medium.
The configuration may be such that the program is downloaded to a rewritable nonvolatile memory such as a RAM 4 or a flash memory provided in place of the ROM 3 described later.

【0016】4はCPU2のワークエリアとして用いら
れるRAMである。RAM4には上記ROM3(あるい
は記憶装置9の記録媒体)から読み出される各種画像デ
ータやフラグ値等を一時記憶する各種レジスタエリアが
設けられており、その構成については追って詳述する。
5はCPU2の指示の下に表示制御するビデオ・ディス
プレイ・プロセッサ(以下、VDPと称す)である。V
DP5は、CRTコントローラとして機能するものであ
って、VRAM(ビデオRAM)6にDMA転送される
各種画像データに対してCPU2が指示する描画態様と
なるよう表示制御する。
Reference numeral 4 denotes a RAM used as a work area of the CPU 2. The RAM 4 is provided with various register areas for temporarily storing various image data, flag values, and the like read from the ROM 3 (or the recording medium of the storage device 9), and the configuration will be described in detail later.
Reference numeral 5 denotes a video display processor (hereinafter, referred to as VDP) which controls display under the instruction of the CPU 2. V
The DP 5 functions as a CRT controller, and performs display control so that various image data DMA-transferred to a VRAM (video RAM) 6 have a drawing mode instructed by the CPU 2.

【0017】具体的には、VRAM6に格納される1画
面分の色データ(カラーコード)を、パレットメモリ
(所謂、カラールックアップテーブル)の内容に基づき
表示データ(RGBデータ)に変換して出力する。な
お、VDP5内部に設けられるパレットメモリとは、色
データ(カラーコード)を読み出しアドレスとし、その
色データ(カラーコード)にアサインされる表示データ
(RGBデータ)を出力するデータテーブルである。
Specifically, the color data (color code) for one screen stored in the VRAM 6 is converted into display data (RGB data) based on the contents of a palette memory (so-called color look-up table) and output. I do. The palette memory provided inside the VDP 5 is a data table that uses color data (color code) as a read address and outputs display data (RGB data) assigned to the color data (color code).

【0018】7はエンコーダであり、VDP5から出力
される表示データ(RGBデータ)に映像同期信号に重
畳してコンポジットビデオ信号を発生する。8は、例え
ば通常のテレビジョン受像機、あるいはVDT(ビデオ
・ディスプレイ・ターミナル)を用いるディスプレイ装
置であり、上記エンコーダ7から供給されるコンポジッ
トビデオ信号を画面表示する。
Reference numeral 7 denotes an encoder which generates a composite video signal by superimposing the display data (RGB data) output from the VDP 5 on a video synchronizing signal. Reference numeral 8 denotes a display device using, for example, a normal television receiver or a VDT (video display terminal), and displays a composite video signal supplied from the encoder 7 on a screen.

【0019】(2)メモリ構成 次に、上述したROM3およびRAM4のメモリ構成に
ついて図2を参照して説明する。ROM3の構成 まず、図2(イ)はROM3のメモリ構成を示すメモリ
マップである。この図において、BIは、キャラクタ像
を形成する基本画像が記憶されるエリアである。CIは
マウスカーソルを形成するカーソル画像が記憶されるエ
リアである。IMX,IMYは、それぞれオブジェクト
画像として扱われるカーソル画像の属性、すなわち、座
標初期値(x0,y0)が格納される領域である。
(2) Memory Configuration Next, the memory configuration of the above-described ROM 3 and RAM 4 will be described with reference to FIG. First, FIG. 2A is a memory map showing a memory configuration of the ROM 3. As shown in FIG. In this figure, BI is an area where a basic image forming a character image is stored. CI is an area where a cursor image forming a mouse cursor is stored. IMX and IMY are areas in which the attributes of the cursor image treated as the object images, that is, the coordinate initial values (x 0 , y 0 ) are stored.

【0020】なお、ここで言うオブジェクト画像とは、
マウスカーソルを形成する色データ(カラーコード)
を、表示座標に応じてオブジェクト面に表示するもので
ある。本実施例の場合、このオブジェクト面の背面側と
なるビットマップ面にキャラクタ像を形成する基本画像
が表示され、後述するスプレーペイント処理では、この
ビットマップ面上で描画がなされる。
The object image referred to here is
Color data (color code) that forms the mouse cursor
Is displayed on the object surface according to the display coordinates. In the case of the present embodiment, a basic image for forming a character image is displayed on a bitmap surface on the back side of the object surface, and drawing is performed on this bitmap surface in a spray paint process described later.

【0021】RAM4の構成 次に、同図(ロ)はRAM4のメモリ構成を示すメモリ
マップである。この図において、画像エリアAは、上述
の基本画像データが展開されるエリアであり、本エリア
においてスプレーペイント処理が施される。この画像エ
リアAに記憶される基本画像は、ディスプレイ装置8の
垂直ブランキング期間毎に、VRAM6へDMA転送に
格納された後、VDP5を介してディスプレイ装置8に
画面表示される。
Next, FIG. 2B is a memory map showing the memory configuration of the RAM 4. In this figure, an image area A is an area where the above-described basic image data is developed, and a spray paint process is performed in this area. The basic image stored in the image area A is stored in the VRAM 6 by DMA transfer every vertical blanking period of the display device 8, and then displayed on the display device 8 via the VDP 5.

【0022】一方、画像エリアBは、上述したマウスカ
ーソルを形成するカーソル画像が記憶されるエリアであ
る。このエリアBに記憶されるカーソル画像も、上記エ
リアAと同様に、VRAM6へDMA転送に格納された
後、VDP5を介してディスプレイ装置8に画面表示さ
れる。
On the other hand, the image area B is an area in which a cursor image forming the above-mentioned mouse cursor is stored. Similarly to the area A, the cursor image stored in the area B is stored in the VRAM 6 by DMA transfer, and then displayed on the display device 8 via the VDP 5 on the screen.

【0023】MX,MYは、それぞれマウス1のポイン
ティング座標値(x,y)、つまり、クリック操作され
た画面の位置を一時記憶するレジスタである。RefC
olorは、スプレーペイントしようとする領域でクリ
ック操作されたドットの色データ(カラーコード)が一
時記憶されるレジスタである。NowColorは、ス
プレーペイントを施すドット位置の色データ(カラーコ
ード)が一時記憶されるレジスタである。なお、これら
レジスタRefColorおよびレジスタNowCol
orが意図するところについては追って説明する。
MX and MY are registers for temporarily storing the pointing coordinate value (x, y) of the mouse 1, that is, the position of the screen on which the click operation has been performed. RefC
“color” is a register in which color data (color code) of a dot clicked in an area to be spray-painted is temporarily stored. NowColor is a register for temporarily storing color data (color code) of a dot position to be spray-painted. The register RefColor and the register NowCol
The intention of or will be explained later.

【0024】(3)動作 次に、上記構成による第1実施例の動作について図3〜
図6を参照して説明する。ここでは、図6(イ)に示す
キャラクタ像(基本画像)に対して、同図(ロ)に示す
ようにキャラクタ像(基本画像)の周縁にスプレーペイ
ントを施す処理について説明する。
(3) Operation Next, the operation of the first embodiment having the above configuration will be described with reference to FIGS.
This will be described with reference to FIG. Here, a description will be given of a process of spray painting the periphery of the character image (basic image) as shown in FIG. 6B with respect to the character image (basic image) shown in FIG.

【0025】まず、装置電源が投入されると、CPU2
はROM3から所定の画像描画プログラムを読み出して
ロードし、図3に示すスプレーペイント処理のステップ
SA1を実行する。ステップSA1では、RAM4の各
種レジスタ/フラグ類を初期化する一方、VDP5に対
してVRAM6や内部レジスタを初期化するよう指示す
る。
First, when the apparatus power is turned on, the CPU 2
Reads out and loads a predetermined image drawing program from the ROM 3, and executes the step SA1 of the spray paint process shown in FIG. In step SA1, various registers / flags in the RAM 4 are initialized, while instructing the VDP 5 to initialize the VRAM 6 and internal registers.

【0026】そして、上記ステップSA1によるイニシ
ャライズが完了すると、CPU2はステップSA2に処
理を進め、ROM3の記憶エリアBIから基本画像デー
タを読み出してRAM4の画像エリアAに書き込む。続
いて、ステップSA3では、ROM3の記憶エリアIM
X,IMYからカーソル座標初期値(x0,y0)を読み
出し、これをRAM4のレジスタMX,MYにストアす
る。次いで、ステップSA4に進むと、CPU2はレジ
スタMX,MYに格納されたカーソル座標初期値
(x0,y0)に基づいてROM3の記憶エリアCIに格
納されているカーソル画像をRAM4の画像エリアBに
書き込む。
When the initialization in step SA1 is completed, the CPU 2 advances the processing to step SA2, reads the basic image data from the storage area BI of the ROM 3, and writes it in the image area A of the RAM 4. Subsequently, in step SA3, the storage area IM
The cursor coordinate initial values (x 0 , y 0 ) are read from X and IMY, and stored in the registers MX and MY of the RAM 4. Next, at step SA4, the CPU 2 stores the cursor image stored in the storage area CI of the ROM 3 on the basis of the cursor coordinate initial values (x 0 , y 0 ) stored in the registers MX and MY in the image area B of the RAM 4. Write to.

【0027】こうしてRAM4の画像エリアA,Bにそ
れぞれ基本画像とカーソル画像とが格納されると、CP
U2は割込みマスクを解除し、ディスプレイ装置8の垂
直ブランキング期間に同期して画像エリアA,Bの内容
をVRAM6にDMA転送する。すなわち、割込みマス
クが解除されると、CPU2はディスプレイ装置8の垂
直ブランキング期間毎に、図5に示すインタラプト処理
を実行し、RAM4の画像エリアA,Bにそれぞれ書き
込まれた基本画像とカーソル画像とを、VDP5を介し
てVRAM6にDMA転送する(ステップSB1)。V
RAM6に転送された画像データはVDP5によってデ
ィスプレイ装置8に画面表示される。これにより、例え
ば、図6(イ)に図示する基本画像が画面表示される。
なお、図6(イ)ではカーソル画像の画面表示を省略し
ている。
When the basic image and the cursor image are stored in the image areas A and B of the RAM 4, respectively,
U2 releases the interrupt mask, and DMA-transfers the contents of the image areas A and B to the VRAM 6 in synchronization with the vertical blanking period of the display device 8. That is, when the interrupt mask is released, the CPU 2 executes the interrupt processing shown in FIG. 5 for each vertical blanking period of the display device 8, and writes the basic image and the cursor image respectively written in the image areas A and B of the RAM 4. Are DMA-transferred to the VRAM 6 via the VDP 5 (step SB1). V
The image data transferred to the RAM 6 is displayed on the screen of the display device 8 by the VDP 5. Thereby, for example, the basic image shown in FIG. 6A is displayed on the screen.
In FIG. 6A, the screen display of the cursor image is omitted.

【0028】さて、再び図3に戻り、スプレーペイント
処理について説明を進める。以上のようにして基本画像
が画面表示されている状態において、マウス1を移動操
作させると、ステップSA5の判断結果が「YES」と
なり、ステップSA6に処理を進める。ステップSA6
では、移動操作に応じて変位した座標値(x,y)に従
ってレジスタMX,MYの内容を更新し、この後に上記
ステップSA4に処理を戻す。この結果、更新されたレ
ジスタMX,MYの内容に応じて画面表示されるマウス
カーソルの位置が移動する。
Returning to FIG. 3, the spray paint process will be described. When the mouse 1 is moved and operated while the basic image is displayed on the screen as described above, the result of the determination in step SA5 becomes "YES", and the process proceeds to step SA6. Step SA6
Then, the contents of the registers MX and MY are updated according to the coordinate values (x, y) displaced in accordance with the moving operation, and thereafter, the process returns to step SA4. As a result, the position of the mouse cursor displayed on the screen moves according to the updated contents of the registers MX and MY.

【0029】そして、マウス1が移動操作されずにいる
と、上記ステップSA5の判断結果が「NO」となり、
CPU2はステップSA7に処理を進める。ステップS
A7では、マウス1がオン操作されたか否かを判断す
る。ここで、オン操作されない場合には、判断結果が
「NO」となり、上述のステップSA4に処理を戻す
が、スプレーペイントを施すべく、マウス1をオン操作
すると、判断結果が「YES」となり、ステップSA8
に処理を進める。
If the mouse 1 has not been moved, the result of the determination at step SA5 is "NO",
CPU 2 proceeds to step SA7. Step S
In A7, it is determined whether or not the mouse 1 has been turned on. Here, if the ON operation is not performed, the determination result is “NO”, and the process returns to the above-described step SA4. However, if the mouse 1 is turned on to perform spray painting, the determination result is “YES”, and the step SA8
Processing proceeds to

【0030】ステップSA8では、CPU2はレジスタ
MX,MYに格納されたカーソル座標値(x,y)に対
応する画像エリアAのドットの色データ(カラーコー
ド)を読み出し、これをレジスタRefColorにセ
ットする。つまり、表示画面上でスプレーペイントを施
す部分の色データ(カラーコード)をレジスタRefC
olorに格納する訳である。この後、CPU2は図4
に示すステップSA9に処理を進め、カーソル移動指示
の有無、つまり、スプレーペイントする箇所をなぞる為
にマウス1が移動操作されているかどうかを判断する。
なお、スプレーペイントすべく画面上をなぞる時には、
マウス1は所謂ドラッグ操作がなされてオン状態を維持
する。
In step SA8, the CPU 2 reads the color data (color code) of the dot in the image area A corresponding to the cursor coordinate value (x, y) stored in the registers MX and MY, and sets this in the register RefColor. . That is, the color data (color code) of the portion to be spray-painted on the display screen is stored in the register RefC.
That is, it is stored in color. Thereafter, the CPU 2 returns to FIG.
The process proceeds to step SA9 shown in (1) to determine whether or not a cursor movement instruction has been issued, that is, whether or not the mouse 1 has been moved to trace a portion to be spray-painted.
When tracing on the screen to spray paint,
The mouse 1 is maintained in an on state by performing a so-called drag operation.

【0031】さて、ステップSA9において、スプレー
ペイントすべくドラッグ操作された時には、ここでの判
断結果が「YES」となり、次のステップSA10に処
理を進めるが、ドラッグ操作されていない時には判断結
果が「NO」となり、後述するステップSA16に処理
を進める。ステップSA10では、ドラッグ操作に応じ
てレジスタMX,MYの値を更新し、続くステップSA
11では、更新されたレジスタMX,MYのカーソル座
標値(x,y)に基づいてカーソル画像の表示位置を移
動させる。
In step SA9, when a drag operation is performed to perform spray painting, the determination result is "YES", and the process proceeds to the next step SA10. However, when a drag operation is not performed, the determination result is "YES". "NO", and the process proceeds to Step SA16 described later. At Step SA10, the values of the registers MX and MY are updated in accordance with the drag operation, and the subsequent Step SA
At 11, the display position of the cursor image is moved based on the updated cursor coordinate values (x, y) of the registers MX and MY.

【0032】次いで、ステップSA12に進むと、CP
U2はレジスタMX,MYに格納されたカーソル座標値
(x,y)に対応する画像エリアA上のドットの色デー
タ(カラーコード)を読み出し、これをレジスタNow
Colorにセットする。そして、ステップSA13で
は、このレジスタNowColorにセットした色デー
タ(カラーコード)と、レジスタRefColorにセ
ットした色データ(カラーコード)とが一致するか否か
を判断する。
Next, when the flow advances to step SA12, CP
U2 reads out the color data (color code) of the dot on the image area A corresponding to the cursor coordinate value (x, y) stored in the registers MX and MY, and stores it in the register Now.
Set to Color. In step SA13, it is determined whether or not the color data (color code) set in the register NowColor matches the color data (color code) set in the register RefColor.

【0033】つまり、最初にスプレーペイントしようと
決めた部分の色(指定色)と、いまスプレーペイントを
施す箇所の色(現在色)とが一致するかどうかを判断し
ている。そして、指定色と現在色とが一致しない時に
は、指定色以外の部分にスプレーペイントされてしまう
と見做して判断結果が「NO」となり、ペイント処理を
施さずにステップSA16へ処理を進める。
That is, it is determined whether or not the color (designated color) of the part which is initially determined to be spray-painted matches the color (current color) of the part to be spray-painted now. When the designated color does not match the current color, it is considered that the part other than the designated color is spray-painted, and the determination result is "NO", and the process proceeds to step SA16 without performing the painting process.

【0034】一方、これに対し、指定色と現在色とが一
致すると、上記ステップSA14の判断結果が「YE
S」となり、ステップSA14に処理を進める。ステッ
プSA14では、まず、カーソル指定されたドットを中
心とした所定の範囲のドット領域を設定する。例えば、
円形のドット領域を設定する場合には、カーソル指定さ
れたドット(x,y)を中心に半径r内に収まるドット
群を指定する。
On the other hand, if the designated color matches the current color, the result of the determination in step SA14 is "YE
S ", and the process proceeds to Step SA14. In step SA14, first, a dot area within a predetermined range around the dot designated by the cursor is set. For example,
When setting a circular dot area, a group of dots that fall within a radius r around the dot (x, y) designated by the cursor is specified.

【0035】そして、次のステップSA15では、設定
したドット領域内においてレジスタRefColorに
一致する色データ(カラーコード)のみをスプレー状に
特定色に色変更させて描画する。これにより、例えば、
図6(イ)に図示した基本画像において、マウス1を背
景部分でオン操作してこの背景部分の色を”指定色”に
設定しておき、キャラクタ像の周縁に沿ってマウス1を
ドラッグ操作すると、ドラッグ操作によってなぞられた
周縁がスプレー状の特定色に変更されるスプレーペイン
トが施される。この場合、指定色に一致するドットだけ
が特定色に変更される為、キャラクタ像にスプレーされ
る虞がない。
In the next step SA15, only the color data (color code) that matches the register RefColor in the set dot area is drawn in a spray shape by changing the color to a specific color. This allows, for example,
In the basic image shown in FIG. 6A, the mouse 1 is turned on in the background portion, the color of the background portion is set to “designated color”, and the mouse 1 is dragged along the periphery of the character image. Then, a spray paint is applied in which the tracing edge is changed to a spray-like specific color by a drag operation. In this case, since only the dots that match the designated color are changed to the specific color, there is no risk of being sprayed on the character image.

【0036】こうして、スプレーペイントがなされる
と、CPU2はステップSA16に処理を進め、マウス
1がオフ操作されたか、つまり、ドラッグ操作が完了し
たか否かを判断する。ここで、ドラッグ操作が完了して
いない時には、判断結果が「NO」となり、ステップS
A9に処理を戻し、再び上述した過程を繰り返す。一
方、ドラッグ操作し終えた時には、判断結果が「YE
S」となり、前述したステップSA4(図3参照)に処
理を戻す。
When the spray painting is performed, the CPU 2 proceeds to step SA16 to determine whether the mouse 1 has been turned off, that is, whether the drag operation has been completed. Here, when the drag operation has not been completed, the determination result is “NO”, and step S
The process returns to A9, and the above-described process is repeated again. On the other hand, when the drag operation is completed, the determination result is “YE
S ", and the process returns to step SA4 (see FIG. 3) described above.

【0037】以上説明したように、第1実施例によれ
ば、スプレーペイントしようとする画像部分でマウス1
をオン操作してその部分の色を”指定色”に設定してお
き、ペイントしたい部分をドラッグ操作しつつなぞる
と、なぞられた部分において指定色に一致するドットだ
けがスプレー状の特定色に色変更されるので、従来のよ
うに、マスク指定する操作が不要となり、簡易な指定操
作だけで所望箇所以外の上書描画を防止することが可能
になっている。
As described above, according to the first embodiment, the mouse 1 is used in the image portion to be spray-painted.
Set the color of the part to "specified color" by turning on, and drag while dragging the part you want to paint, only the dots that match the specified color in the traced part will become the spray-like specific color Since the color is changed, the operation of designating a mask as in the related art becomes unnecessary, and it is possible to prevent overwriting of a portion other than a desired portion by only a simple designation operation.

【0038】B.第2実施例 次に、図7〜図10を参照して第2実施例について説明
する。なお、第2実施例は、上述の第1実施例と同一の
構成であるため、その説明については省略する。以下で
は、第1実施例と相違するメモリ構成および動作につい
て言及する。
B. Second Embodiment Next, a second embodiment will be described with reference to FIGS. Note that the second embodiment has the same configuration as the above-described first embodiment, and a description thereof will be omitted. Hereinafter, a memory configuration and an operation different from those of the first embodiment will be described.

【0039】(1)メモリ構成 第2実施例におけるROM3およびRAM4のメモリ構
成について図7を参照して説明する。なお、図7におい
て第1実施例と共通する記憶エリアおよびレジスタには
同一の符号を付し、その説明を省略する。
(1) Memory Configuration The memory configuration of the ROM 3 and the RAM 4 in the second embodiment will be described with reference to FIG. In FIG. 7, the same reference numerals are given to the storage areas and registers common to the first embodiment, and the description thereof will be omitted.

【0040】ROM3の構成 まず、図7(イ)はROM3のメモリ構成を示すメモリ
マップであり、図2(イ)に図示した第1実施例と相違
する点は、色データ検索テーブルCSTを設けたことに
ある。前述の第1実施例では、”指定色”を設定した
が、これでは単色の領域だけしか適用できない。そこ
で、第2実施例では、指定色に類似する複数の色が混色
する領域でも適用し得るように色データ検索テーブルC
STを設けている。この色データ検索テーブルCST
は、”指定色”に類似する複数の類似色を予め割り当て
ておき、カーソル指定されたドットの色データ(カラー
コード)、つまり”指定色”を読み出しアドレスとし
て、対応する複数の類似色を読み出すデータテーブルで
ある。
First, FIG. 7A is a memory map showing the memory configuration of the ROM 3. The difference from the first embodiment shown in FIG. 2A is that a color data search table CST is provided. That is. In the above-described first embodiment, “specified color” is set, but this can be applied only to a single color area. Therefore, in the second embodiment, the color data search table C is set so that it can be applied to an area where a plurality of colors similar to the designated color are mixed.
ST is provided. This color data search table CST
Is assigned a plurality of similar colors similar to the “designated color” in advance, and reads out the corresponding plurality of similar colors using the color data (color code) of the dot designated by the cursor, that is, the “designated color” as a read address. It is a data table.

【0041】RAM4の構成 次に、図7(ロ)はRAM4のメモリ構成を示すメモリ
マップであり、図2(ロ)に図示した第1実施例と相違
する点は、カーソル指定されたドットの色データ(カラ
ーコード)と、これに応じて上記色データ検索テーブル
CSTから読み出される複数の類似色の色データとを一
時記憶するレジスタRefColor(1)〜(n)を
設けたことにある。したがって、レジスタRefCol
or(1)にはカーソル指定されたドットの色データ
が、レジスタRefColor(2)〜(n)にはカー
ソル指定されたドットの色データ(カラーコード)に対
応する複数の類似色の色データがストアされる。
Next, FIG. 7 (b) is a memory map showing the memory configuration of the RAM 4. The difference from the first embodiment shown in FIG. 2 (b) is that Registers RefColor (1) to (n) for temporarily storing color data (color code) and color data of a plurality of similar colors read from the color data search table CST in response thereto are provided. Therefore, register RefCol
or (1) stores color data of the dot designated by the cursor, and registers RefColor (2) to (n) store color data of a plurality of similar colors corresponding to the color data (color code) of the dot designated by the cursor. Stored.

【0042】(2)動作 次に、図8〜図10を参照して第2実施例による動作に
ついて説明する。前述した第1実施例と同様に、先ず装
置電源が投入されると、CPU2はROM3から所定の
画像描画プログラムを読み出してロードし、図8に示す
スプレーペイント処理のステップSC1を実行する。ス
テップSC1では、RAM4の各種レジスタ/フラグ類
を初期化する一方、VDP5に対してVRAM6や内部
レジスタを初期化するよう指示する。
(2) Operation Next, the operation according to the second embodiment will be described with reference to FIGS. As in the first embodiment, when the apparatus is first turned on, the CPU 2 reads out and loads a predetermined image drawing program from the ROM 3, and executes step SC1 of the spray paint process shown in FIG. In step SC1, various registers / flags in the RAM 4 are initialized, while instructing the VDP 5 to initialize the VRAM 6 and internal registers.

【0043】そして、イニシャライズが完了すると、C
PU2はステップSC2に処理を進め、ROM3の記憶
エリアBIから基本画像データを読み出してRAM4の
画像エリアAに書き込む。続いて、ステップSC3で
は、ROM3の記憶エリアIMX,IMYからカーソル
座標初期値(x0,y0)を読み出し、これをRAM4の
レジスタMX,MYにストアする。次いで、ステップS
C4に進むと、CPU2はレジスタMX,MYに格納さ
れたカーソル座標初期値(x0,y0)に基づいてROM
3の記憶エリアCIに格納されているカーソル画像をR
AM4の画像エリアBに書き込む。
When the initialization is completed, C
The PU 2 advances the process to step SC 2, reads the basic image data from the storage area BI of the ROM 3, and writes it to the image area A of the RAM 4. Subsequently, in step SC3, the cursor coordinate initial values (x 0 , y 0 ) are read from the storage areas IMX, IMY of the ROM 3 and stored in the registers MX, MY of the RAM 4. Then, step S
When the process proceeds to C4, the CPU 2 reads the ROM based on the cursor coordinate initial values (x 0 , y 0 ) stored in the registers MX and MY.
The cursor image stored in the storage area CI of No. 3 is R
Write to image area B of AM4.

【0044】RAM4の画像エリアA,Bにそれぞれ基
本画像とカーソル画像とが格納されると、CPU2は割
込みマスクを解除し、ディスプレイ装置8の垂直ブラン
キング期間に同期して画像エリアA,Bの内容をVRA
M6にDMA転送する(図5のインタラプト処理を参
照)。こうして基本画像とカーソル画像が画面表示され
ている状態において、マウス1を移動操作させると、ス
テップSC5の判断結果が「YES」となり、ステップ
SC6に処理を進める。ステップSC6では、移動操作
に応じて変位した座標値(x,y)に従ってレジスタM
X,MYの内容を更新し、この後に上記ステップSA4
に処理を戻す。これにより、更新されたレジスタMX,
MYの内容に応じて画面表示されるマウスカーソルの位
置が移動する。
When the basic image and the cursor image are stored in the image areas A and B of the RAM 4, respectively, the CPU 2 releases the interrupt mask, and synchronizes the image areas A and B with the vertical blanking period of the display device 8. VRA content
DMA transfer to M6 (see interrupt processing in FIG. 5). When the mouse 1 is moved while the basic image and the cursor image are displayed on the screen in this manner, the result of the determination in step SC5 becomes “YES”, and the process proceeds to step SC6. In step SC6, the register M is set according to the coordinate value (x, y) displaced according to the moving operation.
The contents of X and MY are updated, and thereafter, the above-mentioned step SA4
Return to processing. As a result, the updated registers MX,
The position of the mouse cursor displayed on the screen moves according to the content of MY.

【0045】一方、マウス1が移動操作されずにいる
と、上記ステップSC5の判断結果が「NO」となり、
CPU2はステップSC7に処理を進める。ステップS
C7では、マウス1がオン操作されたか否かを判断す
る。ここで、オン操作されない場合には、判断結果が
「NO」となり、上述のステップSC4に処理を戻す
が、スプレーペイントを施すべく、マウス1をオン操作
すると、判断結果が「YES」となり、図9に示すステ
ップSC8に処理を進める。
On the other hand, if the mouse 1 has not been moved, the result of the determination in step SC5 is "NO", and
CPU 2 proceeds to step SC7. Step S
At C7, it is determined whether or not the mouse 1 has been turned on. Here, if the ON operation is not performed, the determination result is “NO”, and the process returns to step SC4. However, if the mouse 1 is turned on to perform spray painting, the determination result is “YES”. The process proceeds to Step SC8 shown in FIG.

【0046】ステップSC8に進むと、CPU2はレジ
スタMX,MYに格納されたカーソル座標値(x,y)
に対応する画像エリアAのドットの色データ(カラーコ
ード)を読み出し、これを図示されていないテンポラリ
レジスタにセットする。続いて、ステップSC9では、
テンポラリレジスタにセットされた色データ、つま
り、”指定色”を読み出しアドレスとして上述した色デ
ータ検索テーブルCSTから対応する複数の類似色の色
データを読み出す。そして、ステップSC10では、カ
ーソル指定されたドットの色データをレジスタRefC
olor(1)にストアする一方、色データ検索テーブ
ルCSTから読み出された複数の類似色の色データをレ
ジスタRefColor(2)〜(n)にそれぞれスト
アする。
At step SC8, the CPU 2 sets the cursor coordinate values (x, y) stored in the registers MX and MY.
Is read out and the color data (color code) of the dot in the image area A is read out and set in a temporary register (not shown). Subsequently, in step SC9,
Using the color data set in the temporary register, that is, the “designated color” as a read address, the corresponding color data of a plurality of similar colors is read from the color data search table CST. In step SC10, the color data of the dot designated by the cursor is stored in the register RefC.
The color data stored in the color data search table CST is stored in the registers RefColor (2) to (n), respectively.

【0047】次いで、ステップSC11に進むと、CP
U2はカーソル移動指示の有無、つまり、スプレーペイ
ントする箇所をなぞる為にマウス1が移動操作されてい
るかどうかを判断する。なお、スプレーペイントすべく
画面上をなぞる時には、マウス1は所謂ドラッグ操作が
なされてオン状態を維持する。さて、ステップSC11
において、スプレーペイントすべくドラッグ操作された
時には、ここでの判断結果が「YES」となり、次のス
テップSC12に処理を進めるが、ドラッグ操作されて
いない時には判断結果が「NO」となり、後述するステ
ップSC18(図10参照)に処理を進める。
Next, when the flow advances to step SC11, the CP
U2 determines whether or not there is a cursor movement instruction, that is, whether or not the mouse 1 has been moved to trace a portion to be spray-painted. When the user traces the screen for spray painting, the mouse 1 is kept on by performing a so-called drag operation. By the way, step SC11
When the drag operation is performed to perform spray painting, the determination result here is “YES”, and the process proceeds to the next step SC12. However, when the drag operation is not performed, the determination result is “NO”, and a step described later is performed. The process proceeds to SC18 (see FIG. 10).

【0048】ステップSC12では、ドラッグ操作に応
じてレジスタMX,MYの値を更新し、続くステップS
C13では、更新されたレジスタMX,MYのカーソル
座標値(x,y)に基づいてカーソル画像の表示位置を
移動させる。次いで、図10のステップSC14に進む
と、CPU2はレジスタMX,MYに格納されたカーソ
ル座標値(x,y)に対応する画像エリアA上のドット
の色データ(カラーコード)を読み出し、これをレジス
タNowColorにセットする。
In step SC12, the values of the registers MX and MY are updated in accordance with the drag operation, and
At C13, the display position of the cursor image is moved based on the updated cursor coordinate values (x, y) of the registers MX and MY. Next, when the process proceeds to step SC14 in FIG. 10, the CPU 2 reads out the color data (color code) of the dot on the image area A corresponding to the cursor coordinate value (x, y) stored in the registers MX and MY and reads this. Set in register NowColor.

【0049】そして、ステップSC15では、このレジ
スタNowColorにセットした色データ(カラーコ
ード)が、レジスタRefColor(1)〜(n)に
それぞれ格納した”指定色”およびその”類似色”のい
ずれかに一致するか否かを判断する。つまり、最初にス
プレーペイントしようと決めた部分の色(指定色)およ
びその類似色のどれかが、いまスプレーペイントを施す
箇所の色(現在色)に一致するかどうかを判断してい
る。そして、いずれも一致しない時には、指定色および
類似色以外の部分にスプレーペイントされてしまうと見
做して判断結果が「NO」となり、ペイント処理を施さ
ずにステップSC18へ処理を進める。
In step SC15, the color data (color code) set in the register NowColor is set to one of the "designated color" and the "similar color" stored in the registers RefColor (1) to (n), respectively. It is determined whether they match. That is, it is determined whether or not the color of the portion that is initially determined to be spray-painted (designated color) and any of its similar colors match the color of the portion where spray-painting is to be performed (current color). If none of them match, it is considered that the parts other than the designated color and the similar color are spray-painted, and the determination result is "NO", and the process proceeds to step SC18 without performing the paint processing.

【0050】一方、これに対し、指定色およびその類似
色のどれかに現在色が一致すると、上記ステップSC1
5の判断結果が「YES」となり、ステップSC16に
処理を進める。ステップSC16では、まず、カーソル
指定されたドットを中心とした所定の範囲のドット領域
を設定する。例えば、円形のドット領域を設定する場合
には、カーソル指定されたドット(x,y)を中心に半
径r内に収まるドット群を指定する。
On the other hand, if the current color matches one of the designated color and any of its similar colors, step SC1
The determination result of 5 is “YES”, and the process proceeds to step SC16. In step SC16, first, a dot area within a predetermined range around the dot designated by the cursor is set. For example, when setting a circular dot area, a group of dots that fall within a radius r around the dot (x, y) designated by the cursor is specified.

【0051】続いて、ステップSC17では、設定した
ドット領域内においてレジスタRefColor(1)
〜(n)のいずれかに一致する色データ(カラーコー
ド)のみをスプレー状に特定色に色変更させて描画す
る。これにより、ドラッグ操作によってなぞられた画像
部分において、指定色およびその類似色に一致するドッ
トだけが特定色に色変更される為、指定色およびその類
似色を含まない画像にはマスク指定せずともスプレーペ
イントを防止し得る。
Subsequently, in step SC17, the register RefColor (1) is set in the set dot area.
Only the color data (color code) that matches any one of (a) to (n) is drawn in a spray shape by changing the color to a specific color. As a result, in the image portion traced by the drag operation, only the dots that match the designated color and its similar color are changed to the specific color, so that an image that does not include the designated color and its similar color is not designated as a mask. Both can prevent spray paint.

【0052】こうして、スプレーペイントがなされる
と、CPU2はステップSC18に処理を進め、マウス
1がオフ操作されたか、つまり、ドラッグ操作が完了し
たか否かを判断する。ここで、ドラッグ操作が完了して
いない時には、判断結果が「NO」となり、図9のステ
ップSC11に処理を戻し、再び上述した過程を繰り返
す。一方、ドラッグ操作し終えた時には、判断結果が
「YES」となり、前述したステップSC4(図8参
照)に処理を戻す。
When the spray painting is performed, the CPU 2 advances the process to step SC18 to determine whether the mouse 1 has been turned off, that is, whether the drag operation has been completed. Here, when the drag operation is not completed, the determination result is “NO”, the process returns to step SC11 in FIG. 9, and the above-described process is repeated again. On the other hand, when the drag operation is completed, the determination result is “YES”, and the process returns to step SC4 (see FIG. 8) described above.

【0053】このように第2実施例によれば、スプレー
ペイントしようとする画像部分でマウス1をオン操作し
てその部分の色を”指定色”に設定しておく一方、こ
の”指定色”に対応する複数の類似色を色データ検索テ
ーブルCSTを参照して抽出しておき、ペイントしたい
部分をドラッグ操作しつつなぞると、なぞられた部分に
おいて指定色およびその類似色のどれかに一致するドッ
トだけがスプレー状の特定色に色変更される。したがっ
て、前述の第1実施例と同様、マスク指定が必要な従来
のものに比して、簡易な指定操作だけで所望箇所以外の
上書描画を防止でき、しかも複数の色が混色する部分に
おいても適用することが可能になっている。
As described above, according to the second embodiment, the mouse 1 is turned on at the image portion to be spray-painted to set the color of the portion to the “specified color”, while the “specified color” is set. Are extracted with reference to the color data search table CST, and a portion to be painted is traced while being dragged, so that the traced portion matches the designated color and any of its similar colors. Only the dots are changed to a spray-like specific color. Therefore, as in the first embodiment, overwriting of a portion other than a desired portion can be prevented by a simple designation operation as compared with a conventional device requiring a mask designation, and in a portion where a plurality of colors are mixed. It is also possible to apply.

【0054】なお、上述した第1および第2実施例で
は、スプレーペイントする場合を例示したが、これに限
らず、例えば”ハケや筆で塗装する”状態を模したペイ
ント処理などにも勿論適用可能である。また、第1およ
び第2実施例では、固定的な特定色でスプレーペイント
する態様であるが、これはユーザー指定に応じて色指定
する態様にすることも可能である。
In the above-described first and second embodiments, the case of spray painting has been described as an example. However, the present invention is not limited to this case. It is possible. In the first and second embodiments, the spray paint is performed in a fixed specific color. However, the spray paint may be performed in a manner in which a color is specified according to a user's specification.

【0055】[0055]

【発明の効果】本発明によれば、画面上に表示される画
像中において描画しようとする位置を指定すると、その
位置の色が描画対象色に指定され、描画する位置を決め
ると、その決められた描画位置の色が前記描画対象色に
一致するか否かを判断し、一致した時にのみ当該描画位
置の色を特定色で描画する。したがって、画像中の描画
対象色以外の領域には特定色の描画がなされない為、マ
スク指定が必要な従来のものに比して、簡易な指定操作
だけで所望箇所以外の上書描画を防止することができ
る。
According to the present invention, when a position to be drawn in an image displayed on a screen is designated, the color at that position is designated as a drawing target color. It is determined whether or not the color at the drawn position matches the drawing target color, and only when the color matches, the color at the drawing position is drawn in a specific color. Therefore, since a specific color is not drawn in an area other than the drawing target color in the image, overwriting other than a desired portion can be prevented by a simple specifying operation as compared with the conventional one requiring mask specification. can do.

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

【図1】本発明による第1実施例の構成を示すブロック
図である。
FIG. 1 is a block diagram showing a configuration of a first embodiment according to the present invention.

【図2】第1実施例におけるROM3およびRAM4の
メモリ構成を示すメモリマップである。
FIG. 2 is a memory map showing a memory configuration of a ROM 3 and a RAM 4 in the first embodiment.

【図3】第1実施例の動作を示すフローチャートであ
る。
FIG. 3 is a flowchart showing the operation of the first embodiment.

【図4】第1実施例の動作を示すフローチャートであ
る。
FIG. 4 is a flowchart showing the operation of the first embodiment.

【図5】第1実施例の動作を示すフローチャートであ
る。
FIG. 5 is a flowchart showing the operation of the first embodiment.

【図6】第1実施例による動作の一例を、ディスプレイ
上に表示した中間調画像として撮像したものを示す図で
ある。
FIG. 6 is a diagram showing an example of an operation according to the first embodiment, which is captured as a halftone image displayed on a display.

【図7】第2実施例におけるROM3およびRAM4の
メモリ構成を示すメモリマップである。
FIG. 7 is a memory map showing a memory configuration of a ROM 3 and a RAM 4 in a second embodiment.

【図8】第2実施例の動作を示すフローチャートであ
る。
FIG. 8 is a flowchart showing the operation of the second embodiment.

【図9】第2実施例の動作を示すフローチャートであ
る。
FIG. 9 is a flowchart showing the operation of the second embodiment.

【図10】第2実施例の動作を示すフローチャートであ
る。
FIG. 10 is a flowchart showing the operation of the second embodiment.

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

1 ポインティング操作子(位置指定手段) 2 CPU(色指定手段、描画手段) 3 ROM(色指定手段、描画手段) 4 RAM(色指定手段、描画手段) 5 VDP(描画手段) 6 VRAM(描画手段) 7 エンコーダ 8 ディスプレイ装置 9 記憶装置 DESCRIPTION OF SYMBOLS 1 Pointing operator (position designating means) 2 CPU (color designating means, drawing means) 3 ROM (color designating means, drawing means) 4 RAM (color designating means, drawing means) 5 VDP (drawing means) 6 VRAM (drawing means) ) 7 encoder 8 display device 9 storage device

───────────────────────────────────────────────────── フロントページの続き (72)発明者 坂本 昇平 東京都羽村市栄町3丁目2番1号 カシオ 計算機株式会社羽村技術センター内 (72)発明者 宇佐美 隆二 東京都羽村市栄町3丁目2番1号 カシオ 計算機株式会社羽村技術センター内 ──────────────────────────────────────────────────続 き Continued on the front page (72) Shohei Sakamoto, Inventor 3-2-1, Sakaemachi, Hamura-shi, Tokyo Casio Computer Co., Ltd. Hamura Technical Center (72) Inventor Ryuji Usami 3-2-1, Sakaemachi, Hamura-shi, Tokyo No. Casio Computer Co., Ltd. Hamura Technical Center

Claims (6)

【特許請求の範囲】[Claims] 【請求項1】 画面上に表示される画像の所定位置を指
定する位置指定手段と、 この位置指定手段によって画像中で指定された位置の色
を、描画対象色に指定する色指定手段と、 この色指定手段が描画対象色を指定した後、前記位置指
定手段によって描画位置が指定された場合、その指定さ
れた描画位置の色が前記描画対象色に一致するか否かを
判断し、一致した時にのみ当該描画位置の色を特定色で
描画する描画手段と を具備することを特徴とする画像
描画装置。
1. A position designation means for designating a predetermined position of an image displayed on a screen; a color designation means for designating a color at a position designated in the image by the position designation means as a drawing target color; After the color designating unit designates a drawing target color, if a drawing position is designated by the position designating unit, it is determined whether or not the color at the designated drawing position matches the drawing target color. And a drawing means for drawing the color at the drawing position with a specific color only when the drawing is performed.
【請求項2】 画面上に表示される画像の所定位置を指
定する位置指定ステップと、 この位置指定ステップによって画像中で指定された位置
の色を、描画対象色に指定する色指定ステップと、 この色指定ステップが描画対象色を指定した後、前記位
置指定ステップによって描画位置が指定された場合、そ
の指定された描画位置の色が前記描画対象色に一致する
か否かを判断し、一致した時にのみ当該描画位置の色を
特定色で描画する描画ステップとを具備することを特徴
とする画像描画方法。
2. A position designation step for designating a predetermined position of an image displayed on a screen; a color designation step of designating a color at a position designated in the image by the position designation step as a drawing target color; If the drawing position is specified in the position specifying step after the color specifying step specifies the drawing target color, it is determined whether or not the color at the specified drawing position matches the drawing target color. A drawing step of drawing the color at the drawing position with a specific color only when the drawing is performed.
【請求項3】 コンピュータによって画像描画するため
のプログラムを記録した媒体であって、画面上に表示さ
れる画像中において描画しようとする位置の色を描画対
象色に指定しておき、描画する位置が定められた場合に
その定められた描画位置の色が前記描画対象色に一致す
るか否かを判断し、一致した時にのみ当該描画位置の色
を特定色で描画することを特徴とする画像描画プログラ
ムを記録した媒体。
3. A medium on which a program for drawing an image by a computer is recorded, wherein a color of a position to be drawn in an image displayed on a screen is designated as a drawing target color, and a drawing position is set. Is determined, whether or not the color of the determined drawing position matches the drawing target color, and the color of the drawing position is drawn in a specific color only when the color matches. A medium that stores a drawing program.
【請求項4】 画面上に表示される画像の所定位置を指
定する位置指定手段と、 この位置指定手段によって画像中で指定された位置の色
を、描画対象色に指定すると共に、この描画対象色に類
似した複数の類似色を設定する色設定手段と、 この色設定手段が描画対象色を指定した後、前記位置指
定手段によって描画位置が指定された場合、その指定さ
れた描画位置の色が前記描画対象色および前記複数の類
似色のいずかに一致するか否かを判断し、いずれかの色
と一致した時にのみ当該描画位置の色を特定色で描画す
る描画手段とを具備することを特徴とする画像描画装
置。
4. A position designation means for designating a predetermined position of an image displayed on a screen, and a color at a position designated in the image by the position designation means is designated as a drawing target color. Color setting means for setting a plurality of similar colors similar to colors; and if the drawing position is specified by the position specifying means after the color setting means specifies a drawing target color, the color of the specified drawing position Determining whether or not the drawing target color and the plurality of similar colors match, and drawing the color at the drawing position with a specific color only when the color matches any of the colors. An image drawing apparatus, comprising:
【請求項5】 画面上に表示される画像の所定位置を指
定する位置指定ステップと、 この位置指定ステップによって画像中で指定された位置
の色を、描画対象色に指定すると共に、この描画対象色
に類似した複数の類似色を設定する色設定ステップと、 この色設定ステップにて描画対象色が指定された後に前
記位置指定ステップにて描画位置が指定された場合、そ
の指定された描画位置の色が前記描画対象色および前記
複数の類似色のいずかに一致するか否かを判断し、いず
れかの色と一致した時にのみ当該描画位置の色を特定色
で描画する描画ステップとを具備することを特徴とする
画像描画方法。
5. A position designation step for designating a predetermined position of an image displayed on a screen, and a color at a position designated in the image by the position designation step is designated as a drawing target color. A color setting step of setting a plurality of similar colors similar to colors; and, when a drawing position is specified in the position specifying step after a drawing target color is specified in the color setting step, the specified drawing position Determining whether or not the color of the drawing position matches any of the drawing target color and the plurality of similar colors, and drawing the color at the drawing position with a specific color only when the color matches any of the colors. An image drawing method, comprising:
【請求項6】 コンピュータによって画像描画するため
のプログラムを記録した媒体であって、画面上に表示さ
れる画像中において描画しようとする位置の色を描画対
象色に指定すると共に、この描画対象色に類似した複数
の類似色を設定しておき、描画する位置が定められた場
合にその定められた描画位置の色が前記描画対象色およ
び前記複数の類似色のいずかに一致するか否かを判断
し、いずれかの色と一致した時にのみ当該描画位置の色
を特定色で描画することを特徴とする画像描画プログラ
ムを記録した媒体。
6. A medium on which a program for drawing an image by a computer is recorded, wherein a color of a position to be drawn in an image displayed on a screen is designated as a drawing target color, and the drawing target color is designated. A plurality of similar colors similar to the above are set, and when the drawing position is determined, whether the color at the determined drawing position matches any of the drawing target color and the plurality of similar colors is determined. A medium for recording an image drawing program characterized by drawing a color at a drawing position in a specific color only when the color matches one of the colors.
JP25617196A 1996-09-27 1996-09-27 Method and device for plotting picture, and medium with picture plotting program recorded Pending JPH10105731A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP25617196A JPH10105731A (en) 1996-09-27 1996-09-27 Method and device for plotting picture, and medium with picture plotting program recorded

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP25617196A JPH10105731A (en) 1996-09-27 1996-09-27 Method and device for plotting picture, and medium with picture plotting program recorded

Publications (1)

Publication Number Publication Date
JPH10105731A true JPH10105731A (en) 1998-04-24

Family

ID=17288903

Family Applications (1)

Application Number Title Priority Date Filing Date
JP25617196A Pending JPH10105731A (en) 1996-09-27 1996-09-27 Method and device for plotting picture, and medium with picture plotting program recorded

Country Status (1)

Country Link
JP (1) JPH10105731A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009526335A (en) * 2006-02-10 2009-07-16 ニック ソフトウエア インク Digital image self-adaptive brush

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009526335A (en) * 2006-02-10 2009-07-16 ニック ソフトウエア インク Digital image self-adaptive brush

Similar Documents

Publication Publication Date Title
EP0559374A1 (en) Graphic display method and apparatus for rotating an object in a three-dimensional space
US5412402A (en) Electronic graphic systems
JP2000013628A (en) Color correcting method and recording medium storing the method
WO1993007561A1 (en) Apparatus and method for projection upon a three-dimensional object
JPS62144280A (en) Makeup simulation
US5596692A (en) Computer graphics
CN111282277A (en) Special effect processing method, device and equipment and storage medium
JPH10105731A (en) Method and device for plotting picture, and medium with picture plotting program recorded
JPH08202890A (en) Plotting device
CN100504775C (en) Input image color treatment preview method
JP3133093B2 (en) Electronic image correction method and apparatus
JP2001209816A (en) Graphic preparing method
CN113225428A (en) Image copying processing method, device, equipment and computer readable storage medium
JPH11196341A (en) Plotter for home television set
JP2722148B2 (en) Image brushing method
JPH10105326A (en) Image controller, image control method and medium recording image control program
JPH0812692B2 (en) Image processing device
JPH07105395A (en) Information processing unit
JPH10105730A (en) Device and method for image processing, and medium recording image processing program
JPH04229379A (en) Image editing system
JPH10188019A (en) Method and device for processing image
JP3727998B2 (en) Graphic processing apparatus and graphic processing method
JP2004013544A (en) Image processing apparatus
JP2000251088A (en) System and method for plotting
CN110587620A (en) Industrial robot writing and drawing method and system, workpiece processing method and computer equipment