Palette (クラス)
public abstract final Palette
パッケージ: CURL.GRAPHICS.RENDERER3D

PaletteColor オブジェクトに格納されている標準の色のセットを定義します。

説明

関連するクラス プロシージャを呼び出すことにより色を取得します。


例: 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
}

注意事項

Color は、Drawable および Renderer3d などの低レベル インターフェイスで使用されるためのものです。

Renderer2d および GUI Toolkit などの高レベル インターフェイスには、FillPattern を使用する必要があります。{FillPattern.get-<color>} または FillPattern.<color> を呼び出すことにより、標準の色を FillPattern として取得できます。詳細については FillPattern を参照してください。

クラス変数と定数
aqua:Color 水色を表すクラス変数。
public constant Palette.aqua:Color ={Color.raw-make {Pixel.from-uint8 0, 255, 255}}
beige:Color ベージュを表すクラス変数。
public constant Palette.beige:Color ={Color.raw-make {Pixel.from-uint8 245, 245, 220}}
black:Color 黒を表すクラス変数。
public constant Palette.black:Color ={Color.raw-make {Pixel.from-uint8 0, 0, 0}}
blue:Color 青を表すクラス変数。
public constant Palette.blue:Color ={Color.raw-make {Pixel.from-uint8 0, 0, 255}}
brown:Color 茶色を表すクラス変数。
public constant Palette.brown:Color ={Color.raw-make {Pixel.from-uint8 165, 42, 42}}
cyan:Color シアンブルーを表すクラス変数。
public constant Palette.cyan:Color ={Color.raw-make {Pixel.from-uint8 0, 255, 255}}
fuchsia:Color フクシア色を表すクラス変数。
public constant Palette.fuchsia:Color ={Color.raw-make {Pixel.from-uint8 255, 0, 255}}
gray:Color 灰色を表すクラス変数。
public constant Palette.gray:Color ={Color.raw-make {Pixel.from-uint8 128, 128, 128}}
green:Color 緑を表すクラス変数。
public constant Palette.green:Color ={Color.raw-make {Pixel.from-uint8 0, 128, 0}}
lime:Color ライム色を表すクラス変数。
public constant Palette.lime:Color ={Color.raw-make {Pixel.from-uint8 0, 255, 0}}
magenta:Color マゼンタ色を表すクラス変数。
public constant Palette.magenta:Color ={Color.raw-make {Pixel.from-uint8 255, 0, 255}}
maroon:Color えび茶色を表すクラス変数。
public constant Palette.maroon:Color ={Color.raw-make {Pixel.from-uint8 128, 0, 0}}
navy:Color ネービーブルーを表すクラス変数。
public constant Palette.navy:Color ={Color.raw-make {Pixel.from-uint8 0, 0, 128}}
olive:Color オリーブ色を表すクラス変数。
public constant Palette.olive:Color ={Color.raw-make {Pixel.from-uint8 128, 128, 0}}
orange:Color オレンジ色を表すクラス変数。
public constant Palette.orange:Color ={Color.raw-make {Pixel.from-uint8 255, 165, 0}}
pink:Color ピンクを表すクラス変数。
public constant Palette.pink:Color ={Color.raw-make {Pixel.from-uint8 255, 192, 203}}
purple:Color 紫を表すクラス変数。
public constant Palette.purple:Color ={Color.raw-make {Pixel.from-uint8 128, 0, 128}}
red:Color 赤を表すクラス変数。
public constant Palette.red:Color ={Color.raw-make {Pixel.from-uint8 255, 0, 0}}
silver:Color 銀色を表すクラス変数。
public constant Palette.silver:Color ={Color.raw-make {Pixel.from-uint8 192, 192, 192}}
teal:Color ティールブルーを表すクラス変数。
public constant Palette.teal:Color ={Color.raw-make {Pixel.from-uint8 0, 128, 128}}
transparent:透明な Color を表すクラス変数。
public constant Palette.transparent:Color ={Color.raw-make {Pixel.from-uint8 0, 0, 0, alpha = 0}}
violet:Color スミレ色を表すクラス変数。
public constant Palette.violet:Color ={Color.raw-make {Pixel.from-uint8 238, 130, 238}}
wheat:Color 小麦色を表すクラス変数。
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}}
yellow:Color 黄色を表すクラス変数。
public constant Palette.yellow:Color ={Color.raw-make {Pixel.from-uint8 255, 255, 0}}

