-
-
Notifications
You must be signed in to change notification settings - Fork 375
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor changes in Mapscript colorObj to optional arguments
Instead of introducing separate setRGBA and toHexWithAlpha we alter the existing method setRGB to take an optional fourth argument and toHex such that it outputs a 4-byte hex string if the alpha value is other than 255 and a 3-byte hex string as previously if the alpha is the default 255.
- Loading branch information
Showing
2 changed files
with
38 additions
and
106 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters