Skip to content

Instantly share code, notes, and snippets.

View AmenJlili's full-sized avatar
🚀
Growth!

Amen Jlili AmenJlili

🚀
Growth!
View GitHub Profile
@JoshClose
JoshClose / ColorExtensions.cs
Created November 15, 2011 15:21
Changing Color Tint with C#
public static class ColorExtensions
{
/// <summary>
/// Tints the color by the given percent.
/// </summary>
/// <param name="color">The color being tinted.</param>
/// <param name="percent">The percent to tint. Ex: 0.1 will make the color 10% lighter.</param>
/// <returns>The new tinted color.</returns>
public static Color Lighten( this Color color, float percent )
{