-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
34 changed files
with
806 additions
and
51 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,7 @@ | ||
## Version 0.3.0 | ||
### Features | ||
* Grayscale support | ||
|
||
## Version 0.2.0 | ||
### Features | ||
* HSB support | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
**CLASS** | ||
|
||
# `GrayscaleColor` | ||
|
||
```swift | ||
public class GrayscaleColor: NSObject, NSCopying, Codable | ||
``` | ||
|
||
> A model class representing grayscale colors. The white component can hold values between 0.0 and 255.0 while the alphavalue has a maximum value of 100.0. | ||
|
||
## Methods | ||
### `init(white:alpha:)` | ||
|
||
```swift | ||
public init(white: CGFloat, alpha: CGFloat) | ||
``` | ||
|
||
> Creates a GrayscaleColor instance. | ||
> | ||
> - Parameter: | ||
> - white: The white component. | ||
> - alpha: The opacity component. | ||
|
||
### `copy(with:)` | ||
|
||
```swift | ||
public func copy(with _: NSZone? = nil) -> Any | ||
``` | ||
|
||
> Creates a copy of the GrayscaleColor instance. | ||
> | ||
> - Returns: A copy of the GrayscaleColor instance. | ||
|
||
### `isEqual(_:)` | ||
|
||
```swift | ||
public override func isEqual(_ object: Any?) -> Bool | ||
``` | ||
|
||
> Compares two GrayscaleColor instances with each other. | ||
> | ||
> - Parameter object: The GrayscaleColor to compare with. | ||
> | ||
> - Returns: 'true' if the instance is equal to the other GrayscaleColor instance, otherwise 'false''. | ||
|
||
#### Parameters | ||
|
||
| Name | Description | | ||
| ---- | ----------- | | ||
| object | The GrayscaleColor to compare with. | |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
**EXTENSION** | ||
|
||
# `GrayscaleColor` | ||
|
||
## Properties | ||
### `uiColor` | ||
|
||
```swift | ||
public var uiColor: UIColor | ||
``` | ||
|
||
> The UIColor representation of the GrayscaleColor. |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
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
Oops, something went wrong.