mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-05-21 21:57:38 +08:00
Avoid using arrays when unnecessary
This commit is contained in:
@@ -125,7 +125,7 @@ export default class ColorPickerWindowTemplate extends WindowTemplate {
|
||||
* @param {Number} y in the range [0, 1]
|
||||
*/
|
||||
(x, y) => {
|
||||
this.color.setFromWheelLocation([x, y], this.color.V.value, this.color.A.value)
|
||||
this.color.setFromWheelLocation(x, y, this.color.V.value, this.color.A.value)
|
||||
this.fullColor.setFromHSVA(this.color.H.value, 1, 1, 1)
|
||||
this.element.requestUpdate()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user