- CIDocumentEnhancer
- CIGaborGradients
- CIKeystoneCorrectionCombined
- CIKeystoneCorrectionHorizontal
- CIKeystoneCorrectionVertical
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
protocol AnalyticsBackEnd { | |
static func log(_ name: String) | |
} | |
extension Analytics: AnalyticsBackEnd {} |
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
// | |
// ColorCubeHelper.swift | |
// | |
// Created by Joshua Sullivan on 10/01/16. | |
// Copyright © 2016 Joshua Sullivan. All rights reserved. | |
// | |
import UIKit | |
import Accelerate |
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
import Foundation | |
import UIKit | |
import CoreImage | |
import Metal | |
class Outputter { | |
private lazy var context: CIContext = { | |
guard | |
let device = MTLCreateSystemDefaultDevice(), |
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
import UIKit | |
import CoreImage | |
import Metal | |
public class Renderer { | |
public enum Error: Swift.Error { | |
case failedToCreateRenderer | |
case infiniteRenderRect | |
case failedToRenderImage |
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
/// 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. |
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
class MobiusRing { | |
float majorRadius, minorRadius; | |
int segments; | |
PVector[] vertices; | |
MobiusRing(float majorRadius, float minorRadius, int segments) { | |
this.majorRadius = majorRadius; | |
this.minorRadius = minorRadius; | |
this.segments = segments; |
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
import Foundation | |
import CoreImage | |
struct FilterInput { | |
struct ValueRange { | |
let minValue: Float | |
let maxValue: Float | |
let sliderMin: Float? | |
let sliderMax: Float? |
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.
NewerOlder