We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It should be possible to compare types in Chroma. Such as ColorTint e.g.
ColorTint
var a: ColorTint = ColorTint(...) var b: ColorTint = ColorTint(...)
Perhaps be able to merge as well
Add component a.startColor to b.startColor, and (if not nil) a.endColor to b.endColor.
a.startColor
b.startColor
nil
a.endColor
b.endColor
var c: ColorTint = a + b
Subtract component a.startColor from b.startColor, and (if not nil) a.endColor from b.endColor.
var c: ColorTint = a - b
Compare hash values between component a and b. If they're equal return true, otherwise false.
a
b
true
false
var isEqual: Bool = a == b var notEqual: Bool = a != b
The text was updated successfully, but these errors were encountered:
No branches or pull requests
It should be possible to compare types in Chroma. Such as
ColorTint
e.g.Perhaps be able to merge as well
Addition
Add component
a.startColor
tob.startColor
, and (if notnil
)a.endColor
tob.endColor
.Subtraction
Subtract component
a.startColor
fromb.startColor
, and (if notnil
)a.endColor
fromb.endColor
.Compare
Compare hash values between component
a
andb
. If they're equal returntrue
, otherwisefalse
.The text was updated successfully, but these errors were encountered: