Maple Professional
Maple Academic
Maple Student Edition
Maple Personal Edition
Maple Player
Maple Player for iPad
MapleSim Professional
MapleSim Academic
Maple T.A. - Testing & Assessment
Maple T.A. MAA Placement Test Suite
Möbius - Online Courseware
Machine Design / Industrial Automation
Aerospace
Vehicle Engineering
Robotics
Power Industries
System Simulation and Analysis
Model development for HIL
Plant Modeling for Control Design
Robotics/Motion Control/Mechatronics
Other Application Areas
Mathematics Education
Engineering Education
High Schools & Two-Year Colleges
Testing & Assessment
Students
Financial Modeling
Operations Research
High Performance Computing
Physics
Live Webinars
Recorded Webinars
Upcoming Events
MaplePrimes
Maplesoft Blog
Maplesoft Membership
Maple Ambassador Program
MapleCloud
Technical Whitepapers
E-Mail Newsletters
Maple Books
Math Matters
Application Center
MapleSim Model Gallery
User Case Studies
Exploring Engineering Fundamentals
Teaching Concepts with Maple
Maplesoft Welcome Center
Teacher Resource Center
Student Help Center
ColorTools/NearestNamedColor - 名前と最も近い色を出力
使い方
NearestNamedColor(color)
パラメータ
color
-
ColorTools で使用できる色形式
説明
このコマンドは、入力色に最も近い色の名前 (1 つまたは複数) を出力します。
1 つまたは複数の色の名前と、入力色からの距離を出力します。結果が 1 つだけの場合は、最も近い色 1 つと指定した計量 (デフォルトは cie94) での距離が出力されます。
出力が複数の場合は、出力は色とその距離のリストになります (色が近い順)。
オプション
metric=string または name : 使用する色距離のタイプ
new = truefalse : palette を指定しない場合に GetColorNames に渡されるオプション
number = posint : 出力する近接色の最大数
palette : パレットまたはパレット名。パレットまたはパレット名の一覧、または "all"
threshold = float : 最大距離。number を指定しない場合は、この値よりも近いすべての結果を出力します。
互換性
ColorTools/NearestNamedColor コマンドは Maple 16 で導入されました。
Maple 16 における変更点についての詳細は、Maple 16 の新機能 を参照してください。
例
with(ColorTools):
NearestNamedColor([255, 16, 0]);
NearestNamedColor([255, 16, 0], metric="RGB");
NearestNamedColor("#f10", new=false);
NearestNamedColor("#f10", number=3, palette=["css", GetPalette("niagara")]);
NearestNamedColor("#cab", number=3, palette="all");
参照
ColorTools/Color、ColorTools/ColorFormats、ColorTools/Distance
Download Help Document