クラス プロシージャ
get-aqua:Palette.aqua と同じ Color を返します。
public {Palette.get-aqua}:Color
get-beige:Palette.beige と同じ Color を返します。
public {Palette.get-beige}:Color
get-black:Palette.black と同じ Color を返します。
public {Palette.get-black}:Color
get-blue:Palette.blue と同じ Color を返します。
public {Palette.get-blue}:Color
get-brown:Palette.brown と同じ Color を返します。
public {Palette.get-brown}:Color
get-cyan:Palette.cyan と同じ Color を返します。
public {Palette.get-cyan}:Color
get-fuchsia:Palette.fuchsia と同じ Color を返します。
public {Palette.get-fuchsia}:Color
get-gray:Palette.gray と同じ Color 色を返します。
public {Palette.get-gray}:Color
get-green:Palette.green と同じ Color を返します。
public {Palette.get-green}:Color
get-lime:Palette.lime と同じ Color を返します。
public {Palette.get-lime}:Color
get-magenta:Palette.magenta と同じ Color を返します。
public {Palette.get-magenta}:Color
get-maroon:Palette.maroon と同じ Color を返します。
public {Palette.get-maroon}:Color
get-navy:Palette.navy と同じ Color を返します。
public {Palette.get-navy}:Color
get-olive:Palette.olive と同じ Color を返します。
public {Palette.get-olive}:Color
get-orange:Palette.orange と同じ Color を返します。
public {Palette.get-orange}:Color
get-pink:Palette.pink と同じ Color を返します。
public {Palette.get-pink}:Color
get-purple:Palette.purple と同じ Color を返します。
public {Palette.get-purple}:Color
get-red:Palette.red と同じ Color を返します。
public {Palette.get-red}:Color
get-silver:Palette.silver と同じ Color を返します。
public {Palette.get-silver}:Color
get-teal:Palette.teal と同じ Color を返します。
public {Palette.get-teal}:Color
get-transparent:Palette.transparent と同じ Color を返します。
public {Palette.get-transparent}:Color
get-violet:Palette.violet と同じ Color を返します。
public {Palette.get-violet}:Color
get-wheat:Palette.wheat と同じ Color を返します。
public {Palette.get-wheat}:Color
get-white:Palette.white と同じ Color を返します。
public {Palette.get-white}:Color
get-yellow:Palette.yellow と同じ Color を返します。
public {Palette.get-yellow}:Color

メソッド
メソッド 継承 Object: object-describe, object-describe-for-debugging, object-serialize





クラス変数と定数の詳細
aqua (クラス定数)
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
}


beige (クラス定数)
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
}


black (クラス定数)
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
}


blue (クラス定数)
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
}


brown (クラス定数)
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
}


cyan (クラス定数)
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
}


fuchsia (クラス定数)
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
}


gray (クラス定数)
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
}


green (クラス定数)
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
}


lime (クラス定数)
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
}


magenta (クラス定数)
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
}


maroon (クラス定数)
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
}


navy (クラス定数)
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
}


olive (クラス定数)
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
}


orange (クラス定数)
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
}


pink (クラス定数)
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
}


purple (クラス定数)
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
}


red (クラス定数)
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
}


silver (クラス定数)
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
}


teal (クラス定数)
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
}


transparent (クラス定数)
public constant Palette.transparent:Color ={Color.raw-make {Pixel.from-uint8 0, 0, 0, alpha = 0}}

透明な Color を表すクラス変数。

説明

この色は、実際はゼロに設定されたアルファ値を持つ黒です。


violet (クラス定数)
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
}


wheat (クラス定数)
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
}


white (クラス定数)
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
}



yellow (クラス定数)
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
}



クラス プロシージャ詳細
get-aqua (クラスプロシージャ)
public {Palette.get-aqua}:Color

Palette.aqua と同じ Color を返します。



get-beige (クラスプロシージャ)
public {Palette.get-beige}:Color

Palette.beige と同じ Color を返します。



get-black (クラスプロシージャ)
public {Palette.get-black}:Color

Palette.black と同じ Color を返します。



get-blue (クラスプロシージャ)
public {Palette.get-blue}:Color

Palette.blue と同じ Color を返します。



get-brown (クラスプロシージャ)
public {Palette.get-brown}:Color

Palette.brown と同じ Color を返します。



get-cyan (クラスプロシージャ)
public {Palette.get-cyan}:Color

Palette.cyan と同じ Color を返します。



get-fuchsia (クラスプロシージャ)
public {Palette.get-fuchsia}:Color

Palette.fuchsia と同じ Color を返します。



get-gray (クラスプロシージャ)
public {Palette.get-gray}:Color

Palette.gray と同じ Color 色を返します。



get-green (クラスプロシージャ)
public {Palette.get-green}:Color

Palette.green と同じ Color を返します。



get-lime (クラスプロシージャ)
public {Palette.get-lime}:Color

Palette.lime と同じ Color を返します。



get-magenta (クラスプロシージャ)
public {Palette.get-magenta}:Color

Palette.magenta と同じ Color を返します。



get-maroon (クラスプロシージャ)
public {Palette.get-maroon}:Color

Palette.maroon と同じ Color を返します。



get-navy (クラスプロシージャ)
public {Palette.get-navy}:Color

Palette.navy と同じ Color を返します。



get-olive (クラスプロシージャ)
public {Palette.get-olive}:Color

Palette.olive と同じ Color を返します。



get-orange (クラスプロシージャ)
public {Palette.get-orange}:Color

Palette.orange と同じ Color を返します。



get-pink (クラスプロシージャ)
public {Palette.get-pink}:Color

Palette.pink と同じ Color を返します。



get-purple (クラスプロシージャ)
public {Palette.get-purple}:Color

Palette.purple と同じ Color を返します。



get-red (クラスプロシージャ)
public {Palette.get-red}:Color

Palette.red と同じ Color を返します。



get-silver (クラスプロシージャ)
public {Palette.get-silver}:Color

Palette.silver と同じ Color を返します。



get-teal (クラスプロシージャ)
public {Palette.get-teal}:Color

Palette.teal と同じ Color を返します。



get-transparent (クラスプロシージャ)
public {Palette.get-transparent}:Color

Palette.transparent と同じ Color を返します。



get-violet (クラスプロシージャ)
public {Palette.get-violet}:Color

Palette.violet と同じ Color を返します。



get-wheat (クラスプロシージャ)
public {Palette.get-wheat}:Color

Palette.wheat と同じ Color を返します。



get-white (クラスプロシージャ)
public {Palette.get-white}:Color

Palette.white と同じ Color を返します。



get-yellow (クラスプロシージャ)
public {Palette.get-yellow}:Color

Palette.yellow と同じ Color を返します。




メソッド詳細