Update unmodified brightness to 0f
This commit is contained in:
1 parent
aa4dbdf592
commit
90e7e2b525
2 files changed
+2
-2
No files matched your search
Binary file not shown.
@@ -15,7 +15,7 @@ fun saturationColorFilter(saturation: Float): ColorFilter {
|
||||
|
||||
@Stable
|
||||
fun simpleColorFilter(
|
||||
brightness: Float = 1f,
|
||||
brightness: Float = 0f,
|
||||
contrast: Float = 1f,
|
||||
saturation: Float = 1f
|
||||
): ColorFilter {
|
||||
@@ -25,7 +25,7 @@ fun simpleColorFilter(
|
||||
val b = 0.072f * invSat
|
||||
|
||||
val c = contrast
|
||||
val t = (0.5f - c * 0.5f + (brightness - 1f)) * 255f
|
||||
val t = (0.5f - c * 0.5f + brightness) * 255f
|
||||
val s = saturation
|
||||
|
||||
val cr = c * r
|
||||
|
||||
Reference in new issue
Block a user