MCPcopy Create free account
hub / github.com/OpenThree/three-cesium-examples / getColorRamp

Function getColorRamp

cesiumExamples/effect/gradientWall.js:69–93  ·  view source on GitHub ↗

* 创建垂直渐变色带图像 * @param {Object} val - 颜色值对象,键为位置比例(0.0-1.0),值为CSS颜色字符串 * @returns {HTMLCanvasElement} 包含垂直渐变的canvas元素

(val)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

gradientWall.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected