色の明度の値を取得します。
lightness()は、p5.Colorオブジェクト、 色成分の配列、またはCSSの色文字列からHSLの明度の値を抽出します。
デフォルトでは、lightness()は色のHSL明度を0から100の範囲で返します。 colorMode()がHSLに設定されている場合、 指定された範囲内で明度の値を返します。
実例
シンタックス
lightness(color)
パラメーター
color
p5.Color|Number[]|String:
p5.Colorオブジェクト、色成分の配列、 またはCSS色文字列。
リターン
Number: 明度の値。
This page is generated from the comments in src/color/creating_reading.js . Please feel free to edit it and submit a pull request!