diff options
| author | lempamo <[email protected]> | 2017-10-26 00:03:57 -0400 |
|---|---|---|
| committer | lempamo <[email protected]> | 2017-10-26 00:03:57 -0400 |
| commit | e99433e1932c780c6b369ed656c26a11da41fe73 (patch) | |
| tree | 3ffb2350e1c0cd66ec88bc7ba5fa657a9ae84a60 /Histacom2.Engine/Paintbrush.cs | |
| parent | 3f1435fb70ce39e087a7c0aaf73a90fcafb78637 (diff) | |
| download | histacom2-e99433e1932c780c6b369ed656c26a11da41fe73.tar.gz histacom2-e99433e1932c780c6b369ed656c26a11da41fe73.tar.bz2 histacom2-e99433e1932c780c6b369ed656c26a11da41fe73.zip | |
more hack4 stuff
Diffstat (limited to 'Histacom2.Engine/Paintbrush.cs')
| -rw-r--r-- | Histacom2.Engine/Paintbrush.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Histacom2.Engine/Paintbrush.cs b/Histacom2.Engine/Paintbrush.cs index cab493a..923d836 100644 --- a/Histacom2.Engine/Paintbrush.cs +++ b/Histacom2.Engine/Paintbrush.cs @@ -46,6 +46,11 @@ namespace Histacom2.Engine e.Graphics.DrawLine(new Pen(foreColor), 4, height / 2, width - 4, height / 2); } + /// <summary> + /// Get a color lighter than the input color. + /// </summary> + /// <param name="basecolor">The color to lighten.</param> + /// <returns></returns> public static Color GetLightFromColor(Color basecolor) { if (basecolor == Color.Silver) return Color.White; |
