Skip to content

Commit

Permalink
Add back the selectCenter() method.
Browse files Browse the repository at this point in the history
  • Loading branch information
coderforlife committed Jun 28, 2024
1 parent 62ac435 commit 66cb5a0
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,15 @@ constructor(
}
}

/**
* Select center point of the palette.
*
* @param fromUser Represents this event is triggered by user or not.
*/
public fun selectCenter(fromUser: Boolean) {
selectByCoordinate(canvasSize.center, fromUser)
}

/**
* Select a specific color and update with the selected color.
*
Expand Down

0 comments on commit 66cb5a0

Please sign in to comment.