(クラス)
public abstract final Palette
Palette は Color オブジェクトに格納されている標準の色のセットを定義します。
説明
関連するクラス プロシージャを呼び出すことにより色を取得します。
例
| 例:
Palette クラスの使用 |
 |
{import * from CURL.GRAPHICS.RENDERER3D} || for Palette
{let aqua:Color = {Palette.get-aqua}}
{let (hue:FloatAngle, saturation:float, val:float, opacity:float) =
{aqua.hsv}
}
HSV values for the color aqua:
{VBox
"Hue: " & (hue / 1f(deg)) & " degrees",
"Saturation: " & saturation,
"Value: " & val,
"Opacity: " & opacity
}
| |
注意事項
public constant Palette.aqua:
Color ={Color.raw-make {Pixel.from-uint8 0, 255, 255}}
public constant Palette.beige:
Color ={Color.raw-make {Pixel.from-uint8 245, 245, 220}}
public constant Palette.black:
Color ={Color.raw-make {Pixel.from-uint8 0, 0, 0}}
public constant Palette.blue:
Color ={Color.raw-make {Pixel.from-uint8 0, 0, 255}}
public constant Palette.brown:
Color ={Color.raw-make {Pixel.from-uint8 165, 42, 42}}
public constant Palette.cyan:
Color ={Color.raw-make {Pixel.from-uint8 0, 255, 255}}
public constant Palette.fuchsia:
Color ={Color.raw-make {Pixel.from-uint8 255, 0, 255}}
public constant Palette.gray:
Color ={Color.raw-make {Pixel.from-uint8 128, 128, 128}}
public constant Palette.green:
Color ={Color.raw-make {Pixel.from-uint8 0, 128, 0}}
public constant Palette.lime:
Color ={Color.raw-make {Pixel.from-uint8 0, 255, 0}}
public constant Palette.magenta:
Color ={Color.raw-make {Pixel.from-uint8 255, 0, 255}}
public constant Palette.maroon:
Color ={Color.raw-make {Pixel.from-uint8 128, 0, 0}}
public constant Palette.navy:
Color ={Color.raw-make {Pixel.from-uint8 0, 0, 128}}
public constant Palette.olive:
Color ={Color.raw-make {Pixel.from-uint8 128, 128, 0}}
public constant Palette.orange:
Color ={Color.raw-make {Pixel.from-uint8 255, 165, 0}}
public constant Palette.pink:
Color ={Color.raw-make {Pixel.from-uint8 255, 192, 203}}
public constant Palette.purple:
Color ={Color.raw-make {Pixel.from-uint8 128, 0, 128}}
public constant Palette.red:
Color ={Color.raw-make {Pixel.from-uint8 255, 0, 0}}
public constant Palette.silver:
Color ={Color.raw-make {Pixel.from-uint8 192, 192, 192}}
public constant Palette.teal:
Color ={Color.raw-make {Pixel.from-uint8 0, 128, 128}}
public constant Palette.transparent:
Color ={Color.raw-make {Pixel.from-uint8 0, 0, 0, alpha = 0}}
public constant Palette.violet:
Color ={Color.raw-make {Pixel.from-uint8 238, 130, 238}}
public constant Palette.wheat:
Color ={Color.raw-make {Pixel.from-uint8 245, 222, 179}}
| white: | Color 白を表すクラス変数。 例 これは、白の Color から作成された背景を持つ Fill になります。見えるようにするため、 Fill は黒のボーダーを持っています。 | 例:
白 Color |  | {import Palette from CURL.GRAPHICS.RENDERER3D}
{Fill
width = 1in,
height = 1in,
border-color = Palette.black,
border-width = 2pt,
background = Palette.white
}
| |
|
public constant Palette.white:
Color ={Color.raw-make {Pixel.from-uint8 255, 255, 255}}
public constant Palette.yellow:
Color ={Color.raw-make {Pixel.from-uint8 255, 255, 0}}
| public | {Palette.get-aqua}:Color |
| public | {Palette.get-beige}:Color |
| public | {Palette.get-black}:Color |
| public | {Palette.get-blue}:Color |
| public | {Palette.get-brown}:Color |
| public | {Palette.get-cyan}:Color |
| public | {Palette.get-fuchsia}:Color |
| public | {Palette.get-gray}:Color |
| public | {Palette.get-green}:Color |
| public | {Palette.get-lime}:Color |
| public | {Palette.get-magenta}:Color |
| public | {Palette.get-maroon}:Color |
| public | {Palette.get-navy}:Color |
| public | {Palette.get-olive}:Color |
| public | {Palette.get-orange}:Color |
| public | {Palette.get-pink}:Color |
| public | {Palette.get-purple}:Color |
| public | {Palette.get-red}:Color |
| public | {Palette.get-silver}:Color |
| public | {Palette.get-teal}:Color |
| public | {Palette.get-transparent}:Color |
| public | {Palette.get-violet}:Color |
| public | {Palette.get-wheat}:Color |
| public | {Palette.get-white}:Color |
| public | {Palette.get-yellow}:Color |
(クラス定数)
public constant Palette.aqua:
Color ={Color.raw-make {Pixel.from-uint8 0, 255, 255}}
Color 水色を表すクラス変数。
例
| 例:
水色 Color |
 |
{import Palette from CURL.GRAPHICS.RENDERER3D}
{Fill
width = 1in,
height = 1in,
background = Palette.aqua
}
| |
(クラス定数)
public constant Palette.beige:
Color ={Color.raw-make {Pixel.from-uint8 245, 245, 220}}
Color ベージュを表すクラス変数。
例
| 例:
ベージュ Color |
 |
{import Palette from CURL.GRAPHICS.RENDERER3D}
{Fill
width = 1in,
height = 1in,
background = Palette.beige
}
| |
(クラス定数)
public constant Palette.black:
Color ={Color.raw-make {Pixel.from-uint8 0, 0, 0}}
Color 黒を表すクラス変数。
例
| 例:
黒 Color |
 |
{import Palette from CURL.GRAPHICS.RENDERER3D}
{Fill
width = 1in,
height = 1in,
background = Palette.black
}
| |
(クラス定数)
public constant Palette.blue:
Color ={Color.raw-make {Pixel.from-uint8 0, 0, 255}}
Color 青を表すクラス変数。
例
| 例:
青 Color |
 |
{import Palette from CURL.GRAPHICS.RENDERER3D}
{Fill
width = 1in,
height = 1in,
background = Palette.blue
}
| |
(クラス定数)
public constant Palette.brown:
Color ={Color.raw-make {Pixel.from-uint8 165, 42, 42}}
Color 茶色を表すクラス変数。
例
| 例:
茶色 Color |
 |
{import Palette from CURL.GRAPHICS.RENDERER3D}
{Fill
width = 1in,
height = 1in,
background = Palette.brown
}
| |
(クラス定数)
public constant Palette.cyan:
Color ={Color.raw-make {Pixel.from-uint8 0, 255, 255}}
Color シアンブルーを表すクラス変数。
例
| 例:
シアンブルー Color |
 |
{import Palette from CURL.GRAPHICS.RENDERER3D}
{Fill
width = 1in,
height = 1in,
background = Palette.cyan
}
| |
(クラス定数)
public constant Palette.fuchsia:
Color ={Color.raw-make {Pixel.from-uint8 255, 0, 255}}
Color フクシア色を表すクラス変数。
例
| 例:
フクシア色 Color |
 |
{import Palette from CURL.GRAPHICS.RENDERER3D}
{Fill
width = 1in,
height = 1in,
background = Palette.fuchsia
}
| |
(クラス定数)
public constant Palette.gray:
Color ={Color.raw-make {Pixel.from-uint8 128, 128, 128}}
Color 灰色を表すクラス変数。
例
| 例:
灰色 Color |
 |
{import Palette from CURL.GRAPHICS.RENDERER3D}
{Fill
width = 1in,
height = 1in,
background = Palette.gray
}
| |
(クラス定数)
public constant Palette.green:
Color ={Color.raw-make {Pixel.from-uint8 0, 128, 0}}
Color 緑を表すクラス変数。
例
| 例:
緑 Color |
 |
{import Palette from CURL.GRAPHICS.RENDERER3D}
{Fill
width = 1in,
height = 1in,
background = Palette.green
}
| |
(クラス定数)
public constant Palette.lime:
Color ={Color.raw-make {Pixel.from-uint8 0, 255, 0}}
Color ライム色を表すクラス変数。
例
| 例:
ライム色 Color |
 |
{import Palette from CURL.GRAPHICS.RENDERER3D}
{Fill
width = 1in,
height = 1in,
background = Palette.lime
}
| |
(クラス定数)
public constant Palette.magenta:
Color ={Color.raw-make {Pixel.from-uint8 255, 0, 255}}
Color マゼンタ色を表すクラス変数。
例
| 例:
マゼンタ色 Color |
 |
{import Palette from CURL.GRAPHICS.RENDERER3D}
{Fill
width = 1in,
height = 1in,
background = Palette.magenta
}
| |
(クラス定数)
public constant Palette.maroon:
Color ={Color.raw-make {Pixel.from-uint8 128, 0, 0}}
Color えび茶色を表すクラス変数。
例
| 例:
えび茶色 Color |
 |
{import Palette from CURL.GRAPHICS.RENDERER3D}
{Fill
width = 1in,
height = 1in,
background = Palette.maroon
}
| |
(クラス定数)
public constant Palette.navy:
Color ={Color.raw-make {Pixel.from-uint8 0, 0, 128}}
Color ネービーブルーを表すクラス変数。
例
| 例:
ネービーブルー Color |
 |
{import Palette from CURL.GRAPHICS.RENDERER3D}
{Fill
width = 1in,
height = 1in,
background = Palette.navy
}
| |
(クラス定数)
public constant Palette.olive:
Color ={Color.raw-make {Pixel.from-uint8 128, 128, 0}}
Color オリーブ色を表すクラス変数。
例
| 例:
オリーブ色 Color |
 |
{import Palette from CURL.GRAPHICS.RENDERER3D}
{Fill
width = 1in,
height = 1in,
background = Palette.olive
}
| |
(クラス定数)
public constant Palette.orange:
Color ={Color.raw-make {Pixel.from-uint8 255, 165, 0}}
Color オレンジ色を表すクラス変数。
例
| 例:
オレンジ色 Color |
 |
{import Palette from CURL.GRAPHICS.RENDERER3D}
{Fill
width = 1in,
height = 1in,
background = Palette.orange
}
| |
(クラス定数)
public constant Palette.pink:
Color ={Color.raw-make {Pixel.from-uint8 255, 192, 203}}
Color ピンクを表すクラス変数。
例
| 例:
ピンク Color |
 |
{import Palette from CURL.GRAPHICS.RENDERER3D}
{Fill
width = 1in,
height = 1in,
background = Palette.pink
}
| |
(クラス定数)
public constant Palette.purple:
Color ={Color.raw-make {Pixel.from-uint8 128, 0, 128}}
Color 紫を表すクラス変数。
例
| 例:
紫 Color |
 |
{import Palette from CURL.GRAPHICS.RENDERER3D}
{Fill
width = 1in,
height = 1in,
background = Palette.purple
}
| |
(クラス定数)
public constant Palette.red:
Color ={Color.raw-make {Pixel.from-uint8 255, 0, 0}}
Color 赤を表すクラス変数。
例
| 例:
赤 Color |
 |
{import Palette from CURL.GRAPHICS.RENDERER3D}
{Fill
width = 1in,
height = 1in,
background = Palette.red
}
| |
(クラス定数)
public constant Palette.silver:
Color ={Color.raw-make {Pixel.from-uint8 192, 192, 192}}
Color 銀色を表すクラス変数。
例
| 例:
銀色 Color |
 |
{import Palette from CURL.GRAPHICS.RENDERER3D}
{Fill
width = 1in,
height = 1in,
background = Palette.silver
}
| |
(クラス定数)
public constant Palette.teal:
Color ={Color.raw-make {Pixel.from-uint8 0, 128, 128}}
Color ティールブルーを表すクラス変数。
例
| 例:
ティールブルー Color |
 |
{import Palette from CURL.GRAPHICS.RENDERER3D}
{Fill
width = 1in,
height = 1in,
background = Palette.teal
}
| |
(クラス定数)
public constant Palette.transparent:
Color ={Color.raw-make {Pixel.from-uint8 0, 0, 0, alpha = 0}}
透明な Color を表すクラス変数。
説明
この色は、実際はゼロに設定されたアルファ値を持つ黒です。
(クラス定数)
public constant Palette.violet:
Color ={Color.raw-make {Pixel.from-uint8 238, 130, 238}}
Color スミレ色を表すクラス変数。
例
| 例:
スミレ色 Color |
 |
{import Palette from CURL.GRAPHICS.RENDERER3D}
{Fill
width = 1in,
height = 1in,
background = Palette.violet
}
| |
(クラス定数)
public constant Palette.wheat:
Color ={Color.raw-make {Pixel.from-uint8 245, 222, 179}}
Color 小麦色を表すクラス変数。
例
| 例:
小麦色 Color |
 |
{import Palette from CURL.GRAPHICS.RENDERER3D}
{Fill
width = 1in,
height = 1in,
background = Palette.wheat
}
| |
(クラス定数)
public constant Palette.white:
Color ={Color.raw-make {Pixel.from-uint8 255, 255, 255}}
Color 白を表すクラス変数。
例
これは、白の
Color から作成された背景を持つ
Fill になります。見えるようにするため、
Fill は黒のボーダーを持っています。
| 例:
白 Color |
 |
{import Palette from CURL.GRAPHICS.RENDERER3D}
{Fill
width = 1in,
height = 1in,
border-color = Palette.black,
border-width = 2pt,
background = Palette.white
}
| |
(クラス定数)
public constant Palette.yellow:
Color ={Color.raw-make {Pixel.from-uint8 255, 255, 0}}
Color 黄色を表すクラス変数。
例
| 例:
黄色 Color |
 |
{import Palette from CURL.GRAPHICS.RENDERER3D}
{Fill
width = 1in,
height = 1in,
background = Palette.yellow
}
| |
(クラスプロシージャ)
| public | {Palette.get-aqua}:Color |
(クラスプロシージャ)
| public | {Palette.get-beige}:Color |
(クラスプロシージャ)
| public | {Palette.get-black}:Color |
(クラスプロシージャ)
| public | {Palette.get-blue}:Color |
(クラスプロシージャ)
| public | {Palette.get-brown}:Color |
(クラスプロシージャ)
| public | {Palette.get-cyan}:Color |
(クラスプロシージャ)
| public | {Palette.get-fuchsia}:Color |
(クラスプロシージャ)
| public | {Palette.get-gray}:Color |
(クラスプロシージャ)
| public | {Palette.get-green}:Color |
(クラスプロシージャ)
| public | {Palette.get-lime}:Color |
(クラスプロシージャ)
| public | {Palette.get-magenta}:Color |
(クラスプロシージャ)
| public | {Palette.get-maroon}:Color |
(クラスプロシージャ)
| public | {Palette.get-navy}:Color |
(クラスプロシージャ)
| public | {Palette.get-olive}:Color |
(クラスプロシージャ)
| public | {Palette.get-orange}:Color |
(クラスプロシージャ)
| public | {Palette.get-pink}:Color |
(クラスプロシージャ)
| public | {Palette.get-purple}:Color |
(クラスプロシージャ)
| public | {Palette.get-red}:Color |
(クラスプロシージャ)
| public | {Palette.get-silver}:Color |
(クラスプロシージャ)
| public | {Palette.get-teal}:Color |
(クラスプロシージャ)
| public | {Palette.get-transparent}:Color |
(クラスプロシージャ)
| public | {Palette.get-violet}:Color |
(クラスプロシージャ)
| public | {Palette.get-wheat}:Color |
(クラスプロシージャ)
| public | {Palette.get-white}:Color |
(クラスプロシージャ)
| public | {Palette.get-yellow}:Color |