Skip to content

Documentation / @finchart/core / LINEAR_GRADIENT

Variable: LINEAR_GRADIENT

const LINEAR_GRADIENT: "charts/linear-gradient" = "charts/linear-gradient"

Defined in: packages/core/src/render/gradient.ts:20

선형 그라디언트 채움 — custom 문을 지나는 첫 일급 원시.

ShapeParams.fillstring | 그라디언트로 넓히지 않은 이유: fill을 읽어 fillStyle에 대입하는 모든 재생 표면이 한 번에 깨진다. custom 문으로 내면 아는 표면(코어 캔버스 렌더러가 기본으로 안다)은 그라디언트를 그리고, 모르는 표면은 폴백의 단색으로 강등된다 — 그림에 구멍이 안 난다.