Skip to content

Commit

Permalink
Make public
Browse files Browse the repository at this point in the history
  • Loading branch information
Gary Kerr committed Jun 15, 2021
1 parent d0c2b1d commit 6018e11
Show file tree
Hide file tree
Showing 11 changed files with 11 additions and 12 deletions.
2 changes: 1 addition & 1 deletion Sources/MandelbrotEngine/ColourMaps/ColourMapFactory.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright © 2018 Gary Kerr. All rights reserved.
//

struct ColourMapFactory {
public struct ColourMapFactory {
static var maps: [ColourMapProtocol] {
return [
GreyScale(numberOfGreys: 200),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import CoreGraphics


protocol ColourMapProtocol {
public protocol ColourMapProtocol {
typealias RGB = (r: UInt8, g: UInt8, b: UInt8)

var id: String { get }
Expand Down
2 changes: 1 addition & 1 deletion Sources/MandelbrotEngine/ColourMaps/GreyScale.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import Foundation

struct GreyScale: ColourMapProtocol {
public struct GreyScale: ColourMapProtocol {

internal let title = "Grey scale"
internal let pixels: [Pixel]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import Foundation

struct ManyColourGradient: ColourMapProtocol {
public struct ManyColourGradient: ColourMapProtocol {

var title: String {
return "Many colour gradient: \(colourCount)"
Expand Down
2 changes: 1 addition & 1 deletion Sources/MandelbrotEngine/ColourMaps/SmoothScale.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
import CoreGraphics
import Foundation

struct SmoothScale: ColourMapProtocol {
public struct SmoothScale: ColourMapProtocol {

static let (h1, s1, v1): (CGFloat, CGFloat, CGFloat) = (0.0, 1.0, 1.0)
static let (h2, s2, v2): (CGFloat, CGFloat, CGFloat) = (360.0, 1.0, 1.0)
Expand Down
2 changes: 1 addition & 1 deletion Sources/MandelbrotEngine/ColourMaps/SmoothTest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
import CoreGraphics
import Foundation

struct SmoothTest: ColourMapProtocol {
public struct SmoothTest: ColourMapProtocol {
private let log2Value: Double = log(2)
private let log4Value: Double = log(4)

Expand Down
2 changes: 1 addition & 1 deletion Sources/MandelbrotEngine/ColourMaps/YellowScale.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

import Foundation

struct YellowScale: ColourMapProtocol {
public struct YellowScale: ColourMapProtocol {

internal let title = "Yellow scale"
internal let pixels: [Pixel]
Expand Down
2 changes: 1 addition & 1 deletion Sources/MandelbrotEngine/MandelbrotEngine.swift
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
public struct MandelbrotEngine {
struct MandelbrotEngine {
var text = "Hello, World!"
}
2 changes: 1 addition & 1 deletion Sources/MandelbrotEngine/MandelbrotSetConfig.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright © 2017 Gary Kerr. All rights reserved.
//

struct MandelbrotSetConfig: CustomStringConvertible {
public struct MandelbrotSetConfig: CustomStringConvertible {
let imageWidth: Int
let imageHeight: Int
let width: Double
Expand Down
3 changes: 1 addition & 2 deletions Sources/MandelbrotEngine/MandelbrotSetPoint.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
import Foundation


struct MandelbrotSetPoint {

public struct MandelbrotSetPoint {
enum Test {
case inSet
case notInSet(iterations: Int, finalPoint: ComplexNumber)
Expand Down
2 changes: 1 addition & 1 deletion Sources/MandelbrotEngine/Pixel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
// Copyright © 2017 Gary Kerr. All rights reserved.
//

struct Pixel {
public struct Pixel {
var a: UInt8 = 255
var r: UInt8
var g: UInt8
Expand Down

0 comments on commit 6018e11

Please sign in to comment.