Skip to content

Commit

Permalink
docstring update
Browse files Browse the repository at this point in the history
  • Loading branch information
brettedw committed Dec 3, 2024
1 parent b408156 commit dbc6675
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const getColorForRasterValue = (rasterValue: number): string => {
}

/**
* Takes rgb values as input, and assigns a transparency (alpha) value to them to make them rgba values
* Takes rgb or rgba values as input, sets or updates the alpha value, and returns a new rgba value
* @param color rgb or rgba colour string ex. rgb(1, 2, 3) or rgba(1, 2, 3, 0.2)
* @param alpha number value between 0 and 1
* @returns rgba value with alpha set ex. rgba(1, 2, 3, 0.5)
Expand Down

0 comments on commit dbc6675

Please sign in to comment.