Skip to content

Commit

Permalink
Add missing public keywords in Color
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasf committed Aug 20, 2024
1 parent 244734a commit b975d01
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/SwiftSCAD/Values/Color.swift
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ import Foundation
public struct Color: Sendable {
private let value: Value

init(red: Double, green: Double, blue: Double, alpha: Double = 1.0) {
public init(red: Double, green: Double, blue: Double, alpha: Double = 1.0) {
value = .components(red: red, green: green, blue: blue, alpha: alpha)
}

func withAlphaComponent(_ alpha: Double) -> Color {
public func withAlphaComponent(_ alpha: Double) -> Color {
switch value {
case .components (let red, let green, let blue, _):
Color(red: red, green: green, blue: blue, alpha: alpha)
Expand Down

0 comments on commit b975d01

Please sign in to comment.