- 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
// | |
// 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
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
/// 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 column (East/West) position of this coordinate. | |
public let x: Int | |
/// The row (North/South) 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
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.
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
// Improved Noise - Copyright 2002 Ken Perlin. | |
// Adapted and updated for iOS by Joshua Sullivan, 2016.01.12 | |
// Apply the function 6t^5 - 15t^4 + 10t^3 | |
float fade(float t) | |
{ | |
return t * t * t * (t * (t * 6.0 - 15.0) + 10.0); | |
} | |
// I'm keeping this around for reference. |
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 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 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
// | |
// ColorCubeImageCreator.swift | |
// ColorCubeImageCreator | |
// | |
// Created by Joshua Sullivan on 4/25/16. | |
// Copyright © 2016 Joshua Sullivan. All rights reserved. | |
// | |
import UIKit |
NewerOlder