improve code readability

This commit is contained in:
aliaksei.kalosha
2025-04-01 22:34:30 +02:00
parent a42cce4ee2
commit fedf013ee9
5 changed files with 49 additions and 69 deletions

View File

@@ -330,6 +330,9 @@ namespace SplashEdit.RuntimeCode
_ => throw new System.NotImplementedException(),
};
}
public static byte Clamp0255(float v) => (byte)(Mathf.Clamp(v, 0, 255));
}
}