Transitions from one image to another of a differing dimensions by unfolding.
This file contains hidden or 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
| protocol AnalyticsBackEnd { | |
| static func log(_ name: String) | |
| } | |
| extension Analytics: AnalyticsBackEnd {} |
This file contains hidden or 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
| import UIKit | |
| import Combine | |
| /// This class wraps a `CADisplayLink` and exposes its callback as a Combine Publisher. | |
| /// | |
| class CombineDisplayLink { | |
| /// An object that includes timing information about the screen refresh. | |
| /// | |
| struct Tick { |
This file contains hidden or 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
| import UIKit | |
| import NaturalLanguage | |
| import PlaygroundSupport | |
| //: Your secret API key from `https://dictionaryapi.com` goes here. | |
| //: THIS WON'T WORK UNLESS YOU GET A KEY. | |
| let thesaurusKey = "" | |
| //: The string you want to work on. | |
| var testString = "The bright sun set behind the green hills. Thin clouds streaked the red sky." |
This file contains hidden or 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
| import Foundation | |
| import CoreImage | |
| struct FilterInput { | |
| struct ValueRange { | |
| let minValue: Float | |
| let maxValue: Float | |
| let sliderMin: Float? | |
| let sliderMax: Float? |
This file contains hidden or 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
| ========================= | |
| Color Absolute Difference | |
| ========================= | |
| [Availability] | |
| iOS: 14 | |
| macOS: 11.0 | |
| [Categories] | |
| Color Adjustment, Video, Interlaced, Non-Square Pixels, Still Image, Built-In |
This file contains hidden or 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
| import Foundation | |
| /// A type that can be initialized from a string value. | |
| /// | |
| public protocol StringInitable { | |
| /// Initialize the object with a string. | |
| /// | |
| /// - Note: This operation can fail if the string is not valid for this object type. | |
| /// | |
| init?(_ string: String) |
Midjourney is a commercial image generation and transformation AI service. Similar services include:
- DALL-E 2 (Microsoft)
- Nightcafe
- Stable Diffusion (Open Source)
Midjourney is a somewhat opinionated AI and tends to try to create "art". It has a very high level of coherence, which means elements in the resulting images tend to have natural relationships with a low level of glitches and random weirdness. In my opinion, Midjourney has much higher quality "out of the box", trouncing the competition unless the user is quite advanced at effectively utilizing both positive and negative prompt particles.
This file contains hidden or 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
| /// Represents a point on a grid. | |
| /// | |
| /// - Note: Instances of this type are not bound to any particular Grid and may be invalid depending on the size of the grid. | |
| /// | |
| public struct GridCoordinate: Equatable, Hashable, CustomStringConvertible { | |
| /// The origin point of the grid. | |
| public static let zero = GridCoordinate(x: 0, y: 0) | |
| /// The column (East/West) position of this coordinate. |