Skip to content

Commit

Permalink
imagelib: Rename imageColor to getImageColor
Browse files Browse the repository at this point in the history
  • Loading branch information
iamgio committed Aug 11, 2023
1 parent d0307cf commit 7880f9b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion imagelib/src/main/kotlin/pikt/imagelib/ImageFunctions.kt
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ fun imageHeight(image: Any): Int {
* @return the color of the [image] at the given coordinate
* @throws PiktIndexOutOfBoundsException if one of the coordinates is negative or greater than the image size
*/
fun imageColor(image: Any, x: Any, y: Any): Color {
fun getImageColor(image: Any, x: Any, y: Any): Color {
if (image !is Image) {
throw PiktWrongArgumentTypeException(
parameterName = "image",
Expand Down
2 changes: 1 addition & 1 deletion imagelib/src/main/resources/colors.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ newImage=B41EFF
saveImage=681EFF
imageWidth=
imageHeight=
imageColor=
getImageColor=

0 comments on commit 7880f9b

Please sign in to comment.