* @function LevelRenderer.Tool.Color.prototype.getColor * @description 获取色板颜色。 * @param {number} idx - 色板位置。 * @param {Array. } userPalete - 色板。 * @returns {string} 颜色值。
(idx, userPalete)
| 245 | * @returns {string} 颜色值。 |
| 246 | */ |
| 247 | getColor(idx, userPalete) { |
| 248 | idx = idx | 0; |
| 249 | userPalete = userPalete || this.palette; |
| 250 | return userPalete[idx % userPalete.length]; |
| 251 | } |
| 252 | |
| 253 | /** |
| 254 | * @function LevelRenderer.Tool.Color.prototype.customHighlight |
no outgoing calls
no test coverage detected