Customize lighter colors for area-based displays
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 62/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 技術スタック
- r
調査の方向性
まずフォローアップ issue #657 と #646 を読み、次に既存の lighten_fill() の実装と、それが使用する面積ベースの表示コードを見つけてください。TRUE の動作を維持しながら 0.5 のような数値の lighten 値をサポートし、base R との一貫性のために black が lightgray を生成すべきか確認してください。
索引モデルが issue の本文から書いたものです。
説明
Follow-up to #657 and #646
To support specifications like lighten = 0.5 in addition to just lighten = TRUE we could use:
lighten_col = function(x, amount = 0.8) {
x = to_hcl(x)
hcl(
h = x[, "H"],
c = x[, "C"] * (1 - amount),
l = 100 - (100 - x[, "L"]) * (1 - amount),
alpha = attr(x, "alpha")
)
}
By default this yields similar colors as the current lighten_fill() which is based on seq_palette(..., n = 3)[3]. Because we just need the lightened color here (rather than a palette going from the full color to the lightened one), lighten_col() can be a little bit simpler and hence leads to slightly different output.
Additionally, we may want to build in a catch that makes sure that lighten_col("black") returns "lightgray" to be exactly consistent with base R.
- 主要言語
- R
- スター
- 430
- フォーク
- 24
- 平均マージ
- 14時間 17分
- マージ済み PR(30日)
- 8
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
grantmcdermott/tinyplot のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 63/100
grantmcdermott/tinyplot#759 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 67/100
grantmcdermott/tinyplot#664 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
grantmcdermott/tinyplot#663 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
Spineplot wishlistオープン
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
grantmcdermott/tinyplot#660 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
grantmcdermott/tinyplot#612 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
grantmcdermott/tinyplot の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
bcgov/aqwarnings_shiny#128 ·
-
tech-debt
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
sagemathinc/sagebrush#3570 ·
メンテナーはふだん 1 日以内に返信
-
bug upkeep
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
ropensci/lingtypology#94 ·